Ejemplo n.º 1
0
        protected override void OnEditorExist()
        {
            base.OnEditorExist();

            ILocalization lc = IOC.Resolve <ILocalization>();

            lc.LoadStringResources("RTNavigation.StringResources");

            IWindowManager wm       = IOC.Resolve <IWindowManager>();
            Sprite         icon     = Resources.Load <Sprite>("RTN_Header");
            bool           isDialog = false;

            RegisterWindow(wm, "NavigationView", "ID_RTNavigation_WM_Header_Navigation", icon, m_prefab, isDialog);

            m_editorsMap = IOC.Resolve <IEditorsMap>();

            TryToAddEditorMapping(typeof(NavMeshSurface));
            TryToAddEditorMapping(typeof(NavMeshModifierVolume));
            TryToAddEditorMapping(typeof(NavMeshLink));
            TryToAddEditorMapping(typeof(NavMeshModifier));
            TryToAddEditorMapping(typeof(NavMeshObstacle));
            TryToAddEditorMapping(typeof(NavMeshAgent));
            TryToAddEditorMapping(typeof(NavMeshDebugController));

            m_gizmoManager = IOC.Resolve <ISpriteGizmoManager>();

            Material surfaceIcon = Resources.Load <Material>("RTNavigationMeshSurfaceIcon");
            Material volumeIcon  = Resources.Load <Material>("RTNavigationMeshModifierVolumeIcon");
            Material linkIcon    = Resources.Load <Material>("RTNavigationMeshLinkIcon");

            m_gizmoManager.Register(typeof(NavMeshSurface), surfaceIcon);
            m_gizmoManager.Register(typeof(NavMeshModifierVolume), volumeIcon);
            m_gizmoManager.Register(typeof(NavMeshLink), linkIcon);
        }
Ejemplo n.º 2
0
        private void Start()
        {
            m_editor = IOC.Resolve <IRuntimeEditor>();
            m_editor.Object.ComponentAdded += OnComponentAdded;

            m_editorsMap = IOC.Resolve <IEditorsMap>();


            GameObject          go = m_editor.Selection.activeGameObject;
            HashSet <Component> ignoreComponents = IgnoreComponents(go);

            InputName.text        = go.name;
            InputName.readOnly    = true;
            TogEnableDisable.isOn = go.activeSelf;

            InputName.onEndEdit.AddListener(OnEndEditName);
            TogEnableDisable.onValueChanged.AddListener(OnEnableDisable);

            Component[] components = go.GetComponents <Component>();
            for (int i = 0; i < components.Length; ++i)
            {
                Component component = components[i];
                CreateComponentEditor(go, component, ignoreComponents);
            }
        }
        private void Start()
        {
            m_editor = IOC.Resolve <IRuntimeEditor>();
            m_editor.Undo.UndoCompleted += OnUndoCompleted;
            m_editor.Undo.RedoCompleted += OnRedoCompleted;
            m_resourcePreviewUtility     = IOC.Resolve <IResourcePreviewUtility>();
            m_editorsMap = IOC.Resolve <IEditorsMap>();

            if (Material == null)
            {
                Material = m_editor.Selection.activeObject as Material;
            }

            if (Material == null)
            {
                Debug.LogError("Select material");
                return;
            }

            m_previewTexture = new Texture2D(1, 1, TextureFormat.ARGB32, true);

            TxtMaterialName.text = Material.name;
            if (Material.shader != null)
            {
                TxtShaderName.text = Material.shader.name;
            }
            else
            {
                TxtShaderName.text = "Shader missing";
            }

            UpdatePreview(Material);
            BuildEditor();
        }
