コード例 #1
0
    public void SortCompLayerChange(Consts.DrawLayers newLayer, Transform newParent)
    {
        currParent = transform.parent = newParent;
        LayerSortComp.LayerChange(newLayer, true);
        SendChangeToTracker();

        // TODO: Should also have a version that changes the layer order
        // Possibly one that specifies whether to change the sprite renderer or sorting group specifically, but this is fine for now.
    }
コード例 #2
0
 public void SortCompLayerChange(Consts.DrawLayers newLayer)
 {
     LayerSortComp.LayerChange(newLayer, false);
     SendChangeToTracker();
 }