Zeplin.Layer.MoveTo C# (CSharp) Method

MoveTo() public method

Moves an actor to another layer
public MoveTo ( Zeplin.GameObject movedObject, Layer destinationLayer ) : bool
movedObject Zeplin.GameObject
destinationLayer Layer The layer to move the actor to
return bool
        public bool MoveTo(GameObject movedObject, Layer destinationLayer)
        {
            bool result = Remove(movedObject);
            if (result) destinationLayer.Add(movedObject);
            return result;
        }