コード例 #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);
        }
コード例 #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));
 }
コード例 #3
0
 DirectoryTreeWindow InitializeInternal(ElementSelectionSystem baseSystem)
 {
     this.baseSystem = baseSystem;
     position        = new Rect(256, 256, 400, 400);
     return(this);
 }
コード例 #4
0
 public static DirectoryTreeWindow NewDirectoryTreeWindow(ElementSelectionSystem baseSystem, string title = "Directory Tree:")
 {
     return(((DirectoryTreeWindow)GetWindow(typeof(DirectoryTreeWindow), true, title, false)).InitializeInternal(baseSystem));
 }