Ejemplo n.º 4
0
        private void Register()
        {
            ILocalization lc = IOC.Resolve <ILocalization>();

            lc.LoadStringResources("RTTerrain.StringResources");

            IWindowManager wm = IOC.Resolve <IWindowManager>();

            if (m_terrainView != null)
            {
                RegisterWindow(wm, "TerrainEditor", lc.GetString("ID_RTTerrain_WM_Header_TerrainEditor", "Terrain Editor"),
                               Resources.Load <Sprite>("icons8-earth-element-24"), m_terrainView, false);

                IRTEAppearance appearance = IOC.Resolve <IRTEAppearance>();
                appearance.ApplyColors(m_terrainView);
            }

            if (m_terrainComponentEditor != null)
            {
                IEditorsMap editorsMap = IOC.Resolve <IEditorsMap>();
                editorsMap.AddMapping(typeof(Terrain), m_terrainComponentEditor.gameObject, true, false);

                IRTEAppearance appearance = IOC.Resolve <IRTEAppearance>();
                appearance.ApplyColors(m_terrainComponentEditor.gameObject);
            }
        }
Ejemplo n.º 5
0
        private void Start()
        {
            m_editor = IOC.Resolve <IRuntimeEditor>();
            m_editor.Undo.UndoCompleted += OnUndoCompleted;
            m_editor.Undo.RedoCompleted += OnRedoCompleted;
            m_editorsMap = IOC.Resolve <IEditorsMap>();

            if ((Materials == null || Materials.Length == 0) && m_editor.Selection.Length > 0)
            {
                Materials = m_editor.Selection.objects.Cast <Material>().ToArray();
            }

            if (Materials == null || Materials.Length == 0 || Materials[0] == null)
            {
                Debug.LogError("Select material");
                return;
            }

            m_previewTexture = new Texture2D(1, 1, TextureFormat.ARGB32, true);

            TxtMaterialName.text = GetMaterialName(Materials);
            TxtShaderName.text   = GetShaderName(Materials);

            UpdatePreview();
            BuildEditor();
        }
Ejemplo n.º 6
0
        private void Awake()
        {
            m_editor     = IOC.Resolve <IRTE>();
            m_project    = IOC.Resolve <IProject>();
            m_editorsMap = IOC.Resolve <IEditorsMap>();

            AwakeOverride();
        }
        private void Awake()
        {
            m_editorsMap = IOC.Resolve <IEditorsMap>();
            m_editor     = IOC.Resolve <IRuntimeEditor>();
            m_editor.Object.ComponentAdded += OnComponentAdded;

            GameObject[] selectedObjects = m_editor.Selection.gameObjects;
            foreach (GameObject go in m_editor.Selection.gameObjects)
            {
                ExposeToEditor exposeToEditor = go.GetComponent <ExposeToEditor>();
                if (exposeToEditor.GetType().Name == typeof(MyExposeToEditor).Name)
                {
                    MyExposeToEditor myExposeToEditor = (MyExposeToEditor)exposeToEditor;
                    if (myExposeToEditor.CanRename)
                    {
                        Header.SetActive(true);
                    }
                    else
                    {
                        Header.SetActive(false);
                    }
                }
            }
            InputName.text = GetObjectName(selectedObjects);
            InputName.onEndEdit.AddListener(OnEndEditName);

            m_selectedGameObjects = m_editor.Selection.gameObjects.Select(go => new GameObjectWrapper(go)).ToArray();
            IsActiveEditor.Init(m_selectedGameObjects, Strong.PropertyInfo((GameObjectWrapper x) => x.IsActive), string.Empty);


            m_editor.IsBusy = true;
            LayersEditor.LoadLayers(layersInfo =>
            {
                m_editor.IsBusy = false;
                List <RangeOptions.Option> layers = new List <RangeOptions.Option>();

                foreach (LayersInfo.Layer layer in layersInfo.Layers)
                {
                    if (!string.IsNullOrEmpty(layer.Name))
                    {
                        layers.Add(new RangeOptions.Option(string.Format("{0}: {1}", layer.Index, layer.Name), layer.Index));
                    }
                }

                LayerEditor.Options = layers.ToArray();
                LayerEditor.Init(m_editor.Selection.gameObjects, Strong.PropertyInfo((GameObject x) => x.layer), string.Empty);

                List <List <Component> > groups = GetComponentGroups(selectedObjects);
                for (int i = 0; i < groups.Count; ++i)
                {
                    List <Component> group = groups[i];
                    CreateComponentEditor(group);
                }

                UnityEventHelper.AddListener(EditLayersButton, btn => btn.onClick, OnEditLayersClick);
            });
        }
