Ejemplo n.º 1
0
        AssetObjectWindow InitializeInternal(AOStateMachineEditor stateMachineEditor, EditorProp packProp, ElementSelectionSystem selectionSystem)
        {
            this.stateMachineEditor = stateMachineEditor;
            this.selectionSystem    = selectionSystem;

            multiEditAssetObjectProp = new EditorProp(new SerializedObject(this))["multiEditAssetObject"];
            PacksManagerEditor.UpdateAssetObjectParametersIfDifferentFromDefaults(multiEditAssetObjectProp, packProp, true, true);

            EditorProp aoParameters = multiEditAssetObjectProp[AOStateMachineEditor.paramsField];
            int        paramsLength = aoParameters.arraySize;

            parameterLabels = paramsLength.Generate(i => new GUIContent(aoParameters[i]["name"].stringValue)).ToArray();

            int ySize = minSizeWithoutParameters + (parameterYSize * paramsLength);

            position = new Rect(256, 256, 400, ySize);
            return(this);
        }
Ejemplo n.º 2
0
 public static AssetObjectWindow ShowAssetObjectWindow(AOStateMachineEditor stateMachineEditor, EditorProp packProp, ElementSelectionSystem selectionSystem)
 {
     return(((AssetObjectWindow)GetWindow(typeof(AssetObjectWindow), true, "Asset Object:", false)).InitializeInternal(stateMachineEditor, packProp, selectionSystem));
 }
 DirectoryTreeWindow InitializeInternal(ElementSelectionSystem baseSystem)
 {
     this.baseSystem = baseSystem;
     position        = new Rect(256, 256, 400, 400);
     return(this);
 }
 public static DirectoryTreeWindow NewDirectoryTreeWindow(ElementSelectionSystem baseSystem, string title = "Directory Tree:")
 {
     return(((DirectoryTreeWindow)GetWindow(typeof(DirectoryTreeWindow), true, title, false)).InitializeInternal(baseSystem));
 }