Ejemplo n.º 1
0
        public static void Initialize()
        {
            DestroyAppAndModules();
            RLDApp    gizmosApp    = CreateAppModuleObject <RLDApp>(null);
            Transform appTransform = gizmosApp.transform;

            CreateAppModuleObject <RTPrefabLibDb>(appTransform);
            CreateAppModuleObject <RTGizmosEngine>(appTransform);

            RTScene scene = CreateAppModuleObject <RTScene>(appTransform);

            scene.LookAndFeel.LightIcon          = TexturePool.Get.MainLightIcon;
            scene.LookAndFeel.ParticleSystemIcon = TexturePool.Get.MainParticleSystemIcon;
            scene.LookAndFeel.CameraIcon         = TexturePool.Get.CameraIcon;
            CreateAppModuleObject <RTSceneGrid>(appTransform);

            CreateAppModuleObject <RTObjectSelection>(appTransform);
            CreateAppModuleObject <RTObjectSelectionGizmos>(appTransform);

            CreateAppModuleObject <RTObjectGroupDb>(appTransform);

            RTFocusCamera focusCamera = CreateAppModuleObject <RTFocusCamera>(appTransform);

            focusCamera.SetTargetCamera(Camera.main);
            CreateAppModuleObject <RTCameraBackground>(appTransform);

            CreateAppModuleObject <RTInputDevice>(appTransform);
            CreateAppModuleObject <RTUndoRedo>(appTransform);
        }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     _camera = target as RTFocusCamera;
 }