public AddGeneratorPopupContent(GeneratorExecutive generatorExecutive, List <GeneratorTreeItem> generatorTree, float width) { _executive = generatorExecutive; _generatorTree = generatorTree; _width = width; _height = 0f; }
public static TGenerator CreateInstance <TGenerator>(GeneratorExecutive executive, string name) where TGenerator : Generator { var generator = CreateInstance <TGenerator>(); generator.executive = executive; generator.name = name; generator.hideFlags = HideFlags.HideInHierarchy; return(generator); }
public static AssetCollection Create(GeneratorExecutive executive) { var instance = CreateInstance <AssetCollection>(); instance.executive = executive; instance.discreteAssets = new List <Object>(); instance.embeddedAssets = new List <Object>(); return(instance); }
public static TGenerator CreateInstance <TGenerator>(GeneratorExecutive executive) where TGenerator : Generator { var assetGeneratorAttribute = GeneralUtility.GetAttribute <GeneratorAttribute>(typeof(TGenerator)); if (assetGeneratorAttribute != null) { return(CreateInstance <TGenerator>(executive, assetGeneratorAttribute.name)); } else { return(CreateInstance <TGenerator>(executive, typeof(TGenerator).GetPrettyName())); } }
protected void OnEnable() { if (_executive == null) { if (!(target is GeneratorExecutive)) { return; } _executive = (GeneratorExecutive)target; } foreach (var editorState in _editorStates) { editorState.Value.foldoutAnimation = new AnimBool(editorState.Value.foldout); editorState.Value.foldoutAnimation.valueChanged.AddListener(Repaint); } _messageFoldoutAnimation = new AnimBool(_messageFoldout); _messageFoldoutAnimation.valueChanged.AddListener(Repaint); _sectionEndSpaceHeight = 0f; }