private void RemoveExtension(StratusPlayerControllerExtension extension) { endOfFrameRequests.Add(() => { extensionEditor = null; extensionIndex = 0; target.Remove(extension); Undo.DestroyObjectImmediate(extension); RefreshExtensions(); }); }
private void OnTreeSet() { this.behaviorTree.Assert(); this.behaviorTreeProperties = new StratusSerializedPropertyMap(this.behaviorTree, typeof(StratusScriptable)); // Blackboard this.blackboardEditor = null; if (this.blackboard) { this.OnBlackboardSet(); } this.Refresh(); }
private void OnBlackboardSet() { this.blackboardEditor = StratusEditor.CreateEditor(this.behaviorTree.blackboard) as StratusEditor; }
private void CreateExtensionEditor() { extensionEditor = UnityEditor.Editor.CreateEditor(selectedExtension) as StratusEditor; extensionEditor.backgroundStyle = EditorStyles.helpBox; }