Ejemplo n.º 8
0
 private void Awake()
 {
     m_editor                   = IOC.Resolve <IRTE>();
     m_localization             = IOC.Resolve <ILocalization>();
     m_project                  = IOC.Resolve <IProject>();
     m_project.DeleteCompleted += OnDeleteProjectItemCompleted;
     m_editorsMap               = IOC.Resolve <IEditorsMap>();
     m_typeMap                  = IOC.Resolve <ITypeMap>();
     IOC.RegisterFallback <IRuntimeScriptManager>(this);
 }
        protected override void AwakeOverride()
        {
            WindowType = RuntimeWindowType.Inspector;
            base.AwakeOverride();

            m_editorsMap        = IOC.Resolve <IEditorsMap>();
            m_settingsComponent = IOC.Resolve <ISettingsComponent>();

            Editor.Selection.SelectionChanged += OnRuntimeSelectionChanged;
            CreateEditor();
        }
Ejemplo n.º 10
0
        private void Awake()
        {
            m_editor = IOC.Resolve <IRTE>();
            if (m_editor.Object != null)
            {
                m_editor.Object.ReloadComponentEditor += OnReloadComponentEditor;
            }
            m_project    = IOC.Resolve <IProject>();
            m_editorsMap = IOC.Resolve <IEditorsMap>();

            AwakeOverride();
        }
Ejemplo n.º 11
0
 void IEditorsMapCreator.Create(IEditorsMap map)
 {
     map.AddMapping(typeof(GameObject), 0, true, false);
     map.AddMapping(typeof(object), 1, true, true);
     map.AddMapping(typeof(UnityEngine.Object), 2, true, true);
     map.AddMapping(typeof(bool), 3, true, true);
     map.AddMapping(typeof(Enum), 4, true, true);
     map.AddMapping(typeof(List <>), 5, true, true);
     map.AddMapping(typeof(Array), 6, true, true);
     map.AddMapping(typeof(string), 7, true, true);
     map.AddMapping(typeof(int), 8, true, true);
     map.AddMapping(typeof(float), 9, true, true);
     map.AddMapping(typeof(Range), 10, true, true);
     map.AddMapping(typeof(Vector2), 11, true, true);
     map.AddMapping(typeof(Vector3), 12, true, true);
     map.AddMapping(typeof(Vector4), 13, true, true);
     map.AddMapping(typeof(Quaternion), 14, true, true);
     map.AddMapping(typeof(Color), 15, true, true);
     map.AddMapping(typeof(Bounds), 16, true, true);
     map.AddMapping(typeof(RangeInt), 17, true, true);
     map.AddMapping(typeof(RangeOptions), 18, true, true);
     map.AddMapping(typeof(HeaderText), 19, true, true);
     map.AddMapping(typeof(MethodInfo), 20, true, true);
     map.AddMapping(typeof(Component), 21, true, false);
     map.AddMapping(typeof(BoxCollider), 22, true, false);
     map.AddMapping(typeof(Camera), 21, true, false);
     map.AddMapping(typeof(CapsuleCollider), 22, true, false);
     map.AddMapping(typeof(FixedJoint), 21, true, false);
     map.AddMapping(typeof(HingeJoint), 21, true, false);
     map.AddMapping(typeof(Light), 21, true, false);
     map.AddMapping(typeof(MeshCollider), 21, true, false);
     map.AddMapping(typeof(MeshFilter), 21, true, false);
     map.AddMapping(typeof(MeshRenderer), 21, true, false);
     map.AddMapping(typeof(MonoBehaviour), 21, false, false);
     map.AddMapping(typeof(Rigidbody), 21, true, false);
     map.AddMapping(typeof(SkinnedMeshRenderer), 21, true, false);
     map.AddMapping(typeof(Skybox), 21, true, false);
     map.AddMapping(typeof(SphereCollider), 22, true, false);
     map.AddMapping(typeof(SpringJoint), 21, true, false);
     map.AddMapping(typeof(Transform), 23, true, false);
     map.AddMapping(typeof(RuntimeAnimation), 21, true, false);
     map.AddMapping(typeof(AudioSource), 21, true, false);
     map.AddMapping(typeof(AudioListener), 21, true, false);
     map.AddMapping(typeof(LayersInfo), 24, true, false);
     map.AddMapping(typeof(RangeFlags), 25, true, true);
     map.AddMapping(typeof(LayerMask), 26, true, true);
     map.AddMapping(typeof(RectTransform), 27, true, false);
     map.AddMapping(typeof(LayoutElement), 21, true, false);
     map.AddMapping(typeof(HorizontalLayoutGroup), 21, true, false);
     map.AddMapping(typeof(VerticalLayoutGroup), 21, true, false);
     map.AddMapping(typeof(GridLayoutGroup), 21, true, false);
 }
