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); }
private void OnEnable() { _scene = target as RTScene; _scene.Settings.FoldoutLabel = "Settings"; _scene.Settings.UsesFoldout = true; _scene.LookAndFeel.FoldoutLabel = "Look & feel"; _scene.LookAndFeel.UsesFoldout = true; }