コード例 #1
0
        protected void OnGUI()
        {
            EditorGUILayout.Space();
            _projectid = EditorGUILayout.TextField("Project Name", _projectid);

            EditorGUILayout.Space();
            _scene = EditorGUILayout.TextField("Scene Name", _scene);

            EditorGUILayout.Space();
            _urn = EditorGUILayout.TextField("Project URN", _urn);

            EditorGUILayout.Space();
            _bearer = EditorGUILayout.TextField("Access Token", _bearer);

            //EditorGUILayout.Space () ;
            //_lodLevel =(LODLevels)EditorGUILayout.EnumPopup ("Target", _lodLevel) ;

            //EditorGUILayout.Space () ;
            //_autoScale =EditorGUILayout.ToggleLeft ("Auto Scale", _autoScale) ;

            EditorGUILayout.Space();
            EditorGUILayout.BeginHorizontal();
            _loadMetadata = EditorGUILayout.ToggleLeft("Load Metadata", _loadMetadata);
            //EditorGUILayout.Space ();
            _loadMesh = EditorGUILayout.ToggleLeft("Load Mesh & Materials", _loadMesh);
            //EditorGUILayout.Space ();
            _createColliders = EditorGUILayout.ToggleLeft("Create Colliders", _createColliders);
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Space();
            _saveToDisk = EditorGUILayout.ToggleLeft("Save Asset to disk", _saveToDisk);

            EditorGUILayout.Space();
            /*Rect r =*/ EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Import"))
            {
                ImportBubble();
            }
            if (GUILayout.Button("Cancel"))
            {
                CloseDialog();
            }
            EditorGUILayout.EndHorizontal();

            if (_loaderActive)
            {
                _loader.Update();
            }
        }
コード例 #2
0
 protected void Update()
 {
     _loader.Update();
 }