示例#1
0
 public SceneTreePanel(PrefabWindow window)
     : base(ScrollBars.Vertical)
 {
     _window      = window;
     Offsets      = Margin.Zero;
     AnchorPreset = AnchorPresets.StretchAll;
 }
示例#2
0
            public override void OnDestroy()
            {
                _window        = null;
                _dragAssets    = null;
                _dragActorType = null;
                _dragHandlers?.Clear();
                _dragHandlers = null;

                base.OnDestroy();
            }
示例#3
0
            internal static CustomPasteActorsAction CustomDuplicate(PrefabWindow window, byte[] data, Guid pasteParent)
            {
                var objectIds = Actor.TryGetSerializedObjectsIds(data);

                if (objectIds == null)
                {
                    return(null);
                }

                return(new CustomPasteActorsAction(window, data, objectIds, ref pasteParent, "Duplicate actors"));
            }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomRootNode"/> class.
 /// </summary>
 /// <param name="window">The window.</param>
 public CustomRootNode(PrefabWindow window)
 {
     _window = window;
 }
示例#5
0
 private CustomPasteActorsAction(PrefabWindow window, byte[] data, Guid[] objectIds, ref Guid pasteParent, string name)
     : base(data, objectIds, ref pasteParent, name)
 {
     _window = window;
 }
示例#6
0
 /// <inheritdoc />
 public void Dispose()
 {
     _window = null;
 }
示例#7
0
            /// <inheritdoc />
            public override void Dispose()
            {
                base.Dispose();

                _window = null;
            }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetRootAction"/> class.
 /// </summary>
 /// <param name="window">The window reference.</param>
 /// <param name="before">The root before.</param>
 /// <param name="after">The root after.</param>
 internal SetRootAction(PrefabWindow window, Actor before, Actor after)
 {
     _window = window;
     _before = before.ID;
     _after  = after.ID;
 }