Ejemplo n.º 12
0
        protected virtual void Awake()
        {
            m_editor = IOC.Resolve <IRTE>();
            if (m_editor.Object != null)
            {
                m_editor.Object.ReloadComponentEditor += OnReloadComponentEditor;
            }
            m_project    = IOC.Resolve <IProject>();
            m_editorsMap = IOC.Resolve <IEditorsMap>();


#pragma warning disable CS0612
            AwakeOverride();
#pragma warning restore CS0612
        }
        private void Awake()
        {
            m_editor       = IOC.Resolve <IRTE>();
            m_localization = IOC.Resolve <ILocalization>();
            m_project      = IOC.Resolve <IProject>();
            m_project.OpenProjectCompleted += OnProjectOpened;
            m_project.DeleteCompleted      += OnDeleteProjectItemCompleted;
            m_editorsMap = IOC.Resolve <IEditorsMap>();
            m_typeMap    = IOC.Resolve <ITypeMap>();
            IOC.RegisterFallback <IRuntimeScriptManager>(this);

            if (m_project.IsOpened)
            {
                StartCoroutine(CoLoad());
            }
        }
Ejemplo n.º 14
0
        protected virtual void AwakeOverride()
        {
            m_rte = RTE;
            IOC.Register <IRTE>(m_rte);
            IOC.Register(m_rte);

            m_resourcePreview         = ResourcePreview;
            m_rteAppearance           = RTEAppearance;
            m_windowManager           = WindowManager;
            m_console                 = RuntimeConsole;
            m_gameObjectCmd           = GameObjectCmd;
            m_editCmd                 = EditCmd;
            m_contextMenu             = ContextMenu;
            m_runtimeHandlesComponent = RuntimeHandlesComponent;
            m_editorsMap              = EditorsMap;
        }
Ejemplo n.º 15
0
        private void Register()
        {
            IWindowManager wm = IOC.Resolve <IWindowManager>();

            if (m_terrainView != null)
            {
                RegisterWindow(wm, "TerrainEditor", "Terrain Editor",
                               Resources.Load <Sprite>("icons8-earth-element-24"), m_terrainView, false);
            }

            if (m_terrainComponentEditor != null)
            {
                IEditorsMap editorsMap = IOC.Resolve <IEditorsMap>();
                editorsMap.AddMapping(typeof(Terrain), m_terrainComponentEditor.gameObject, true, false);
            }
        }
Ejemplo n.º 16
0
        protected override void AwakeOverride()
        {
            base.AwakeOverride();

            m_editorsMap = IOC.Resolve <IEditorsMap>();

            Expander.onValueChanged.AddListener(OnExpanded);
            SizeInput.onValueChanged.AddListener(OnSizeValueChanged);
            SizeInput.onEndEdit.AddListener(OnSizeEndEdit);

            RectTransform rt = SizeLabel.GetComponent <RectTransform>();

            if (rt != null)
            {
                rt.offsetMin = new Vector2(Indent, rt.offsetMin.y);
            }
        }
