MonoGdx.Scene2D.Group.AddActorAt C# (CSharp) Method

AddActorAt() public method

public AddActorAt ( int index, Actor actor ) : void
index int
actor Actor
return void
        public virtual void AddActorAt(int index, Actor actor)
        {
            actor.Remove();
            if (index >= Children.Count)
                Children.Add(actor);
            else
                Children.Insert(index, actor);

            actor.Parent = this;
            actor.Stage = Stage;
            ChildrenChanged();
        }