Add set order in parent for spawning actor with a parent in editor.

This commit is contained in:
Chandler Cox
2025-04-07 21:10:36 -05:00
parent 4a10905464
commit 2452face38
5 changed files with 22 additions and 16 deletions

View File

@@ -159,7 +159,7 @@ namespace FlaxEditor.SceneGraph
/// </summary>
/// <param name="actor">The actor.</param>
/// <param name="parent">The parent.</param>
public abstract void Spawn(Actor actor, Actor parent);
public abstract void Spawn(Actor actor, Actor parent, int orderInParent = -1);
/// <summary>
/// Gets the undo.