Beispiel #1
0
        public MetaContentEditorShell Create(MetaData data)
        {
            MetaContentEditorShell result = Instantiate(_shellPrefab);
            MetaContentEditor      editor = createEditor(data, result);

            result.SetEditor(editor);
            return(result);
        }
Beispiel #2
0
        public void SetEditor(MetaContentEditor editor)
        {
            if (_editor != null)
            {
                Destroy(_editor.Base.gameObject);
            }

            _editor = editor;

            if (_editor != null)
            {
                _editor.Base.SetParent(_editorHook);
                _editor.Base.localScale = Vector3.one;
            }
        }