Ejemplo n.º 17
0
        protected override void AwakeOverride()
        {
            WindowType = RuntimeWindowType.Inspector;
            base.AwakeOverride();

            if (m_gameObjectEditor == null)
            {
                Debug.LogError("GameObjectEditor is not set");
            }
            if (m_materialEditor == null)
            {
                Debug.LogError("MaterialEditor is not set");
            }

            m_editorsMap = IOC.Resolve <IEditorsMap>();

            Editor.Selection.SelectionChanged += OnRuntimeSelectionChanged;
            CreateEditor();
        }
        private void Awake()
        {
            m_editorsMap = IOC.Resolve <IEditorsMap>();
            m_editor     = IOC.Resolve <IRuntimeEditor>();
            m_editor.Object.ComponentAdded += OnComponentAdded;

            GameObject[] selectedObjects = m_editor.Selection.gameObjects;
            InputName.text        = GetObjectName(selectedObjects);
            TogEnableDisable.isOn = GetActiveSelf(selectedObjects);

            InputName.onEndEdit.AddListener(OnEndEditName);
            TogEnableDisable.onValueChanged.AddListener(OnEnableDisable);

            List <List <Component> > groups = GetComponentGroups(selectedObjects);

            for (int i = 0; i < groups.Count; ++i)
            {
                List <Component> group = groups[i];
                CreateComponentEditor(group);
            }
        }
Ejemplo n.º 19
0
        private void OnDestroy()
        {
            if (m_instance == this)
            {
                m_instance = null;
            }

            OnDestroyOverride();

            IOC.Unregister <IRTE>(m_rte);
            IOC.Unregister(m_rte);

            m_resourcePreview         = null;
            m_rteAppearance           = null;
            m_windowManager           = null;
            m_console                 = null;
            m_gameObjectCmd           = null;
            m_editCmd                 = null;
            m_contextMenu             = null;
            m_runtimeHandlesComponent = null;
            m_editorsMap              = null;
        }
Ejemplo n.º 20
0
        private void Register()
        {
            ILocalization lc = IOC.Resolve <ILocalization>();

            lc.LoadStringResources("RTScripting.StringResources");

            IWindowManager wm = IOC.Resolve <IWindowManager>();

            if (m_editRuntimeScriptDialog != null)
            {
                RegisterWindow(wm, "EditRuntimeScript", lc.GetString("ID_RTScripting_WM_Header_EditScript", "Edit Script"),
                               Resources.Load <Sprite>("RTE_Script"), m_editRuntimeScriptDialog, true);

                IRTEAppearance appearance = IOC.Resolve <IRTEAppearance>();
                appearance.ApplyColors(m_editRuntimeScriptDialog);
            }

            if (m_runtimeScriptEditor != null)
            {
                IEditorsMap map = IOC.Resolve <IEditorsMap>();
                map.RegisterEditor(m_runtimeScriptEditor);
            }
        }
 protected virtual void Awake()
 {
     Subscribe();
     m_voidComponentEditor = gameObject.AddComponent <VoidComponentEditor>();
     m_editorsMap          = IOC.Resolve <IEditorsMap>();
 }
 protected override void AwakeOverride()
 {
     base.AwakeOverride();
     m_editorsMap = IOC.Resolve <IEditorsMap>();
     Expander.onValueChanged.AddListener(OnExpanded);
 }
