public SceneTreePanel(PrefabWindow window) : base(ScrollBars.Vertical) { _window = window; Offsets = Margin.Zero; AnchorPreset = AnchorPresets.StretchAll; }
public override void OnDestroy() { _window = null; _dragAssets = null; _dragActorType = null; _dragHandlers?.Clear(); _dragHandlers = null; base.OnDestroy(); }
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")); }
/// <summary> /// Initializes a new instance of the <see cref="CustomRootNode"/> class. /// </summary> /// <param name="window">The window.</param> public CustomRootNode(PrefabWindow window) { _window = window; }
private CustomPasteActorsAction(PrefabWindow window, byte[] data, Guid[] objectIds, ref Guid pasteParent, string name) : base(data, objectIds, ref pasteParent, name) { _window = window; }
/// <inheritdoc /> public void Dispose() { _window = null; }
/// <inheritdoc /> public override void Dispose() { base.Dispose(); _window = null; }
/// <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; }