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

                base.OnDestroy();
            }
Beispiel #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"));
            }
Beispiel #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;
 }
Beispiel #5
0
 private CustomPasteActorsAction(PrefabWindow window, byte[] data, Guid[] objectIds, ref Guid pasteParent, string name)
     : base(data, objectIds, ref pasteParent, name)
 {
     _window = window;
 }
Beispiel #6
0
 /// <inheritdoc />
 public void Dispose()
 {
     _window = null;
 }
Beispiel #7
0
            /// <inheritdoc />
            public override void Dispose()
            {
                base.Dispose();

                _window = null;
            }
Beispiel #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;
 }