Ejemplo n.º 23
0
        protected virtual void Start()
        {
            m_parentDialog = GetComponentInParent <Dialog>();
            if (m_parentDialog != null)
            {
                m_parentDialog.IsOkVisible = true;
            }

            HashSet <string> alreadyAddedHs = new HashSet <string>();

            RuntimeAnimationProperty[] alreadyAddedProperties = View.Props;
            for (int i = 0; i < alreadyAddedProperties.Length; ++i)
            {
                RuntimeAnimationProperty property = alreadyAddedProperties[i];
                alreadyAddedHs.Add(property.ComponentTypeName + " " + property.PropertyName);
            }

            MemberInfo enabledProperty = Strong.MemberInfo((Behaviour x) => x.enabled);

            List <RuntimeAnimationProperty> components = new List <RuntimeAnimationProperty>();
            IEditorsMap editorsMap = IOC.Resolve <IEditorsMap>();

            Type[] editableTypes = editorsMap.GetEditableTypes();
            for (int i = 0; i < editableTypes.Length; ++i)
            {
                Type editableType = editableTypes[i];
                if (!(typeof(Component).IsAssignableFrom(editableType)) || typeof(Component) == editableType)
                {
                    continue;
                }
                Component targetComponent = Target.GetComponent(editableType);
                if (targetComponent == null)
                {
                    continue;
                }
                m_voidComponentEditor.Components = new[] { targetComponent };

                RuntimeAnimationProperty component = new RuntimeAnimationProperty();
                component.ComponentDisplayName = editableType.Name;
                component.ComponentTypeName    = string.Format("{0},{1}", editableType.FullName, editableType.Assembly.FullName.Split(',')[0]);
                component.Children             = new List <RuntimeAnimationProperty>();
                component.Component            = m_voidComponentEditor.Components[0];

                PropertyDescriptor[] propertyDescriptors = editorsMap.GetPropertyDescriptors(editableType, m_voidComponentEditor);
                for (int j = 0; j < propertyDescriptors.Length; ++j)
                {
                    PropertyDescriptor propertyDescriptor = propertyDescriptors[j];
                    Type memberType = propertyDescriptor.MemberType;
                    if (memberType.IsClass || memberType.IsEnum || typeof(MonoBehaviour).IsAssignableFrom(editableType) && propertyDescriptor.MemberInfo is PropertyInfo)
                    {
                        continue;
                    }

                    if (alreadyAddedHs.Contains(component.ComponentTypeName + " " + propertyDescriptor.MemberInfo.Name))
                    {
                        continue;
                    }

                    RuntimeAnimationProperty property = new RuntimeAnimationProperty();
                    property.Parent               = component;
                    property.ComponentTypeName    = component.ComponentTypeName;
                    property.ComponentDisplayName = component.ComponentDisplayName;
                    property.PropertyName         = propertyDescriptor.MemberInfo.Name;
                    property.PropertyDisplayName  = propertyDescriptor.Label;

                    if (propertyDescriptor.MemberInfo.Name == enabledProperty.Name && propertyDescriptor.MemberInfo.DeclaringType == enabledProperty.DeclaringType)
                    {
                        property.AnimationPropertyName = "m_Enabled";
                    }
                    else
                    {
                        if (string.IsNullOrEmpty(propertyDescriptor.AnimationPropertyName))
                        {
                            Type componentType = property.ComponentType;
                            if (typeof(Component).IsAssignableFrom(componentType) && !typeof(MonoBehaviour).IsAssignableFrom(componentType))
                            {
                                //Trying to derive serialized property name
                                string aPropName = propertyDescriptor.MemberInfo.Name;
                                property.AnimationPropertyName = "m_" + Char.ToUpper(aPropName[0]) + aPropName.Substring(1);
                            }
                            else
                            {
                                property.AnimationPropertyName = propertyDescriptor.MemberInfo.Name;
                            }
                        }
                        else
                        {
                            property.AnimationPropertyName = propertyDescriptor.AnimationPropertyName;
                        }
                    }

                    property.Component = propertyDescriptor.Target;


                    component.Children.Add(property);
                }

                if (component.Children.Count > 0)
                {
                    components.Add(component);
                }

                m_voidComponentEditor.Components = null;
            }

            m_propertiesTreeView.Items = components;
        }
 void IEditorsMapCreator.Create(IEditorsMap map)
 {
     map.AddMapping(typeof(UnityEngine.GameObject), 0, true, false);
     map.AddMapping(typeof(LayersInfo), 1, true, false);
     map.AddMapping(typeof(System.Object), 2, true, true);
     map.AddMapping(typeof(UnityEngine.Object), 3, true, true);
     map.AddMapping(typeof(System.Boolean), 4, true, true);
     map.AddMapping(typeof(System.Enum), 5, true, true);
     map.AddMapping(typeof(System.Collections.Generic.List <>), 6, true, true);
     map.AddMapping(typeof(System.Array), 7, true, true);
     map.AddMapping(typeof(System.String), 8, true, true);
     map.AddMapping(typeof(System.Int32), 9, true, true);
     map.AddMapping(typeof(System.Single), 10, true, true);
     map.AddMapping(typeof(Range), 11, true, true);
     map.AddMapping(typeof(UnityEngine.Vector2), 12, true, true);
     map.AddMapping(typeof(UnityEngine.Vector3), 13, true, true);
     map.AddMapping(typeof(UnityEngine.Vector4), 14, true, true);
     map.AddMapping(typeof(UnityEngine.Quaternion), 15, true, true);
     map.AddMapping(typeof(UnityEngine.Color), 16, true, true);
     map.AddMapping(typeof(UnityEngine.Bounds), 17, true, true);
     map.AddMapping(typeof(RangeInt), 18, true, true);
     map.AddMapping(typeof(RangeOptions), 19, true, true);
     map.AddMapping(typeof(HeaderText), 20, true, true);
     map.AddMapping(typeof(System.Reflection.MethodInfo), 21, true, true);
     map.AddMapping(typeof(RangeFlags), 22, true, true);
     map.AddMapping(typeof(UnityEngine.LayerMask), 23, true, true);
     map.AddMapping(typeof(UnityEngine.Component), 24, true, false);
     map.AddMapping(typeof(UnityEngine.AudioListener), 24, true, false);
     map.AddMapping(typeof(UnityEngine.AudioSource), 24, true, false);
     map.AddMapping(typeof(UnityEngine.BoxCollider), 25, true, false);
     map.AddMapping(typeof(UnityEngine.Camera), 24, true, false);
     map.AddMapping(typeof(UnityEngine.CapsuleCollider), 25, true, false);
     map.AddMapping(typeof(UnityEngine.FixedJoint), 24, true, false);
     map.AddMapping(typeof(UnityEngine.UI.GridLayoutGroup), 24, true, false);
     map.AddMapping(typeof(UnityEngine.HingeJoint), 24, true, false);
     map.AddMapping(typeof(UnityEngine.UI.HorizontalLayoutGroup), 24, true, false);
     map.AddMapping(typeof(UnityEngine.UI.LayoutElement), 24, true, false);
     map.AddMapping(typeof(UnityEngine.Light), 24, true, false);
     map.AddMapping(typeof(UnityEngine.MeshCollider), 24, false, false);
     map.AddMapping(typeof(UnityEngine.MeshFilter), 24, false, false);
     map.AddMapping(typeof(UnityEngine.MeshRenderer), 24, false, false);
     map.AddMapping(typeof(UnityEngine.MonoBehaviour), 24, false, false);
     map.AddMapping(typeof(UnityEngine.RectTransform), 26, true, false);
     map.AddMapping(typeof(UnityEngine.Rigidbody), 24, true, false);
     map.AddMapping(typeof(UnityEngine.SkinnedMeshRenderer), 24, true, false);
     map.AddMapping(typeof(UnityEngine.Skybox), 24, true, false);
     map.AddMapping(typeof(UnityEngine.SphereCollider), 25, true, false);
     map.AddMapping(typeof(UnityEngine.SpringJoint), 24, true, false);
     map.AddMapping(typeof(UnityEngine.Transform), 27, true, false);
     map.AddMapping(typeof(UnityEngine.UI.VerticalLayoutGroup), 24, true, false);
     map.AddMapping(typeof(RuntimeAnimation), 24, true, false);
     map.AddMapping(typeof(BoxRegion), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.LocalViewer.BackgroundColorControl), 28, false, false);
     map.AddMapping(typeof(Hulix.Hitonavi.LocalViewer.BackgroundParameters), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.BackgroundSubtractionNode), 29, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.ClusteringNode), 29, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.Hokuyo3d), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.Livox), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.RosConnection), 28, false, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.RosConnectionParameters), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.RosRegionsManager), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.SubscribeBoundingBoxes), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.ROS.SubscribePointCloud2), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.UnityVisualization.VisualizeBoundingBoxes), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.UnityVisualization.VisualizeTrajectory), 28, true, false);
     map.AddMapping(typeof(Hulix.Hitonavi.VisualizePointCloud2), 28, true, false);
 }