├── .gitignore ├── Assets ├── CreateThis.meta ├── CreateThis │ ├── Audio.meta │ ├── Audio │ │ ├── TwoStageButtonClickDown.mp3 │ │ ├── TwoStageButtonClickDown.mp3.meta │ │ ├── TwoStageButtonClickUp.mp3 │ │ ├── TwoStageButtonClickUp.mp3.meta │ │ ├── TypeWriterKey.mp3 │ │ └── TypeWriterKey.mp3.meta │ ├── Materials.meta │ ├── Materials │ │ ├── ButtonBackground.mat │ │ ├── ButtonBackground.mat.meta │ │ ├── button highlight.mat │ │ ├── button highlight.mat.meta │ │ ├── controller.mat │ │ ├── controller.mat.meta │ │ ├── highlight.mat │ │ ├── highlight.mat.meta │ │ ├── outline.mat │ │ ├── outline.mat.meta │ │ ├── tablet highlight.mat │ │ ├── tablet highlight.mat.meta │ │ ├── tablet.mat │ │ ├── tablet.mat.meta │ │ ├── tablet_transparent.mat │ │ └── tablet_transparent.mat.meta │ ├── Models.meta │ ├── Models │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── Material_#33B8BE00.mat │ │ │ ├── Material_#33B8BE00.mat.meta │ │ │ ├── Material_#C3BA8100.mat │ │ │ ├── Material_#C3BA8100.mat.meta │ │ │ ├── defaultMat.mat │ │ │ └── defaultMat.mat.meta │ │ ├── folder_centered.mtl │ │ ├── folder_centered.mtl.meta │ │ ├── folder_centered.obj │ │ ├── folder_centered.obj.meta │ │ ├── pointer_cone.mtl │ │ ├── pointer_cone.mtl.meta │ │ ├── pointer_cone.obj │ │ ├── pointer_cone.obj.meta │ │ ├── pointer_cone_origin.mtl │ │ ├── pointer_cone_origin.mtl.meta │ │ ├── pointer_cone_origin.obj │ │ └── pointer_cone_origin.obj.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── TouchPadMenuTools.prefab │ │ ├── TouchPadMenuTools.prefab.meta │ │ ├── folder.prefab │ │ ├── folder.prefab.meta │ │ ├── pointer_cone.prefab │ │ └── pointer_cone.prefab.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Example.meta │ │ ├── Example │ │ │ ├── ColorPicker.meta │ │ │ ├── ColorPicker │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ │ ├── ExampleColorPickerFactoryEditor.cs │ │ │ │ │ └── ExampleColorPickerFactoryEditor.cs.meta │ │ │ │ ├── ExampleColorPickerFactory.cs │ │ │ │ ├── ExampleColorPickerFactory.cs.meta │ │ │ │ ├── ExampleColorPickerIO.cs │ │ │ │ └── ExampleColorPickerIO.cs.meta │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ │ ├── ExampleMasterUIFactoryEditor.cs │ │ │ │ ├── ExampleMasterUIFactoryEditor.cs.meta │ │ │ │ ├── ExampleSkyboxButtonFactoryEditor.cs │ │ │ │ ├── ExampleSkyboxButtonFactoryEditor.cs.meta │ │ │ │ ├── ToolsExamplePanelFactoryEditor.cs │ │ │ │ └── ToolsExamplePanelFactoryEditor.cs.meta │ │ │ ├── ExampleMasterUIFactory.cs │ │ │ ├── ExampleMasterUIFactory.cs.meta │ │ │ ├── ExampleSkyboxButton.cs │ │ │ ├── ExampleSkyboxButton.cs.meta │ │ │ ├── ExampleSkyboxButtonFactory.cs │ │ │ ├── ExampleSkyboxButtonFactory.cs.meta │ │ │ ├── ExampleSkyboxManager.cs │ │ │ ├── ExampleSkyboxManager.cs.meta │ │ │ ├── ToolsExamplePanelFactory.cs │ │ │ └── ToolsExamplePanelFactory.cs.meta │ │ ├── Factory.meta │ │ ├── Factory │ │ │ ├── BaseFactory.cs │ │ │ ├── BaseFactory.cs.meta │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ │ ├── BaseFactoryEditor.cs │ │ │ │ └── BaseFactoryEditor.cs.meta │ │ │ ├── VR.meta │ │ │ └── VR │ │ │ │ ├── UI.meta │ │ │ │ └── UI │ │ │ │ ├── Button.meta │ │ │ │ ├── Button │ │ │ │ ├── ButtonBaseFactory.cs │ │ │ │ ├── ButtonBaseFactory.cs.meta │ │ │ │ ├── ButtonSpacerFactory.cs │ │ │ │ ├── ButtonSpacerFactory.cs.meta │ │ │ │ ├── DriveButtonFactory.cs │ │ │ │ ├── DriveButtonFactory.cs.meta │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ │ ├── ButtonBaseFactoryEditor.cs │ │ │ │ │ ├── ButtonBaseFactoryEditor.cs.meta │ │ │ │ │ ├── DriveButtonFactoryEditor.cs │ │ │ │ │ ├── DriveButtonFactoryEditor.cs.meta │ │ │ │ │ ├── KnownFolderButtonFactoryEditor.cs │ │ │ │ │ ├── KnownFolderButtonFactoryEditor.cs.meta │ │ │ │ │ ├── MomentaryButtonFactoryEditor.cs │ │ │ │ │ ├── MomentaryButtonFactoryEditor.cs.meta │ │ │ │ │ ├── PanelToggleVisibilityMomentaryButtonFactoryEditor.cs │ │ │ │ │ ├── PanelToggleVisibilityMomentaryButtonFactoryEditor.cs.meta │ │ │ │ │ ├── ToggleButtonFactoryEditor.cs │ │ │ │ │ └── ToggleButtonFactoryEditor.cs.meta │ │ │ │ ├── Keyboard.meta │ │ │ │ ├── Keyboard │ │ │ │ │ ├── Editor.meta │ │ │ │ │ ├── Editor │ │ │ │ │ │ ├── KeyboardBackspaceButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardBackspaceButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardDoneButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardDoneButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardMomentaryKeyButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardMomentaryKeyButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardNumLockButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardNumLockButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardReturnButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardReturnButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardShiftLockButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardShiftLockButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardSymbolButtonFactoryEditor.cs │ │ │ │ │ │ ├── KeyboardSymbolButtonFactoryEditor.cs.meta │ │ │ │ │ │ ├── KeyboardToggleButtonFactoryEditor.cs │ │ │ │ │ │ └── KeyboardToggleButtonFactoryEditor.cs.meta │ │ │ │ │ ├── KeyboardBackspaceButtonFactory.cs │ │ │ │ │ ├── KeyboardBackspaceButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardButtonFactory.cs │ │ │ │ │ ├── KeyboardButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardDoneButtonFactory.cs │ │ │ │ │ ├── KeyboardDoneButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardMomentaryKeyButtonFactory.cs │ │ │ │ │ ├── KeyboardMomentaryKeyButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardNumLockButtonFactory.cs │ │ │ │ │ ├── KeyboardNumLockButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardReturnButtonFactory.cs │ │ │ │ │ ├── KeyboardReturnButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardShiftLockButtonFactory.cs │ │ │ │ │ ├── KeyboardShiftLockButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardSymbolButtonFactory.cs │ │ │ │ │ ├── KeyboardSymbolButtonFactory.cs.meta │ │ │ │ │ ├── KeyboardToggleButtonFactory.cs │ │ │ │ │ ├── KeyboardToggleButtonFactory.cs.meta │ │ │ │ │ ├── RepeatingKeyboardButtonFactory.cs │ │ │ │ │ ├── RepeatingKeyboardButtonFactory.cs.meta │ │ │ │ │ ├── TriggerExitKeyboardButtonFactory.cs │ │ │ │ │ ├── TriggerExitKeyboardButtonFactory.cs.meta │ │ │ │ │ ├── TriggerExitKeyboardToggleButtonFactory.cs │ │ │ │ │ └── TriggerExitKeyboardToggleButtonFactory.cs.meta │ │ │ │ ├── KnownFolderButtonFactory.cs │ │ │ │ ├── KnownFolderButtonFactory.cs.meta │ │ │ │ ├── MomentaryButtonFactory.cs │ │ │ │ ├── MomentaryButtonFactory.cs.meta │ │ │ │ ├── PanelToggleVisibilityMomentaryButtonFactory.cs │ │ │ │ ├── PanelToggleVisibilityMomentaryButtonFactory.cs.meta │ │ │ │ ├── SaveAs.meta │ │ │ │ ├── SaveAs │ │ │ │ │ ├── SaveAsButtonFactory.cs │ │ │ │ │ ├── SaveAsButtonFactory.cs.meta │ │ │ │ │ ├── SaveAsFileNameButtonFactory.cs │ │ │ │ │ └── SaveAsFileNameButtonFactory.cs.meta │ │ │ │ ├── ToggleButtonFactory.cs │ │ │ │ └── ToggleButtonFactory.cs.meta │ │ │ │ ├── ColorPicker.meta │ │ │ │ ├── ColorPicker │ │ │ │ ├── ColorPickerFactory.cs │ │ │ │ ├── ColorPickerFactory.cs.meta │ │ │ │ ├── Editor.meta │ │ │ │ └── Editor │ │ │ │ │ ├── ColorPickerFactoryEditor.cs │ │ │ │ │ └── ColorPickerFactoryEditor.cs.meta │ │ │ │ ├── Container.meta │ │ │ │ ├── Container │ │ │ │ ├── ColumnContainerFactory.cs │ │ │ │ ├── ColumnContainerFactory.cs.meta │ │ │ │ ├── ContainerBaseFactory.cs │ │ │ │ ├── ContainerBaseFactory.cs.meta │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ │ ├── ColumnContainerFactoryEditor.cs │ │ │ │ │ ├── ColumnContainerFactoryEditor.cs.meta │ │ │ │ │ ├── ContainerBaseFactoryEditor.cs │ │ │ │ │ ├── ContainerBaseFactoryEditor.cs.meta │ │ │ │ │ ├── PanelContainerFactoryEditor.cs │ │ │ │ │ ├── PanelContainerFactoryEditor.cs.meta │ │ │ │ │ ├── RowContainerFactoryEditor.cs │ │ │ │ │ └── RowContainerFactoryEditor.cs.meta │ │ │ │ ├── PanelContainerFactory.cs │ │ │ │ ├── PanelContainerFactory.cs.meta │ │ │ │ ├── RowContainerFactory.cs │ │ │ │ └── RowContainerFactory.cs.meta │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ ├── KeyboardFactoryEditor.cs │ │ │ │ └── KeyboardFactoryEditor.cs.meta │ │ │ │ ├── File.meta │ │ │ │ ├── File │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ │ ├── FileOpenFactoryEditor.cs │ │ │ │ │ ├── FileOpenFactoryEditor.cs.meta │ │ │ │ │ ├── FileSaveAsFactoryEditor.cs │ │ │ │ │ └── FileSaveAsFactoryEditor.cs.meta │ │ │ │ ├── FileBaseFactory.cs │ │ │ │ ├── FileBaseFactory.cs.meta │ │ │ │ ├── FileOpenFactory.cs │ │ │ │ ├── FileOpenFactory.cs.meta │ │ │ │ ├── FileSaveAsFactory.cs │ │ │ │ └── FileSaveAsFactory.cs.meta │ │ │ │ ├── KeyboardFactory.cs │ │ │ │ ├── KeyboardFactory.cs.meta │ │ │ │ ├── KeyboardKey.cs │ │ │ │ ├── KeyboardKey.cs.meta │ │ │ │ ├── Scroller.meta │ │ │ │ ├── Scroller │ │ │ │ ├── Editor.meta │ │ │ │ ├── Editor │ │ │ │ │ ├── KineticScrollerItemFactoryEditor.cs │ │ │ │ │ └── KineticScrollerItemFactoryEditor.cs.meta │ │ │ │ ├── KineticScrollerItemFactory.cs │ │ │ │ └── KineticScrollerItemFactory.cs.meta │ │ │ │ ├── test.json │ │ │ │ └── test.json.meta │ │ ├── Math.meta │ │ ├── Math │ │ │ ├── Ratio.cs │ │ │ └── Ratio.cs.meta │ │ ├── System.meta │ │ ├── System │ │ │ ├── KnownFolders.cs │ │ │ └── KnownFolders.cs.meta │ │ ├── Unity.meta │ │ ├── Unity │ │ │ ├── DetachReattach.cs │ │ │ ├── DetachReattach.cs.meta │ │ │ ├── DonutSliceMesh.cs │ │ │ ├── DonutSliceMesh.cs.meta │ │ │ ├── MaterialCache.cs │ │ │ ├── MaterialCache.cs.meta │ │ │ ├── ObjectBounds.cs │ │ │ ├── ObjectBounds.cs.meta │ │ │ ├── ScriptUtils.cs │ │ │ ├── ScriptUtils.cs.meta │ │ │ ├── TextureCache.cs │ │ │ ├── TextureCache.cs.meta │ │ │ ├── TransformWithoutRotation.cs │ │ │ ├── TransformWithoutRotation.cs.meta │ │ │ ├── Triangle.cs │ │ │ ├── Triangle.cs.meta │ │ │ ├── Undoable.cs │ │ │ └── Undoable.cs.meta │ │ ├── VR.meta │ │ ├── VR │ │ │ ├── Haptic.cs │ │ │ ├── Haptic.cs.meta │ │ │ ├── UI.meta │ │ │ ├── UI │ │ │ │ ├── Button.meta │ │ │ │ ├── Button │ │ │ │ │ ├── ButtonBase.cs │ │ │ │ │ ├── ButtonBase.cs.meta │ │ │ │ │ ├── ButtonProfile.cs │ │ │ │ │ ├── ButtonProfile.cs.meta │ │ │ │ │ ├── DriveButton.cs │ │ │ │ │ ├── DriveButton.cs.meta │ │ │ │ │ ├── Editor.meta │ │ │ │ │ ├── Editor │ │ │ │ │ │ ├── GrowButtonByTextMeshEditor.cs │ │ │ │ │ │ ├── GrowButtonByTextMeshEditor.cs.meta │ │ │ │ │ │ ├── ToggleButtonEditor.cs │ │ │ │ │ │ └── ToggleButtonEditor.cs.meta │ │ │ │ │ ├── GrowButtonByTextMesh.cs │ │ │ │ │ ├── GrowButtonByTextMesh.cs.meta │ │ │ │ │ ├── Keyboard.meta │ │ │ │ │ ├── Keyboard │ │ │ │ │ │ ├── KeyboardBackspaceButton.cs │ │ │ │ │ │ ├── KeyboardBackspaceButton.cs.meta │ │ │ │ │ │ ├── KeyboardDoneButton.cs │ │ │ │ │ │ ├── KeyboardDoneButton.cs.meta │ │ │ │ │ │ ├── KeyboardMomentaryButton.cs │ │ │ │ │ │ ├── KeyboardMomentaryButton.cs.meta │ │ │ │ │ │ ├── KeyboardMomentaryKeyButton.cs │ │ │ │ │ │ ├── KeyboardMomentaryKeyButton.cs.meta │ │ │ │ │ │ ├── KeyboardNumLockButton.cs │ │ │ │ │ │ ├── KeyboardNumLockButton.cs.meta │ │ │ │ │ │ ├── KeyboardReturnButton.cs │ │ │ │ │ │ ├── KeyboardReturnButton.cs.meta │ │ │ │ │ │ ├── KeyboardShiftLockButton.cs │ │ │ │ │ │ ├── KeyboardShiftLockButton.cs.meta │ │ │ │ │ │ ├── KeyboardSymbolButton.cs │ │ │ │ │ │ ├── KeyboardSymbolButton.cs.meta │ │ │ │ │ │ ├── KeyboardToggleButton.cs │ │ │ │ │ │ └── KeyboardToggleButton.cs.meta │ │ │ │ │ ├── KnownFolderButton.cs │ │ │ │ │ ├── KnownFolderButton.cs.meta │ │ │ │ │ ├── MomentaryButton.cs │ │ │ │ │ ├── MomentaryButton.cs.meta │ │ │ │ │ ├── PanelToggleVisibilityMomentaryButton.cs │ │ │ │ │ ├── PanelToggleVisibilityMomentaryButton.cs.meta │ │ │ │ │ ├── SaveAsButton.cs │ │ │ │ │ ├── SaveAsButton.cs.meta │ │ │ │ │ ├── SaveAsFileNameButton.cs │ │ │ │ │ ├── SaveAsFileNameButton.cs.meta │ │ │ │ │ ├── ToggleButton.cs │ │ │ │ │ └── ToggleButton.cs.meta │ │ │ │ ├── ColorPicker.meta │ │ │ │ ├── ColorPicker │ │ │ │ │ ├── ColorPickerIOBase.cs │ │ │ │ │ ├── ColorPickerIOBase.cs.meta │ │ │ │ │ ├── ColorPickerProfile.cs │ │ │ │ │ ├── ColorPickerProfile.cs.meta │ │ │ │ │ ├── ColorPickerThumbTouchable.cs │ │ │ │ │ └── ColorPickerThumbTouchable.cs.meta │ │ │ │ ├── Container.meta │ │ │ │ ├── Container │ │ │ │ │ ├── ColumnContainer.cs │ │ │ │ │ ├── ColumnContainer.cs.meta │ │ │ │ │ ├── Editor.meta │ │ │ │ │ ├── Editor │ │ │ │ │ │ ├── ColumnContainerEditor.cs │ │ │ │ │ │ ├── ColumnContainerEditor.cs.meta │ │ │ │ │ │ ├── PanelContainerEditor.cs │ │ │ │ │ │ ├── PanelContainerEditor.cs.meta │ │ │ │ │ │ ├── RowContainerEditor.cs │ │ │ │ │ │ └── RowContainerEditor.cs.meta │ │ │ │ │ ├── PanelContainer.cs │ │ │ │ │ ├── PanelContainer.cs.meta │ │ │ │ │ ├── PanelContainerProfile.cs │ │ │ │ │ ├── PanelContainerProfile.cs.meta │ │ │ │ │ ├── RowContainer.cs │ │ │ │ │ ├── RowContainer.cs.meta │ │ │ │ │ ├── UpdateBoxColliderFromTextMesh.cs │ │ │ │ │ └── UpdateBoxColliderFromTextMesh.cs.meta │ │ │ │ ├── Controller.meta │ │ │ │ ├── Controller │ │ │ │ │ ├── TouchController.cs │ │ │ │ │ ├── TouchController.cs.meta │ │ │ │ │ ├── TouchPadMenuController.cs │ │ │ │ │ ├── TouchPadMenuController.cs.meta │ │ │ │ │ ├── TranslucentController.cs │ │ │ │ │ └── TranslucentController.cs.meta │ │ │ │ ├── Defaults.cs │ │ │ │ ├── Defaults.cs.meta │ │ │ │ ├── Drives.cs │ │ │ │ ├── Drives.cs.meta │ │ │ │ ├── Event.meta │ │ │ │ ├── Event │ │ │ │ │ ├── I3dWidgetResized.cs │ │ │ │ │ └── I3dWidgetResized.cs.meta │ │ │ │ ├── File.meta │ │ │ │ ├── File │ │ │ │ │ ├── FileBase.cs │ │ │ │ │ ├── FileBase.cs.meta │ │ │ │ │ ├── FileData.cs │ │ │ │ │ ├── FileData.cs.meta │ │ │ │ │ ├── FileOpen.cs │ │ │ │ │ ├── FileOpen.cs.meta │ │ │ │ │ ├── FilePanelProfile.cs │ │ │ │ │ ├── FilePanelProfile.cs.meta │ │ │ │ │ ├── FileSaveAs.cs │ │ │ │ │ └── FileSaveAs.cs.meta │ │ │ │ ├── Interact.meta │ │ │ │ ├── Interact │ │ │ │ │ ├── Grabbable.cs │ │ │ │ │ ├── Grabbable.cs.meta │ │ │ │ │ ├── Selectable.cs │ │ │ │ │ ├── Selectable.cs.meta │ │ │ │ │ ├── Touchable.cs │ │ │ │ │ ├── Touchable.cs.meta │ │ │ │ │ ├── Triggerable.cs │ │ │ │ │ └── Triggerable.cs.meta │ │ │ │ ├── Keyboard.cs │ │ │ │ ├── Keyboard.cs.meta │ │ │ │ ├── KeyboardLabel.cs │ │ │ │ ├── KeyboardLabel.cs.meta │ │ │ │ ├── Panel.meta │ │ │ │ ├── Panel │ │ │ │ │ ├── NotificationPanel.cs │ │ │ │ │ ├── NotificationPanel.cs.meta │ │ │ │ │ ├── PanelBase.cs │ │ │ │ │ ├── PanelBase.cs.meta │ │ │ │ │ ├── PanelProfile.cs │ │ │ │ │ ├── PanelProfile.cs.meta │ │ │ │ │ ├── StandardPanel.cs │ │ │ │ │ └── StandardPanel.cs.meta │ │ │ │ ├── PanelManager.cs │ │ │ │ ├── PanelManager.cs.meta │ │ │ │ ├── PanelUtils.cs │ │ │ │ ├── PanelUtils.cs.meta │ │ │ │ ├── Scroller.meta │ │ │ │ ├── Scroller │ │ │ │ │ ├── KineticScroller.cs │ │ │ │ │ ├── KineticScroller.cs.meta │ │ │ │ │ ├── KineticScrollerItem.cs │ │ │ │ │ └── KineticScrollerItem.cs.meta │ │ │ │ ├── UnityEvent.meta │ │ │ │ ├── UnityEvent │ │ │ │ │ ├── BoolEvent.cs │ │ │ │ │ ├── BoolEvent.cs.meta │ │ │ │ │ ├── FilePathEvent.cs │ │ │ │ │ ├── FilePathEvent.cs.meta │ │ │ │ │ ├── GrabEvent.cs │ │ │ │ │ ├── GrabEvent.cs.meta │ │ │ │ │ ├── UseEvent.cs │ │ │ │ │ └── UseEvent.cs.meta │ │ │ │ ├── VRUI_Defaults.cs │ │ │ │ └── VRUI_Defaults.cs.meta │ │ │ ├── UseOpenVR.cs │ │ │ └── UseOpenVR.cs.meta │ │ ├── VRTK.meta │ │ └── VRTK │ │ │ ├── CreateThis_VRTK_GrabAttach.cs │ │ │ ├── CreateThis_VRTK_GrabAttach.cs.meta │ │ │ ├── CreateThis_VRTK_Interactable.cs │ │ │ └── CreateThis_VRTK_Interactable.cs.meta │ ├── Shaders.meta │ └── Shaders │ │ ├── Resources.meta │ │ └── Resources │ │ ├── VRTK_OutlineBasic.shader │ │ └── VRTK_OutlineBasic.shader.meta ├── no_vrtk.unity ├── no_vrtk.unity.meta ├── skyb1.meta ├── skyb1 │ ├── back.psd │ ├── back.psd.meta │ ├── bot.psd │ ├── bot.psd.meta │ ├── front.psd │ ├── front.psd.meta │ ├── l.psd │ ├── l.psd.meta │ ├── r.psd │ ├── r.psd.meta │ ├── sky,startday.mat │ ├── sky,startday.mat.meta │ ├── sunset.mat │ ├── sunset.mat.meta │ ├── up.psd │ └── up.psd.meta ├── vrtk.unity └── vrtk.unity.meta ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Bb]uild/ 2 | [Ll]ibrary/ 3 | [Oo]bj/ 4 | [Tt]emp/ 5 | UnityGenerated/ 6 | sysinfo.txt 7 | load.obj 8 | load.mtl 9 | load.obj.bak 10 | load.mtl.bak 11 | load_orig.obj 12 | left.png 13 | right.png 14 | top.png 15 | bottom.png 16 | front.png 17 | back.png 18 | settings.json 19 | alignment_tools.json 20 | 21 | # Visual Studio/MonoDevelop/XCode generated 22 | 23 | *.booproj 24 | /*.csproj 25 | *.DotSettings 26 | *.opensdf 27 | *.pdb 28 | *.pdb.meta 29 | *.pidb 30 | *.sdf 31 | /*.sln 32 | *.suo 33 | *.svd 34 | *.unityproj 35 | *.user 36 | *.userprefs 37 | Assets/UnityVS* 38 | DerivedData/ 39 | ExportedObj/ 40 | Debug/ 41 | ipch/ 42 | Release/ 43 | 44 | # OS generated 45 | 46 | .DS_Store 47 | .DS_Store? 48 | ._* 49 | .Spotlight-V100 50 | .Trashes 51 | ehthumbs.db 52 | Thumbs.db 53 | 54 | # Icon must end with two \r 55 | Icon? 56 | 57 | # Coherent generated 58 | 59 | Assets/CoherentUI/DebuggerWindows.meta 60 | 61 | # External tools 62 | 63 | Assets/ColorPicker/ 64 | Assets/ColorPicker.meta 65 | Assets/AssetStoreTools/ 66 | Assets/AssetStoreTools.meta 67 | Assets/SteamVR/ 68 | Assets/SteamVR.meta 69 | Assets/VRTK/ 70 | Assets/VRTK.meta 71 | 72 | min/ 73 | min.meta 74 | 75 | # Ion, nested clone 76 | ion 77 | ion-win 78 | ion-mac 79 | 80 | prepros 81 | prepros.meta 82 | prepros.cfg 83 | prepros.cfg.meta 84 | *.swp 85 | */*.swp 86 | -------------------------------------------------------------------------------- /Assets/CreateThis.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ea2a0e22a1f2064383e91c9a862a614 3 | folderAsset: yes 4 | timeCreated: 1495561522 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Audio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ca2a8f930074664ca400576b375d7ef 3 | folderAsset: yes 4 | timeCreated: 1495561522 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Audio/TwoStageButtonClickDown.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/CreateThis/Audio/TwoStageButtonClickDown.mp3 -------------------------------------------------------------------------------- /Assets/CreateThis/Audio/TwoStageButtonClickDown.mp3.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10cdf4f0f945b99448276f3b66b88ba6 3 | timeCreated: 1495416538 4 | licenseType: Free 5 | AudioImporter: 6 | serializedVersion: 6 7 | defaultSettings: 8 | loadType: 0 9 | sampleRateSetting: 0 10 | sampleRateOverride: 44100 11 | compressionFormat: 1 12 | quality: 1 13 | conversionMode: 0 14 | platformSettingOverrides: {} 15 | forceToMono: 0 16 | normalize: 1 17 | preloadAudioData: 1 18 | loadInBackground: 0 19 | 3D: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/CreateThis/Audio/TwoStageButtonClickUp.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/CreateThis/Audio/TwoStageButtonClickUp.mp3 -------------------------------------------------------------------------------- /Assets/CreateThis/Audio/TwoStageButtonClickUp.mp3.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec29886e28a90a74cb2279e8f6f46dac 3 | timeCreated: 1495416538 4 | licenseType: Free 5 | AudioImporter: 6 | serializedVersion: 6 7 | defaultSettings: 8 | loadType: 0 9 | sampleRateSetting: 0 10 | sampleRateOverride: 44100 11 | compressionFormat: 1 12 | quality: 1 13 | conversionMode: 0 14 | platformSettingOverrides: {} 15 | forceToMono: 0 16 | normalize: 1 17 | preloadAudioData: 1 18 | loadInBackground: 0 19 | 3D: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/CreateThis/Audio/TypeWriterKey.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/CreateThis/Audio/TypeWriterKey.mp3 -------------------------------------------------------------------------------- /Assets/CreateThis/Audio/TypeWriterKey.mp3.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df49dac29ea747c41b54d05444766ad2 3 | timeCreated: 1495416538 4 | licenseType: Free 5 | AudioImporter: 6 | serializedVersion: 6 7 | defaultSettings: 8 | loadType: 0 9 | sampleRateSetting: 0 10 | sampleRateOverride: 44100 11 | compressionFormat: 1 12 | quality: 1 13 | conversionMode: 0 14 | platformSettingOverrides: {} 15 | forceToMono: 0 16 | normalize: 1 17 | preloadAudioData: 1 18 | loadInBackground: 0 19 | 3D: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 326fdbce3a5885c4c9c5eb6613bec03c 3 | folderAsset: yes 4 | timeCreated: 1495561522 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/ButtonBackground.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dfa07f40c454cdc4c8beb71387e1ec79 3 | timeCreated: 1495412103 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/button highlight.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 421b15c52c9742740955853b7e38f477 3 | timeCreated: 1495415531 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/controller.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba09c83023e007446a8249976d58ec31 3 | timeCreated: 1495414174 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/highlight.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 295703c574b137a46bbb9c43438d820d 3 | timeCreated: 1495415531 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7f46c7667744864b8a2d14fa84194dc 3 | timeCreated: 1495419315 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/tablet highlight.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00aa1d80f5db204429a9331f2e1a7fe6 3 | timeCreated: 1495415531 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/tablet.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d69ac24b87b5684f8f705bd13b420e6 3 | timeCreated: 1495415531 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Materials/tablet_transparent.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d24ce292c62037748a711230d0f443be 3 | timeCreated: 1495415531 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 286c66b0ebab403458f9c1b07fef2f6c 3 | folderAsset: yes 4 | timeCreated: 1495561522 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ed0d0775d13e5242a708b73294baead 3 | folderAsset: yes 4 | timeCreated: 1495413207 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/Materials/Material_#33B8BE00.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17954e9c89d0af84092809dac436f047 3 | timeCreated: 1495413753 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/Materials/Material_#C3BA8100.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64d11dfe20a0368439ac612faec2d1f2 3 | timeCreated: 1495987524 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/Materials/defaultMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6843cb04f2bc2ae41af0beb48c5dc64b 3 | timeCreated: 1495413207 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/folder_centered.mtl: -------------------------------------------------------------------------------- 1 | # Blender MTL File: 'None' 2 | # Material Count: 1 3 | 4 | newmtl Material_#C3BA8100 5 | Ns 92.156863 6 | Ka 1.000000 1.000000 1.000000 7 | Kd 0.764995 0.728612 0.506033 8 | Ks 0.500000 0.500000 0.500000 9 | Ke 0.000000 0.000000 0.000000 10 | Ni 1.000000 11 | d 1.000000 12 | illum 2 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/folder_centered.mtl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5cd59703e11c2cc469642813907d0286 3 | timeCreated: 1495988617 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/pointer_cone.mtl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c021c48794ea274bb684ed2e803d670 3 | timeCreated: 1495413207 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/pointer_cone.obj: -------------------------------------------------------------------------------- 1 | # Mesh Maker VR 2 | v 0.324999988079071 0.600000143051147 -0.050000011920929 3 | v 0.300000011920929 0.550000131130219 -0.050000011920929 4 | v 0.269198715686798 0.596650779247284 -0.050000011920929 5 | v 0.294198721647263 0.646650791168213 -0.050000011920929 6 | v 0.349999964237213 0.650000154972076 -0.050000011920929 7 | v 0.380801260471344 0.603349506855011 -0.050000011920929 8 | v 0.355801284313202 0.553349554538727 -0.050000011920929 9 | v 0.324999988079071 0.600000202655792 0.174999117851257 10 | vt 0 0 11 | vt 0 0 12 | vt 0 0 13 | vt 0 0 14 | vt 0 0 15 | vt 0 0 16 | vt 0 0 17 | vt 0 0 18 | usemtl Material_#33B8BE00 19 | f 2/2 3/3 1/1 20 | f 3/3 4/4 1/1 21 | f 4/4 5/5 1/1 22 | f 5/5 6/6 1/1 23 | f 6/6 7/7 1/1 24 | f 7/7 2/2 1/1 25 | f 7/7 8/8 2/2 26 | f 2/2 8/8 3/3 27 | f 7/7 6/6 8/8 28 | f 6/6 5/5 8/8 29 | f 5/5 4/4 8/8 30 | f 4/4 3/3 8/8 31 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/pointer_cone_origin.mtl: -------------------------------------------------------------------------------- 1 | # Blender MTL File: 'None' 2 | # Material Count: 1 3 | 4 | newmtl Material_#33B8BE00 5 | Ns 94.117647 6 | Ka 1.000000 1.000000 1.000000 7 | Kd 0.198778 0.723232 0.743294 8 | Ks 0.500000 0.500000 0.500000 9 | Ke 0.000000 0.000000 0.000000 10 | Ni 1.000000 11 | d 1.000000 12 | illum 2 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/pointer_cone_origin.mtl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7d342c4e8ba9a14f9f199598515563e 3 | timeCreated: 1495413753 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CreateThis/Models/pointer_cone_origin.obj: -------------------------------------------------------------------------------- 1 | # Blender v2.78 (sub 0) OBJ File: '' 2 | # www.blender.org 3 | mtllib pointer_cone_origin.mtl 4 | o pointer_cone 5 | v -0.025000 -0.050000 -0.028125 6 | v -0.055801 -0.003349 -0.028125 7 | v 0.000000 -0.000000 -0.028125 8 | v -0.030801 0.046651 -0.028125 9 | v 0.025000 0.050000 -0.028125 10 | v 0.055801 0.003349 -0.028125 11 | v 0.030801 -0.046651 -0.028125 12 | v 0.000000 -0.000000 0.196874 13 | vt 0.0000 0.0000 14 | vt 0.0000 0.0000 15 | vt 0.0000 0.0000 16 | vt 0.0000 0.0000 17 | vt 0.0000 0.0000 18 | vt 0.0000 0.0000 19 | vt 0.0000 0.0000 20 | vt 0.0000 0.0000 21 | vn 0.0000 0.0000 -1.0000 22 | vn 0.0586 -0.9759 0.2104 23 | vn -0.8158 -0.5387 0.2104 24 | vn 0.8744 -0.4372 0.2104 25 | vn 0.8158 0.5387 0.2104 26 | vn -0.0586 0.9759 0.2104 27 | vn -0.8744 0.4372 0.2104 28 | usemtl Material_#33B8BE00 29 | s off 30 | f 1/1/1 2/2/1 3/3/1 31 | f 2/2/1 4/4/1 3/3/1 32 | f 4/4/1 5/5/1 3/3/1 33 | f 5/5/1 6/6/1 3/3/1 34 | f 6/6/1 7/7/1 3/3/1 35 | f 7/7/1 1/1/1 3/3/1 36 | f 7/7/2 8/8/2 1/1/2 37 | f 1/1/3 8/8/3 2/2/3 38 | f 7/7/4 6/6/4 8/8/4 39 | f 6/6/5 5/5/5 8/8/5 40 | f 5/5/6 4/4/6 8/8/6 41 | f 4/4/7 2/2/7 8/8/7 42 | -------------------------------------------------------------------------------- /Assets/CreateThis/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6580f03a9cf99c04cb8802c91cf16031 3 | folderAsset: yes 4 | timeCreated: 1495412542 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Prefabs/TouchPadMenuTools.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52b317631f0423648983fbb6e19b447b 3 | timeCreated: 1496236047 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Prefabs/folder.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a51adf6f384f3684f8fa90bd87da4d43 3 | timeCreated: 1496008146 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Prefabs/pointer_cone.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d37f6e58085ba14e8806fd32cd86ae3 3 | timeCreated: 1495413851 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7e20cf6c250f4646896431b96ec9ee5 3 | folderAsset: yes 4 | timeCreated: 1495561522 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc4d57432eaba7944aa02f49f5938cc8 3 | folderAsset: yes 4 | timeCreated: 1496241635 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6eee210a940b1ca4e9363a5954d3de1e 3 | folderAsset: yes 4 | timeCreated: 1497880677 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7270a7831dfb2934ab832441e7a3ecb5 3 | folderAsset: yes 4 | timeCreated: 1497881978 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/Editor/ExampleColorPickerFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | #if COLOR_PICKER 2 | using UnityEditor; 3 | using CreateThis.Factory.VR.UI.ColorPicker; 4 | 5 | namespace CreateThis.Example.ColorPicker { 6 | [CustomEditor(typeof(ExampleColorPickerFactory))] 7 | [CanEditMultipleObjects] 8 | 9 | public class ExampleColorPickerFactoryEditor : ColorPickerFactoryEditor { 10 | } 11 | } 12 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/Editor/ExampleColorPickerFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 853a92f79aa244b4abd272315ad241a6 3 | timeCreated: 1497452638 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/ExampleColorPickerFactory.cs: -------------------------------------------------------------------------------- 1 | #if COLOR_PICKER 2 | using UnityEngine; 3 | using CreateThis.Unity; 4 | using CreateThis.Factory.VR.UI.ColorPicker; 5 | 6 | namespace CreateThis.Example.ColorPicker { 7 | public class ExampleColorPickerFactory : ColorPickerFactory { 8 | protected override void CreateColorPickerIO(GameObject parent) { 9 | ExampleColorPickerIO colorPickerIO = Undoable.AddComponent(parent); 10 | colorPickerIO.color = Color.blue; 11 | } 12 | } 13 | } 14 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/ExampleColorPickerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0659d2d0f13b2e4b92d7d0e3495acd4 3 | timeCreated: 1497880757 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/ExampleColorPickerIO.cs: -------------------------------------------------------------------------------- 1 | #if COLOR_PICKER 2 | using CreateThis.VR.UI.ColorPicker; 3 | 4 | namespace CreateThis.Example.ColorPicker { 5 | public class ExampleColorPickerIO : ColorPickerIOBase { 6 | 7 | } 8 | } 9 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ColorPicker/ExampleColorPickerIO.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31a8f504909fa64448c8e2e800bfca35 3 | timeCreated: 1497880757 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86b5968e76cec104fa96f727593edad8 3 | folderAsset: yes 4 | timeCreated: 1496244606 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/Editor/ExampleMasterUIFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 320858d2b1d77bb43917967c5086491c 3 | timeCreated: 1497452638 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/Editor/ExampleSkyboxButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using CreateThis.Factory.VR.UI.Button; 4 | 5 | namespace CreateThis.Example { 6 | [CustomEditor(typeof(ExampleSkyboxButtonFactory))] 7 | [CanEditMultipleObjects] 8 | public class ExampleSkyboxButtonFactoryEditor : ToggleButtonFactoryEditor { 9 | SerializedProperty skybox; 10 | SerializedProperty skyboxManager; 11 | 12 | protected override void OnEnable() { 13 | base.OnEnable(); 14 | skybox = serializedObject.FindProperty("skybox"); 15 | skyboxManager = serializedObject.FindProperty("skyboxManager"); 16 | } 17 | 18 | protected override void BuildGenerateButton() { 19 | if (GUILayout.Button("Generate")) { 20 | if (target.GetType() == typeof(ExampleSkyboxButtonFactory)) { 21 | ExampleSkyboxButtonFactory buttonFactory = (ExampleSkyboxButtonFactory)target; 22 | buttonFactory.Generate(); 23 | } 24 | } 25 | } 26 | 27 | protected override void AdditionalProperties() { 28 | base.AdditionalProperties(); 29 | EditorGUILayout.PropertyField(skybox); 30 | EditorGUILayout.PropertyField(skyboxManager); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/Editor/ExampleSkyboxButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e9abde2cdbc553479e9ae82dbfa777f 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/Editor/ToolsExamplePanelFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0e0fcf75a7d0b048a4ae16795e35dae 3 | timeCreated: 1495676875 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ExampleMasterUIFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4076f7e5bc3efd14aa4ff992c1394f84 3 | timeCreated: 1497452638 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ExampleSkyboxButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d14557a36323d4047b40f9bb75d530d0 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ExampleSkyboxButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.Factory.VR.UI.Button; 4 | 5 | namespace CreateThis.Example { 6 | public class ExampleSkyboxButtonFactory : ToggleButtonFactory { 7 | public string skybox; 8 | public ExampleSkyboxManager skyboxManager; 9 | 10 | public void PopulateButton(ExampleSkyboxButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 12 | button.clickOnTriggerExit = true; 13 | button.skybox = skybox; 14 | button.skyboxManager = skyboxManager; 15 | } 16 | 17 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 18 | ExampleSkyboxButton button = Undoable.AddComponent(target); 19 | PopulateButton(button, audioSourceDown, audioSourceUp); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ExampleSkyboxButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2490326446155ca4eb2869d1ace07ec7 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ExampleSkyboxManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | 6 | namespace CreateThis.Example { 7 | public class ExampleSkyboxManager : MonoBehaviour { 8 | public Material blueSky; 9 | public Material sunset; 10 | 11 | public delegate void SkyboxChanged(); 12 | public static event SkyboxChanged OnSkyboxChanged; 13 | 14 | public string skybox; 15 | 16 | public void SetSkybox(string name) { 17 | skybox = name; 18 | #if UNITY_EDITOR 19 | if (EditorApplication.isPlaying) { 20 | #endif 21 | UpdateSkybox(); 22 | if (OnSkyboxChanged != null) OnSkyboxChanged(); 23 | #if UNITY_EDITOR 24 | } 25 | #endif 26 | } 27 | 28 | public Material StringToMaterial(string name) { 29 | switch (name) { 30 | case "sunset": 31 | return sunset; 32 | case "bluesky": 33 | return blueSky; 34 | default: 35 | return null; 36 | } 37 | } 38 | 39 | public void UpdateSkybox() { 40 | RenderSettings.skybox = StringToMaterial(skybox); 41 | } 42 | 43 | // Use this for initialization 44 | void Start() { 45 | skybox = "bluesky"; 46 | } 47 | 48 | // Update is called once per frame 49 | void Update() { 50 | 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ExampleSkyboxManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 527de138114cb1843b0de28c769ae6eb 3 | timeCreated: 1496269673 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Example/ToolsExamplePanelFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cdc364ede4178a4cb9a11b29e4c67e0 3 | timeCreated: 1496241698 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cc46102914ad67479d33dc267a5804d 3 | folderAsset: yes 4 | timeCreated: 1495563127 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/BaseFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | 6 | namespace CreateThis.Factory { 7 | public class BaseFactory : MonoBehaviour { 8 | protected GameObject EmptyChild(GameObject parent, string name, Vector3 localScale = new Vector3()) { 9 | GameObject instance = new GameObject(); 10 | #if UNITY_EDITOR 11 | Undo.RegisterCreatedObjectUndo(instance, "Empty Child " + name); 12 | #endif 13 | instance.name = name; 14 | instance.transform.localScale = localScale == Vector3.zero ? Vector3.one : localScale; 15 | instance.transform.parent = parent.transform; 16 | instance.transform.localPosition = Vector3.zero; 17 | instance.transform.localRotation = Quaternion.identity; 18 | return instance; 19 | } 20 | 21 | public virtual GameObject Generate() { 22 | return null; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/BaseFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9166e4d2725a4f448ebedb31383911f 3 | timeCreated: 1495563588 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 412007727f85d2f4b9cf1f129b2ed466 3 | folderAsset: yes 4 | timeCreated: 1496075197 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/Editor/BaseFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory { 5 | [CustomEditor(typeof(BaseFactory))] 6 | [CanEditMultipleObjects] 7 | 8 | public abstract class BaseFactoryEditor : Editor { 9 | protected virtual void OnEnable() { 10 | // override 11 | } 12 | 13 | protected virtual void BuildGenerateButton() { 14 | // Take out this if statement to set the value using setter when ever you change it in the inspector. 15 | // But then it gets called a couple of times when ever inspector updates 16 | // By having a button, you can control when the value goes through the setter and getter, your self. 17 | if (GUILayout.Button("Generate")) { 18 | if (target.GetType() == typeof(BaseFactory)) { 19 | BaseFactory factory = (BaseFactory)target; 20 | factory.Generate(); 21 | } 22 | } 23 | } 24 | 25 | protected virtual void AdditionalProperties() { 26 | // override 27 | } 28 | 29 | public override void OnInspectorGUI() { 30 | serializedObject.Update(); 31 | 32 | AdditionalProperties(); 33 | 34 | serializedObject.ApplyModifiedProperties(); 35 | 36 | BuildGenerateButton(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/Editor/BaseFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e7135227d2f6cd4997ec4c0923a7600 3 | timeCreated: 1495566913 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbdca00c001a4cb4cab4379a33cf67be 3 | folderAsset: yes 4 | timeCreated: 1495563555 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64ec5b58022a0f54c865f742d8097804 3 | folderAsset: yes 4 | timeCreated: 1495563563 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48df2a3990d89e64a8f97c3b49a83c5b 3 | folderAsset: yes 4 | timeCreated: 1495563677 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/ButtonBaseFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df55102b04cf7e0438bb4621b2b8426f 3 | timeCreated: 1495563709 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/ButtonSpacerFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class ButtonSpacerFactory : BaseFactory { 8 | public GameObject parent; 9 | public Vector3 size; 10 | 11 | protected GameObject instance; 12 | 13 | private void Create() { 14 | if (instance) return; 15 | instance = EmptyChild(parent, "spacer"); 16 | BoxCollider boxCollider = instance.AddComponent(); 17 | boxCollider.size = size; 18 | } 19 | 20 | public override GameObject Generate() { 21 | base.Generate(); 22 | 23 | #if UNITY_EDITOR 24 | Undo.SetCurrentGroupName("ButtonSpacerFactory Generate"); 25 | int group = Undo.GetCurrentGroup(); 26 | 27 | Undo.RegisterCompleteObjectUndo(this, "ButtonSpacerFactory state"); 28 | #endif 29 | Create(); 30 | #if UNITY_EDITOR 31 | Undo.CollapseUndoOperations(group); 32 | #endif 33 | return instance; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/ButtonSpacerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 108fbf96f5782fd488d2d14950acdb09 3 | timeCreated: 1495563709 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/DriveButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.File; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class DriveButtonFactory : MomentaryButtonFactory { 8 | public FileBase filePanel; 9 | 10 | public void PopulateButton(DriveButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 12 | button.filePanel = filePanel; 13 | } 14 | 15 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 16 | DriveButton button = Undoable.AddComponent(target); 17 | PopulateButton(button, audioSourceDown, audioSourceUp); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/DriveButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39a829af4a9474346a3eed9f1c023653 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0cbd208532a0b74fba6097dac952100 3 | folderAsset: yes 4 | timeCreated: 1495566913 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/ButtonBaseFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eac19ed071fc3e94e930dc2a82526070 3 | timeCreated: 1495566913 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/DriveButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(DriveButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class DriveButtonFactoryEditor : MomentaryButtonFactoryEditor { 8 | SerializedProperty filePanel; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | filePanel = serializedObject.FindProperty("filePanel"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(DriveButtonFactory)) { 18 | DriveButtonFactory buttonFactory = (DriveButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(filePanel); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/DriveButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bc0aec7214070c4ca91a4f304037360 3 | timeCreated: 1495628861 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/KnownFolderButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(KnownFolderButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class KnownFolderButtonFactoryEditor : MomentaryButtonFactoryEditor { 8 | SerializedProperty filePanel; 9 | SerializedProperty knownFolder; 10 | 11 | protected override void OnEnable() { 12 | base.OnEnable(); 13 | filePanel = serializedObject.FindProperty("filePanel"); 14 | knownFolder = serializedObject.FindProperty("knownFolder"); 15 | } 16 | 17 | protected override void BuildGenerateButton() { 18 | if (GUILayout.Button("Generate")) { 19 | if (target.GetType() == typeof(KnownFolderButtonFactory)) { 20 | MomentaryButtonFactory buttonFactory = (KnownFolderButtonFactory)target; 21 | buttonFactory.Generate(); 22 | } 23 | } 24 | } 25 | 26 | protected override void AdditionalProperties() { 27 | base.AdditionalProperties(); 28 | EditorGUILayout.PropertyField(filePanel); 29 | EditorGUILayout.PropertyField(knownFolder); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/KnownFolderButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02f7d6d881be5364aa37000a71163316 3 | timeCreated: 1495628861 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/MomentaryButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(MomentaryButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class MomentaryButtonFactoryEditor : ButtonBaseFactoryEditor { 8 | 9 | protected override void BuildGenerateButton() { 10 | if (GUILayout.Button("Generate")) { 11 | if (target.GetType() == typeof(MomentaryButtonFactory)) { 12 | MomentaryButtonFactory buttonFactory = (MomentaryButtonFactory)target; 13 | buttonFactory.Generate(); 14 | } 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/MomentaryButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0191d7ea05401d4ab19aed16bbc1620 3 | timeCreated: 1495628861 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/PanelToggleVisibilityMomentaryButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(PanelToggleVisibilityMomentaryButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class PanelToggleVisibilityMomentaryButtonFactoryEditor : MomentaryButtonFactoryEditor { 8 | SerializedProperty panelToToggle; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | panelToToggle = serializedObject.FindProperty("panelToToggle"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(PanelToggleVisibilityMomentaryButtonFactory)) { 18 | PanelToggleVisibilityMomentaryButtonFactory buttonFactory = (PanelToggleVisibilityMomentaryButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(panelToToggle); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/PanelToggleVisibilityMomentaryButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 797c626af0812bd48a7bdb3b1e6aa457 3 | timeCreated: 1495628861 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/ToggleButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(ToggleButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class ToggleButtonFactoryEditor : ButtonBaseFactoryEditor { 8 | SerializedProperty on; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | on = serializedObject.FindProperty("on"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(ToggleButtonFactory)) { 18 | ToggleButtonFactory buttonFactory = (ToggleButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(on); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Editor/ToggleButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cee5974c42fedf6469f2a6975349bf35 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8db57d605881d6142910a86d1420c8b4 3 | folderAsset: yes 4 | timeCreated: 1495732352 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5bf352251bffb84ea688913c588c39e 3 | folderAsset: yes 4 | timeCreated: 1495745459 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardBackspaceButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CreateThis.Factory.VR.UI.Button { 4 | [CustomEditor(typeof(KeyboardBackspaceButtonFactory))] 5 | [CanEditMultipleObjects] 6 | public class KeyboardBackspaceButtonFactoryEditor : KeyboardButtonFactoryEditor { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardBackspaceButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6e0a246f7be33e4b9d3ea47b971702c 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(KeyboardButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public abstract class KeyboardButtonFactoryEditor : MomentaryButtonFactoryEditor { 8 | SerializedProperty keyboard; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | keyboard = serializedObject.FindProperty("keyboard"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(KeyboardButtonFactory)) { 18 | KeyboardButtonFactory buttonFactory = (KeyboardButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(keyboard); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: facbd5faf9a1b0047b5cf8f39c69e688 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardDoneButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CreateThis.Factory.VR.UI.Button { 4 | [CustomEditor(typeof(KeyboardDoneButtonFactory))] 5 | [CanEditMultipleObjects] 6 | public class KeyboardDoneButtonFactoryEditor : KeyboardButtonFactoryEditor { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardDoneButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f38cecd664e319a4aae63d364a5dacd2 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardMomentaryKeyButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(KeyboardMomentaryKeyButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class KeyboardMomentaryKeyButtonFactoryEditor : KeyboardButtonFactoryEditor { 8 | SerializedProperty value; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | value = serializedObject.FindProperty("value"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(KeyboardMomentaryKeyButtonFactory)) { 18 | KeyboardMomentaryKeyButtonFactory buttonFactory = (KeyboardMomentaryKeyButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(value); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardMomentaryKeyButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c272280e4eca0c74693b48c1fdcfcf88 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardNumLockButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CreateThis.Factory.VR.UI.Button { 4 | [CustomEditor(typeof(KeyboardNumLockButtonFactory))] 5 | [CanEditMultipleObjects] 6 | public class KeyboardNumLockButtonFactoryEditor : KeyboardButtonFactoryEditor { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardNumLockButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 648db473dff9a574e96b7552d2476dfc 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardReturnButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CreateThis.Factory.VR.UI.Button { 4 | [CustomEditor(typeof(KeyboardReturnButtonFactory))] 5 | [CanEditMultipleObjects] 6 | public class KeyboardReturnButtonFactoryEditor : KeyboardButtonFactoryEditor { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardReturnButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e1ae84bdfeff5a4794bcc8963032af0 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardShiftLockButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(KeyboardShiftLockButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class KeyboardShiftLockButtonFactoryEditor : KeyboardButtonFactoryEditor { 8 | SerializedProperty on; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | on = serializedObject.FindProperty("on"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(KeyboardShiftLockButtonFactory)) { 18 | KeyboardShiftLockButtonFactory buttonFactory = (KeyboardShiftLockButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(on); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardShiftLockButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd1e29c07e3f7814d87a5938b84c1591 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardSymbolButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CreateThis.Factory.VR.UI.Button { 4 | [CustomEditor(typeof(KeyboardSymbolButtonFactory))] 5 | [CanEditMultipleObjects] 6 | public class KeyboardSymbolButtonFactoryEditor : KeyboardButtonFactoryEditor { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardSymbolButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2feafda27d8f242498d57b7ed4797902 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardToggleButtonFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Button { 5 | [CustomEditor(typeof(KeyboardToggleButtonFactory))] 6 | [CanEditMultipleObjects] 7 | public class KeyboardToggleButtonFactoryEditor : ToggleButtonFactoryEditor { 8 | SerializedProperty keyboard; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | keyboard = serializedObject.FindProperty("keyboard"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(KeyboardToggleButtonFactory)) { 18 | KeyboardToggleButtonFactory buttonFactory = (KeyboardToggleButtonFactory)target; 19 | buttonFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | base.AdditionalProperties(); 26 | EditorGUILayout.PropertyField(keyboard); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/Editor/KeyboardToggleButtonFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a39d11c6727c7004e8351c16b99aa7b7 3 | timeCreated: 1495636163 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardBackspaceButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardBackspaceButtonFactory : RepeatingKeyboardButtonFactory { 7 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | KeyboardBackspaceButton button = Undoable.AddComponent(target); 9 | PopulateButton(button, audioSourceDown, audioSourceUp); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardBackspaceButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d003443e1e6a21d4fb7e32a014cbf17d 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class KeyboardButtonFactory : MomentaryButtonFactory { 8 | public Keyboard keyboard; 9 | 10 | public virtual void PopulateButton(KeyboardMomentaryButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 12 | button.keyboard = keyboard; 13 | } 14 | 15 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 16 | KeyboardMomentaryButton button = Undoable.AddComponent(target); 17 | PopulateButton(button, audioSourceDown, audioSourceUp); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2326f585cc01a664c821b59c846d7cec 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardDoneButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardDoneButtonFactory : TriggerExitKeyboardButtonFactory { 7 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | KeyboardDoneButton button = Undoable.AddComponent(target); 9 | PopulateButton(button, audioSourceDown, audioSourceUp); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardDoneButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31ce50a35b6274e4fa36f7f988d3819d 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardMomentaryKeyButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardMomentaryKeyButtonFactory : KeyboardButtonFactory { 7 | public string value; 8 | 9 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 10 | KeyboardMomentaryKeyButton button = Undoable.AddComponent(target); 11 | if (audioSourceDown) button.buttonClickDown = audioSourceDown; 12 | if (audioSourceUp) button.buttonClickUp = audioSourceUp; 13 | button.buttonBody = buttonBodyInstance; 14 | button.buttonText = buttonTextLabelInstance; 15 | button.keyboard = keyboard; 16 | button.value = value; 17 | button.repeat = true; 18 | if (panel) button.panel = panel; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardMomentaryKeyButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 432801be9d07ec640bdf2e164fb324a1 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardNumLockButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardNumLockButtonFactory : TriggerExitKeyboardButtonFactory { 7 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | KeyboardNumLockButton button = Undoable.AddComponent(target); 9 | PopulateButton(button, audioSourceDown, audioSourceUp); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardNumLockButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ab22e483da22c64cbb0638713d090bd 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardReturnButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardReturnButtonFactory : RepeatingKeyboardButtonFactory { 7 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | KeyboardReturnButton button = Undoable.AddComponent(target); 9 | PopulateButton(button, audioSourceDown, audioSourceUp); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardReturnButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cd23317205faca4e829b0313ff23c50 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardShiftLockButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardShiftLockButtonFactory : TriggerExitKeyboardToggleButtonFactory { 7 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | KeyboardShiftLockButton button = Undoable.AddComponent(target); 9 | PopulateButton(button, audioSourceDown, audioSourceUp); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardShiftLockButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 082f1c6419e815c46b53e512d34ae7e0 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardSymbolButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class KeyboardSymbolButtonFactory : TriggerExitKeyboardButtonFactory { 7 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | KeyboardSymbolButton button = Undoable.AddComponent(target); 9 | PopulateButton(button, audioSourceDown, audioSourceUp); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardSymbolButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2fa1473c2f74dc429b2cba1292c3809 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardToggleButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class KeyboardToggleButtonFactory : ToggleButtonFactory { 8 | public Keyboard keyboard; 9 | 10 | public void PopulateButton(KeyboardToggleButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 12 | button.keyboard = keyboard; 13 | } 14 | 15 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 16 | KeyboardToggleButton button = Undoable.AddComponent(target); 17 | PopulateButton(button, audioSourceDown, audioSourceUp); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/KeyboardToggleButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d9dcd039fccb0f49a403febf8dfa983 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/RepeatingKeyboardButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class RepeatingKeyboardButtonFactory : KeyboardButtonFactory { 7 | public override void PopulateButton(KeyboardMomentaryButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 9 | button.repeat = true; 10 | } 11 | 12 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 13 | KeyboardMomentaryButton button = Undoable.AddComponent(target); 14 | PopulateButton(button, audioSourceDown, audioSourceUp); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/RepeatingKeyboardButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: beb36006027550d43b0774136c7654f6 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/TriggerExitKeyboardButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class TriggerExitKeyboardButtonFactory : KeyboardButtonFactory { 7 | public override void PopulateButton(KeyboardMomentaryButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 9 | button.clickOnTriggerExit = true; 10 | } 11 | 12 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 13 | KeyboardMomentaryButton button = Undoable.AddComponent(target); 14 | PopulateButton(button, audioSourceDown, audioSourceUp); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/TriggerExitKeyboardButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbe9b195541a59142b9d47eccb927676 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/TriggerExitKeyboardToggleButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class TriggerExitKeyboardToggleButtonFactory : KeyboardToggleButtonFactory { 7 | public new void PopulateButton(KeyboardToggleButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 8 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 9 | button.clickOnTriggerExit = true; 10 | } 11 | 12 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 13 | ToggleButton button = Undoable.AddComponent(target); 14 | PopulateButton(button, audioSourceDown, audioSourceUp); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/Keyboard/TriggerExitKeyboardToggleButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ff1b077e0d95da49a5338ebb9b81dd9 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/KnownFolderButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.System; 4 | using CreateThis.VR.UI.File; 5 | using CreateThis.VR.UI.Button; 6 | 7 | namespace CreateThis.Factory.VR.UI.Button { 8 | public class KnownFolderButtonFactory : MomentaryButtonFactory { 9 | public FileBase filePanel; 10 | public KnownFolder knownFolder; 11 | 12 | public void PopulateButton(KnownFolderButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 13 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 14 | button.knownFolder = knownFolder; 15 | button.filePanel = filePanel; 16 | } 17 | 18 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 19 | KnownFolderButton button = Undoable.AddComponent(target); 20 | PopulateButton(button, audioSourceDown, audioSourceUp); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/KnownFolderButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b29f348a9c988a7448dfaecc9ea76551 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/MomentaryButtonFactory.cs: -------------------------------------------------------------------------------- 1 | namespace CreateThis.Factory.VR.UI.Button { 2 | public class MomentaryButtonFactory : ButtonBaseFactory { 3 | protected override ButtonBehavior buttonBehavior { 4 | get { return ButtonBehavior.Momentary; } 5 | set { } 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/MomentaryButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd50e868ca5fd094ba00a0b1700309f8 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/PanelToggleVisibilityMomentaryButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Panel; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class PanelToggleVisibilityMomentaryButtonFactory : MomentaryButtonFactory { 8 | public PanelBase panelToToggle; 9 | 10 | public void PopulateButton(PanelToggleVisibilityMomentaryButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 12 | button.clickOnTriggerExit = true; 13 | button.panelToToggle = panelToToggle; 14 | } 15 | 16 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 17 | PanelToggleVisibilityMomentaryButton button = Undoable.AddComponent(target); 18 | PopulateButton(button, audioSourceDown, audioSourceUp); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/PanelToggleVisibilityMomentaryButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 782ec84cc8f874c47a7231b2d1ca84bc 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/SaveAs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ca9ba6773bf6d542a1d9a8a0d1e1485 3 | folderAsset: yes 4 | timeCreated: 1496183429 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/SaveAs/SaveAsButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.File; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class SaveAsButtonFactory : MomentaryButtonFactory { 8 | public FileSaveAs filePanel; 9 | 10 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | SaveAsButton button = Undoable.AddComponent(target); 12 | if (audioSourceDown) button.buttonClickDown = audioSourceDown; 13 | if (audioSourceUp) button.buttonClickUp = audioSourceUp; 14 | button.buttonBody = buttonBodyInstance; 15 | button.buttonText = buttonTextLabelInstance; 16 | button.filePanel = filePanel; 17 | button.clickOnTriggerExit = true; 18 | if (panel) button.panel = panel; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/SaveAs/SaveAsButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfbdeec4383502e4586317e9a9bed3ed 3 | timeCreated: 1495800334 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/SaveAs/SaveAsFileNameButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.File; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.Factory.VR.UI.Button { 7 | public class SaveAsFileNameButtonFactory : MomentaryButtonFactory { 8 | public FileSaveAs filePanel; 9 | 10 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 11 | SaveAsFileNameButton button = Undoable.AddComponent(target); 12 | if (audioSourceDown) button.buttonClickDown = audioSourceDown; 13 | if (audioSourceUp) button.buttonClickUp = audioSourceUp; 14 | button.buttonBody = buttonBodyInstance; 15 | button.buttonText = buttonTextLabelInstance; 16 | button.filePanel = filePanel; 17 | button.clickOnTriggerExit = true; 18 | if (panel) button.panel = panel; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/SaveAs/SaveAsFileNameButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27fa9024eb1c6444097940f8d76fab43 3 | timeCreated: 1495628663 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/ToggleButtonFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Button; 4 | 5 | namespace CreateThis.Factory.VR.UI.Button { 6 | public class ToggleButtonFactory : ButtonBaseFactory { 7 | protected override ButtonBehavior buttonBehavior { 8 | get { return ButtonBehavior.Toggle; } 9 | set { } 10 | } 11 | public bool on; 12 | 13 | public void PopulateButton(ToggleButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { 14 | base.PopulateButton(button, audioSourceDown, audioSourceUp); 15 | button.On = on; 16 | } 17 | 18 | protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { 19 | ToggleButton button = Undoable.AddComponent(target); 20 | PopulateButton(button, audioSourceDown, audioSourceUp); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Button/ToggleButtonFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8da1450691094c443a904147d7d0cab9 3 | timeCreated: 1495635948 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/ColorPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4279df32eb682de4393361e7c3180a41 3 | folderAsset: yes 4 | timeCreated: 1497876330 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/ColorPicker/ColorPickerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54a9826115783d548b02f5b7f4fbd59a 3 | timeCreated: 1495563709 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/ColorPicker/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3deda204061841849837199d99f8220e 3 | folderAsset: yes 4 | timeCreated: 1497876354 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/ColorPicker/Editor/ColorPickerFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | #if COLOR_PICKER 2 | using UnityEngine; 3 | using UnityEditor; 4 | 5 | namespace CreateThis.Factory.VR.UI.ColorPicker { 6 | [CustomEditor(typeof(ColorPickerFactory))] 7 | [CanEditMultipleObjects] 8 | 9 | public class ColorPickerFactoryEditor : BaseFactoryEditor { 10 | SerializedProperty parent; 11 | SerializedProperty colorPickerProfile; 12 | 13 | protected override void OnEnable() { 14 | base.OnEnable(); 15 | parent = serializedObject.FindProperty("parent"); 16 | colorPickerProfile = serializedObject.FindProperty("colorPickerProfile"); 17 | } 18 | 19 | protected override void BuildGenerateButton() { 20 | // Take out this if statement to set the value using setter when ever you change it in the inspector. 21 | // But then it gets called a couple of times when ever inspector updates 22 | // By having a button, you can control when the value goes through the setter and getter, your self. 23 | if (GUILayout.Button("Generate")) { 24 | if (target.GetType() == typeof(ColorPickerFactory)) { 25 | ColorPickerFactory factory = (ColorPickerFactory)target; 26 | factory.Generate(); 27 | } 28 | } 29 | } 30 | 31 | protected override void AdditionalProperties() { 32 | base.AdditionalProperties(); 33 | EditorGUILayout.PropertyField(parent); 34 | EditorGUILayout.PropertyField(colorPickerProfile); 35 | } 36 | } 37 | } 38 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/ColorPicker/Editor/ColorPickerFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 156bf35c281b0a14eadc38a2359067f4 3 | timeCreated: 1495676875 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d2b4819ac0a4504199cf0bb191008af 3 | folderAsset: yes 4 | timeCreated: 1495654914 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/ColumnContainerFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Container; 4 | 5 | namespace CreateThis.Factory.VR.UI.Container { 6 | public class ColumnContainerFactory : ContainerBaseFactory { 7 | protected override void AddContainer(GameObject target) { 8 | ColumnContainer container = Undoable.AddComponent(target); 9 | if (containerName == null) target.name = "Column"; 10 | container.padding = padding; 11 | container.spacing = spacing; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/ColumnContainerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8843b332bea7e1c40a2514e09e0ae45a 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/ContainerBaseFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | 6 | namespace CreateThis.Factory.VR.UI.Container { 7 | public abstract class ContainerBaseFactory : BaseFactory { 8 | public float padding = 0.02f; 9 | public float spacing = 0.01f; 10 | public string containerName; 11 | public GameObject parent; 12 | 13 | protected GameObject containerInstance; 14 | 15 | protected virtual void AddContainer(GameObject target) { 16 | // override 17 | } 18 | 19 | protected virtual void CreateContainer() { 20 | if (containerInstance) return; 21 | string childName = containerName != null ? containerName : "Container"; 22 | containerInstance = EmptyChild(parent, childName); 23 | 24 | AddContainer(containerInstance); 25 | } 26 | 27 | public override GameObject Generate() { 28 | base.Generate(); 29 | 30 | #if UNITY_EDITOR 31 | Undo.SetCurrentGroupName("ContainerFactory Generate"); 32 | int group = Undo.GetCurrentGroup(); 33 | 34 | Undo.RegisterCompleteObjectUndo(this, "ContainerFactory state"); 35 | #endif 36 | CreateContainer(); 37 | #if UNITY_EDITOR 38 | Undo.CollapseUndoOperations(group); 39 | #endif 40 | return containerInstance; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/ContainerBaseFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97b37a5317b471e4aa06f3f845001923 3 | timeCreated: 1495654914 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5be4f25542ec22479223dc962807acf 3 | folderAsset: yes 4 | timeCreated: 1495656139 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/ColumnContainerFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Container { 5 | [CustomEditor(typeof(ColumnContainerFactory))] 6 | [CanEditMultipleObjects] 7 | public class ColumnContainerFactoryEditor : ContainerBaseFactoryEditor { 8 | protected override void BuildGenerateButton() { 9 | if (GUILayout.Button("Generate")) { 10 | if (target.GetType() == typeof(ColumnContainerFactory)) { 11 | ColumnContainerFactory containerFactory = (ColumnContainerFactory)target; 12 | containerFactory.Generate(); 13 | } 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/ColumnContainerFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20fe769d3cc27ba41a5bcc24bdd003d0 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/ContainerBaseFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13025a9fd16c89d4ead3c27ef4071fe1 3 | timeCreated: 1495656139 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/PanelContainerFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Container { 5 | [CustomEditor(typeof(PanelContainerFactory))] 6 | [CanEditMultipleObjects] 7 | public class PanelContainerFactoryEditor : ContainerBaseFactoryEditor { 8 | SerializedProperty panelContainerProfile; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | panelContainerProfile = serializedObject.FindProperty("panelContainerProfile"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(PanelContainerFactory)) { 18 | PanelContainerFactory containerFactory = (PanelContainerFactory)target; 19 | containerFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | EditorGUILayout.PropertyField(panelContainerProfile); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/PanelContainerFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0bb6244a681d164baa3e5fc6e4b40b0 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/RowContainerFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.Container { 5 | [CustomEditor(typeof(RowContainerFactory))] 6 | [CanEditMultipleObjects] 7 | public class RowContainerFactoryEditor : ContainerBaseFactoryEditor { 8 | SerializedProperty alignment; 9 | 10 | protected override void OnEnable() { 11 | base.OnEnable(); 12 | alignment = serializedObject.FindProperty("alignment"); 13 | } 14 | 15 | protected override void BuildGenerateButton() { 16 | if (GUILayout.Button("Generate")) { 17 | if (target.GetType() == typeof(RowContainerFactory)) { 18 | RowContainerFactory containerFactory = (RowContainerFactory)target; 19 | containerFactory.Generate(); 20 | } 21 | } 22 | } 23 | 24 | protected override void AdditionalProperties() { 25 | EditorGUILayout.PropertyField(alignment); 26 | } 27 | 28 | public override void OnInspectorGUI() { 29 | base.OnInspectorGUI(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/Editor/RowContainerFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86985a53bafc98642b5a89f7c41218ec 3 | timeCreated: 1495656365 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/PanelContainerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcf8e03e260175e43a23b0f467fa9c31 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/RowContainerFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.Unity; 3 | using CreateThis.VR.UI.Container; 4 | 5 | namespace CreateThis.Factory.VR.UI.Container { 6 | public class RowContainerFactory : ContainerBaseFactory { 7 | public TextAlignment alignment; 8 | 9 | protected override void AddContainer(GameObject target) { 10 | RowContainer container = Undoable.AddComponent(target); 11 | if (containerName == null) target.name = "Row"; 12 | container.padding = padding; 13 | container.spacing = spacing; 14 | container.alignment = alignment; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Container/RowContainerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc82ec301bb300546adc3a349811fc31 3 | timeCreated: 1495655735 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b7da57911b21f24d9e66bbbf83a2780 3 | folderAsset: yes 4 | timeCreated: 1495676875 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Editor/KeyboardFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f29c905cf0a3aae48becd187ce10862b 3 | timeCreated: 1495676875 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcde69b18fe9f1a4587ef0bb99cb91c6 3 | folderAsset: yes 4 | timeCreated: 1496166744 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9711ba502ef23bd4f9601e53cc994c11 3 | folderAsset: yes 4 | timeCreated: 1496166763 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/Editor/FileOpenFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6be41b73285da194999ae45dce7ee0b1 3 | timeCreated: 1495676875 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/Editor/FileSaveAsFactoryEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.Factory.VR.UI.File { 5 | [CustomEditor(typeof(FileSaveAsFactory))] 6 | [CanEditMultipleObjects] 7 | 8 | public class FileSaveAsFactoryEditor : FileOpenFactoryEditor { 9 | SerializedProperty fileNameExtension; 10 | SerializedProperty keyboard; 11 | 12 | protected override void OnEnable() { 13 | base.OnEnable(); 14 | fileNameExtension = serializedObject.FindProperty("fileNameExtension"); 15 | keyboard = serializedObject.FindProperty("keyboard"); 16 | } 17 | 18 | protected override void BuildGenerateButton() { 19 | // Take out this if statement to set the value using setter when ever you change it in the inspector. 20 | // But then it gets called a couple of times when ever inspector updates 21 | // By having a button, you can control when the value goes through the setter and getter, your self. 22 | if (GUILayout.Button("Generate")) { 23 | if (target.GetType() == typeof(FileSaveAsFactory)) { 24 | FileSaveAsFactory factory = (FileSaveAsFactory)target; 25 | factory.Generate(); 26 | } 27 | } 28 | } 29 | 30 | protected override void AdditionalProperties() { 31 | base.AdditionalProperties(); 32 | EditorGUILayout.PropertyField(fileNameExtension); 33 | EditorGUILayout.PropertyField(keyboard); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/Editor/FileSaveAsFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a48b66d9f2bb7945a1ecc47827ff00e 3 | timeCreated: 1495676875 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/FileBaseFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6671d488d15075941a8a63fc34136bb3 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/FileOpenFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | using CreateThis.Unity; 6 | using CreateThis.VR.UI.File; 7 | 8 | namespace CreateThis.Factory.VR.UI.File { 9 | public class FileOpenFactory : FileBaseFactory { 10 | protected override FileBase AddFilePanel(GameObject panel) { 11 | return Undoable.AddComponent(panel); 12 | } 13 | 14 | public override GameObject Generate() { 15 | base.Generate(); 16 | 17 | #if UNITY_EDITOR 18 | Undo.SetCurrentGroupName("FileOpenFactory Generate"); 19 | int group = Undo.GetCurrentGroup(); 20 | 21 | Undo.RegisterCompleteObjectUndo(this, "FileOpenFactory state"); 22 | #endif 23 | CreateDisposable(parent); 24 | 25 | filePanelContainerInstance = EmptyChild(parent, "FileOpenContainer"); 26 | filePanelContainerRigidbody = Undoable.AddComponent(filePanelContainerInstance); 27 | filePanelContainerRigidbody.useGravity = false; 28 | filePanelContainerRigidbody.isKinematic = true; 29 | 30 | kineticScrollerItem = CreateKineticScrollerItem(filePanelContainerInstance); 31 | kineticScrollerItem.SetActive(false); 32 | 33 | FilePanel(filePanelContainerInstance); 34 | 35 | CreateKineticScroller(filePanelContainerInstance); 36 | 37 | #if UNITY_EDITOR 38 | Undo.DestroyObjectImmediate(disposable); 39 | Undo.CollapseUndoOperations(group); 40 | #else 41 | Destroy(disposable); 42 | #endif 43 | return filePanelInstance; 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/FileOpenFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e75edaf0e12f53e49ac90e5b826e16eb 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/File/FileSaveAsFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a62c3b6d267e32468aed65cb23af0bc 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/KeyboardFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a25db56a154b384c8193e697c8e69df 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/KeyboardKey.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c29bc59a421d68b4aaaf10e6b16b8ed2 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Scroller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a8326d24066dc044abec1c4718962ac 3 | folderAsset: yes 4 | timeCreated: 1495995357 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Scroller/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d1a110600731aa408e5b1ba60660e99 3 | folderAsset: yes 4 | timeCreated: 1495996136 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Scroller/Editor/KineticScrollerItemFactoryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b4615243db82d34e84a50fd62a6e9d2 3 | timeCreated: 1495676875 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/Scroller/KineticScrollerItemFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ccae0831c3ab44438c0d0e0c0aae6c6 3 | timeCreated: 1495657050 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/test.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "type": "PanelContainer", 4 | "name": "Panel", 5 | "minWidth": 0, 6 | "minHeight":0, 7 | "children": [ 8 | { 9 | "type": "ColumnContainer", 10 | "name": "Column", 11 | "padding": 0.02, 12 | "spacing":0.01, 13 | "children": [ 14 | { 15 | "type": "RowContainer", 16 | "name": "Row", 17 | "padding": 0.02, 18 | "spacing": 0.01, 19 | "alignment": "left", 20 | "children": [ 21 | { 22 | "type": "ToggleButton", 23 | "name": "Button", 24 | "text": "Test Toggle", 25 | "alignment": "left", 26 | "fontSize": 60, 27 | "fontColor": "#FFFFFFFF", 28 | "labelZ": -0.01370001, 29 | "bodyScale": {"x":1,"y":0.025,"z":0.025}, 30 | "labelScale": {"x":0.004,"y":0.004,"z":0.004}, 31 | "on": false 32 | }, 33 | { 34 | "type": "MomentaryButton", 35 | "name": "Button", 36 | "text": "Test Momentary", 37 | "alignment": "left", 38 | "fontSize": 60, 39 | "fontColor": "#FFFFFFFF", 40 | "labelZ": -0.01370001, 41 | "bodyScale": {"x":1,"y":0.025,"z":0.025}, 42 | "labelScale": {"x":0.004,"y":0.004,"z":0.004}, 43 | "on": false 44 | } 45 | ]} 46 | ]} 47 | ]} 48 | ] 49 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Factory/VR/UI/test.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a409ec459f6a3214e97f1a09c7a88d5b 3 | timeCreated: 1495643834 4 | licenseType: Free 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Math.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5df2e398cca653448624c24d2c50d37 3 | folderAsset: yes 4 | timeCreated: 1495224551 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Math/Ratio.cs: -------------------------------------------------------------------------------- 1 | namespace CreateThis.Math { 2 | public static class Ratio { 3 | public static float SolveForD(float a, float b, float c) { 4 | // a c 5 | // - = - 6 | // b d 7 | return c * b / a; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Math/Ratio.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d49413dcd1b13c4b9539da170e1c12e 3 | timeCreated: 1493927601 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/System.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30eab1c5f0f0d6044a5b217e8674ef24 3 | folderAsset: yes 4 | timeCreated: 1495226616 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/System/KnownFolders.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13dc98db0ca4346448de433b8b54b968 3 | timeCreated: 1493946313 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31864fdc5a08f364999babe15101b18c 3 | folderAsset: yes 4 | timeCreated: 1495227726 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/DetachReattach.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0409de8d6e044142833ab518661d061 3 | timeCreated: 1494439863 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/DonutSliceMesh.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/CreateThis/Scripts/Unity/DonutSliceMesh.cs -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/DonutSliceMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c53258b82b9391748bb29f3657de9b30 3 | timeCreated: 1496232447 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/MaterialCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c232fc18e87d9b745a1df5901e49ba08 3 | timeCreated: 1495296336 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/ObjectBounds.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22cfb0b2c888fd1478f661b7ffe469ea 3 | timeCreated: 1495242803 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/ScriptUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using UnityEngine; 4 | 5 | namespace CreateThis.Unity { 6 | public static class ScriptUtils { 7 | public static T CopyComponent(T original, GameObject destination) where T : Component { 8 | Type type = original.GetType(); 9 | Component copy = destination.AddComponent(type); 10 | FieldInfo[] fields = type.GetFields(); 11 | foreach (FieldInfo field in fields) { 12 | field.SetValue(copy, field.GetValue(original)); 13 | } 14 | return copy as T; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/ScriptUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0af451b68cfc2d4498162f0aedddce3b 3 | timeCreated: 1497268655 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/TextureCache.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | 4 | namespace CreateThis.Unity { 5 | public static class TextureCache { 6 | private static int count; 7 | private static Dictionary cache; 8 | 9 | private static void Initialize() { 10 | if (cache == null) { 11 | cache = new Dictionary(); 12 | count = 0; 13 | } 14 | } 15 | 16 | public static int Add(Texture2D texture) { 17 | Initialize(); 18 | int id = count; 19 | cache.Add(id, texture); 20 | count++; 21 | return id; 22 | } 23 | 24 | public static Texture2D TextureById(int id) { 25 | Initialize(); 26 | 27 | if (cache.ContainsKey(id)) return cache[id]; 28 | return null; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/TextureCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6b4615c240ef864b9ab2e909b5ef2fe 3 | timeCreated: 1495296543 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/TransformWithoutRotation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0867e3a70c5aea0488c68c8eb724edb1 3 | timeCreated: 1495243045 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/Triangle.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.Unity { 4 | public static class Triangle { 5 | public static Vector3 CalculateNormal(Vector3 a, Vector3 b, Vector3 c) { 6 | Vector3 planeNormal = Vector3.Cross(c - a, b - a).normalized; 7 | return planeNormal; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/Triangle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70da3fb2b85209242b9ebbfafeb63f06 3 | timeCreated: 1495242131 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/Undoable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | 6 | namespace CreateThis.Unity { 7 | public static class Undoable { 8 | public static T AddComponent(GameObject target) where T : Component { 9 | #if UNITY_EDITOR 10 | return Undo.AddComponent(target); 11 | #else 12 | return target.AddComponent(); 13 | #endif 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/Unity/Undoable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8439a172f3c66034bb3929b1b1e70357 3 | timeCreated: 1497269937 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f40bb5cad25e23643bc243a34c35c6b6 3 | folderAsset: yes 4 | timeCreated: 1495224604 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/Haptic.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | 4 | namespace CreateThis.VR { 5 | public static class Haptic { 6 | //length is how long the vibration should go for 7 | //strength is vibration strength from 0-1 8 | public static IEnumerator LongVibration(int controllerIndex, float length, float strength) { 9 | for (float i = 0; i < length; i += Time.deltaTime) { 10 | SteamVR_Controller.Input(controllerIndex).TriggerHapticPulse((ushort)Mathf.Lerp(0, 3999, strength)); 11 | yield return null; 12 | } 13 | } 14 | 15 | //vibrationCount is how many vibrations 16 | //vibrationLength is how long each vibration should go for 17 | //gapLength is how long to wait between vibrations 18 | //strength is vibration strength from 0-1 19 | public static IEnumerator LongVibration(MonoBehaviour monoBehaviour, int controllerIndex, int vibrationCount, float vibrationLength, float gapLength, float strength) { 20 | strength = Mathf.Clamp01(strength); 21 | for (int i = 0; i < vibrationCount; i++) { 22 | if (i != 0) yield return new WaitForSeconds(gapLength); 23 | yield return monoBehaviour.StartCoroutine(LongVibration(controllerIndex, vibrationLength, strength)); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/Haptic.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed960ae42abdbce43af24e241cf1ab7f 3 | timeCreated: 1494243507 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d5aa1f8c28bb6d4b83d7827b7fa82d6 3 | folderAsset: yes 4 | timeCreated: 1495219588 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e083582174e3dfa468f9cb811b100f5a 3 | folderAsset: yes 4 | timeCreated: 1495226164 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/ButtonBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cff194f4b4112a418f1f1268d34ca65 3 | timeCreated: 1495403877 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/ButtonProfile.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI { 4 | public class ButtonProfile : MonoBehaviour { 5 | public GameObject buttonBody; 6 | public AudioClip buttonClickDown; 7 | public AudioClip buttonClickUp; 8 | public Material material; 9 | public Material highlight; 10 | public Material outline; 11 | public int fontSize = 60; 12 | public Color fontColor = Color.white; 13 | public float labelZ = -0.01370001f; 14 | public Vector3 bodyScale = new Vector3(1, 0.025f, 0.025f); 15 | public Vector3 labelScale = new Vector3(0.004f, 0.004f, 0.004f); 16 | public float minWidth = 0.025f; 17 | public float padding = 0.002f; 18 | public float characterSize = 0.8f; 19 | 20 | // Use this for initialization 21 | void Start() { 22 | 23 | } 24 | 25 | // Update is called once per frame 26 | void Update() { 27 | 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/ButtonProfile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c63c747ac038d44a983ef918944fce8 3 | timeCreated: 1497125619 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/DriveButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.VR.UI.File; 3 | 4 | namespace CreateThis.VR.UI.Button { 5 | public class DriveButton : MomentaryButton { 6 | public FileBase filePanel; 7 | 8 | private string path; 9 | 10 | protected override void ClickHandler(Transform controller, int controllerIndex) { 11 | base.ClickHandler(controller, controllerIndex); 12 | filePanel.ChangeDirectory(path); 13 | } 14 | 15 | public void SetPath(string value) { 16 | path = value; 17 | buttonText.GetComponent().text = value; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/DriveButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 464ca39884f8795408b7058cddb10e80 3 | timeCreated: 1495407378 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67443bad8fdce0749ba3ce1df4dd530e 3 | folderAsset: yes 4 | timeCreated: 1495226227 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Editor/GrowButtonByTextMeshEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdaaee11e4768334eb14163551d34a69 3 | timeCreated: 1494696567 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Editor/ToggleButtonEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e4893b71aa7c744387e9ba0748fb5a9 3 | timeCreated: 1494069684 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/GrowButtonByTextMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be27e15e4d3efee459e7184a1b5fe5c8 3 | timeCreated: 1494038766 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b314426d29ebba64aba30e15264e5b1b 3 | folderAsset: yes 4 | timeCreated: 1495731953 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardBackspaceButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardBackspaceButton : KeyboardMomentaryButton { 5 | protected override void ClickHandler(Transform controller, int controllerIndex) { 6 | keyboard.Backspace(); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardBackspaceButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbcdb719e548e5a438db32ea6bef09bb 3 | timeCreated: 1495800489 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardDoneButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardDoneButton : KeyboardMomentaryButton { 5 | protected override void ClickHandler(Transform controller, int controllerIndex) { 6 | keyboard.Done(controller); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardDoneButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9b1ea582bfb9a54d881b38c33cf592b 3 | timeCreated: 1495800489 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardMomentaryButton.cs: -------------------------------------------------------------------------------- 1 | namespace CreateThis.VR.UI.Button { 2 | public abstract class KeyboardMomentaryButton : MomentaryButton { 3 | public Keyboard keyboard; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardMomentaryButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 279fcdf83771e7944974efbd30617d08 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardMomentaryKeyButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardMomentaryKeyButton : KeyboardMomentaryButton { 5 | public string value; 6 | 7 | protected override void ClickHandler(Transform controller, int controllerIndex) { 8 | keyboard.PressKey(value); 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardMomentaryKeyButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9d355e4a65e1df478bf1eab393d4e95 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardNumLockButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardNumLockButton : KeyboardMomentaryButton { 5 | protected override void ClickHandler(Transform controller, int controllerIndex) { 6 | keyboard.NumLock(true); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardNumLockButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 141da1109191dd94abb8bf533dc2b804 3 | timeCreated: 1495800489 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardReturnButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardReturnButton : KeyboardMomentaryButton { 5 | protected override void ClickHandler(Transform controller, int controllerIndex) { 6 | keyboard.Return(); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardReturnButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8521bc52791390f4891e833d0d66ee17 3 | timeCreated: 1495800489 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardShiftLockButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardShiftLockButton : KeyboardToggleButton { 5 | protected override void HitTravelLimitHandler(Transform controller, int controllerIndex) { 6 | // ShiftLock does NOT change the On state when it hits the travel limit. It's On state may only be set externally. 7 | if (!clickOnTriggerExit) { 8 | ClickHandler(controller, controllerIndex); 9 | } 10 | } 11 | 12 | protected override void ClickHandler(Transform controller, int controllerIndex) { 13 | keyboard.ShiftLock(!On); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardShiftLockButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 386ac829a207d1c48ae9896b1e1730fb 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardSymbolButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Button { 4 | public class KeyboardSymbolButton : KeyboardMomentaryButton { 5 | protected override void ClickHandler(Transform controller, int controllerIndex) { 6 | keyboard.Symbol(); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardSymbolButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1da99a368508ae40b59247b309a8038 3 | timeCreated: 1495800489 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardToggleButton.cs: -------------------------------------------------------------------------------- 1 | namespace CreateThis.VR.UI.Button { 2 | public class KeyboardToggleButton : ToggleButton { 3 | public Keyboard keyboard; 4 | } 5 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/Keyboard/KeyboardToggleButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f4bfba3748c11a4cab63010b94cac17 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/KnownFolderButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.System; 3 | using CreateThis.VR.UI.File; 4 | 5 | namespace CreateThis.VR.UI.Button { 6 | public class KnownFolderButton : MomentaryButton { 7 | public FileBase filePanel; 8 | public KnownFolder knownFolder; 9 | 10 | protected override void ClickHandler(Transform controller, int controllerIndex) { 11 | base.ClickHandler(controller, controllerIndex); 12 | filePanel.ChangeDirectoryToKnownFolder(knownFolder); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/KnownFolderButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3400312a095a21442868df6e544a7dda 3 | timeCreated: 1495407378 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/MomentaryButton.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | 4 | namespace CreateThis.VR.UI.Button { 5 | public class MomentaryButton : ButtonBase { 6 | public bool repeat; 7 | 8 | private float initialRepeatDelayInSeconds = 0.5f; 9 | private float repeatDelayInSeconds = 0.1f; 10 | private IEnumerator repeatCoroutine; 11 | 12 | protected override void SelectedExitAfterHitTravelLimitHandler(Transform controller, int controllerIndex) { 13 | if (repeat) { 14 | StopCoroutine(repeatCoroutine); 15 | } 16 | } 17 | 18 | protected override void HitTravelLimitHandler(Transform controller, int controllerIndex) { 19 | if (!clickOnTriggerExit) { 20 | ClickHandler(controller, controllerIndex); 21 | } 22 | if (repeat) { 23 | repeatCoroutine = RepeatCoroutine(controller, controllerIndex); 24 | StartCoroutine(repeatCoroutine); 25 | } 26 | } 27 | 28 | private IEnumerator RepeatCoroutine(Transform controller, int controllerIndex) { 29 | yield return new WaitForSeconds(initialRepeatDelayInSeconds); 30 | while (true) { 31 | StartCoroutine(Haptic.LongVibration(controllerIndex, 0.1f, 1f)); 32 | ClickHandler(controller, controllerIndex); 33 | yield return new WaitForSeconds(repeatDelayInSeconds); 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/MomentaryButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebe38c90842c7774dbefd197a7439dc6 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/PanelToggleVisibilityMomentaryButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using CreateThis.VR.UI.Panel; 4 | 5 | namespace CreateThis.VR.UI.Button { 6 | public class PanelToggleVisibilityMomentaryButton : MomentaryButton { 7 | public PanelBase panelToToggle; 8 | 9 | protected override void ClickHandler(Transform controller, int controllerIndex) { 10 | onClick.Invoke(controller, controllerIndex); 11 | panelToToggle.ToggleVisible(controller, controllerIndex); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/PanelToggleVisibilityMomentaryButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31c909235bbd85d4c98fc12d69ffb058 3 | timeCreated: 1494027642 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/SaveAsButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.VR.UI.File; 3 | 4 | namespace CreateThis.VR.UI.Button { 5 | public class SaveAsButton : MomentaryButton { 6 | public FileSaveAs filePanel; 7 | 8 | protected override void ClickHandler(Transform controller, int controllerIndex) { 9 | base.ClickHandler(controller, controllerIndex); 10 | filePanel.SaveAs(controller, controllerIndex); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/SaveAsButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a19061d0549e75b429b2b59d3835d942 3 | timeCreated: 1495407378 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/SaveAsFileNameButton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.VR.UI.File; 3 | 4 | namespace CreateThis.VR.UI.Button { 5 | public class SaveAsFileNameButton : MomentaryButton { 6 | public FileSaveAs filePanel; 7 | 8 | protected override void ClickHandler(Transform controller, int controllerIndex) { 9 | base.ClickHandler(controller, controllerIndex); 10 | filePanel.FileNameClick(controller); 11 | } 12 | 13 | public void SetPath(string value) { 14 | buttonText.GetComponent().text = value; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/SaveAsFileNameButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12e7221d1e00a7740b4ec031648cb09b 3 | timeCreated: 1495407378 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Button/ToggleButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aed2f355198c8804cb2a4297468c1a76 3 | timeCreated: 1494027641 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/ColorPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e43e9ee91e10b4941ab2a5fde94dbbea 3 | folderAsset: yes 4 | timeCreated: 1497792984 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/ColorPicker/ColorPickerIOBase.cs: -------------------------------------------------------------------------------- 1 | #if COLOR_PICKER 2 | using UnityEngine; 3 | 4 | namespace CreateThis.VR.UI.ColorPicker { 5 | public abstract class ColorPickerIOBase : MonoBehaviour { 6 | public Color color; // public for debugging and to set initial color at startup. 7 | 8 | protected virtual void OnColorChange(HSBColor color) { 9 | this.color = color.ToColor(); 10 | } 11 | 12 | protected virtual void SetColorPickerColor(Color color) { 13 | HSBColor hsbColor = HSBColor.FromColor(color); 14 | transform.BroadcastMessage("SetColor", hsbColor, SendMessageOptions.DontRequireReceiver); 15 | } 16 | 17 | protected virtual void Start() { 18 | SetColorPickerColor(this.color); 19 | } 20 | } 21 | } 22 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/ColorPicker/ColorPickerIOBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee9c89eb83353744cbf2e9e807e8edd5 3 | timeCreated: 1497880924 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/ColorPicker/ColorPickerProfile.cs: -------------------------------------------------------------------------------- 1 | #if COLOR_PICKER 2 | using UnityEngine; 3 | 4 | namespace CreateThis.VR.UI.ColorPicker { 5 | public class ColorPickerProfile : MonoBehaviour { 6 | [Header("General")] 7 | public GameObject thumbBody; 8 | public Material thumbMaterial; 9 | public Vector3 boxColliderSize = new Vector3(0.212f, 0.15f, 0); 10 | 11 | [Header("Hue")] 12 | public Material hueMaterial; 13 | public Vector3 hueThumbLocalPosition = new Vector3(-0.108f, 0.009f, 0f); 14 | public Vector3 hueThumbScale = new Vector3(0.005f, 0.03f, 0); 15 | public Vector3 huePickerLocalPosition = new Vector3(-0.0005f, 0.0573f, 0f); 16 | public Vector3 huePickerScale = new Vector3(0.208f, 0.03f, 0); 17 | 18 | [Header("Saturation Brightness (SB)")] 19 | public Material sbMaterial; 20 | public Vector3 sbThumbLocalPosition = new Vector3(-0.108f, 0.009f, 0f); 21 | public Vector3 sbThumbScale = new Vector3(0.01f, 0.01f, 0); 22 | public Vector3 sbLocalPosition = new Vector3(-0.0545f, -0.0227f, 0f); 23 | public Vector3 sbScale = new Vector3(0.1f, 0.1f, 0); 24 | 25 | [Header("Indicator")] 26 | public Material solidColorMaterial; 27 | public Vector3 indicatorLocalPosition = new Vector3(0.0545f, -0.0227f, 0f); 28 | public Vector3 indicatorScale = new Vector3(0.1f, 0.1f, 0); 29 | 30 | // Use this for initialization 31 | void Start() { 32 | 33 | } 34 | 35 | // Update is called once per frame 36 | void Update() { 37 | 38 | } 39 | } 40 | } 41 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/ColorPicker/ColorPickerProfile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d90e8a68473f4949b81056c63fd9d48 3 | timeCreated: 1497125619 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/ColorPicker/ColorPickerThumbTouchable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b32e276f717785b43943a9d2b28293d6 3 | timeCreated: 1497793036 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48fc5e8ceb56106419806a5c99dac8fe 3 | folderAsset: yes 4 | timeCreated: 1495226172 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/ColumnContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 965c7ea44202f0a4ca510103920ab530 3 | timeCreated: 1494194153 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d517ffd187e821a4ab2984bd3d71f114 3 | folderAsset: yes 4 | timeCreated: 1495226198 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor/ColumnContainerEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace CreateThis.VR.UI.Container { 5 | [CustomEditor(typeof(ColumnContainer))] 6 | [CanEditMultipleObjects] 7 | 8 | public class ColumnContainerEditor : Editor { 9 | SerializedProperty padding; 10 | SerializedProperty spacing; 11 | SerializedProperty bounds; 12 | 13 | void OnEnable() { 14 | padding = serializedObject.FindProperty("padding"); 15 | spacing = serializedObject.FindProperty("spacing"); 16 | bounds = serializedObject.FindProperty("bounds"); 17 | } 18 | 19 | public override void OnInspectorGUI() { 20 | serializedObject.Update(); 21 | 22 | EditorGUILayout.PropertyField(padding); 23 | EditorGUILayout.PropertyField(spacing); 24 | EditorGUILayout.PropertyField(bounds); 25 | 26 | serializedObject.ApplyModifiedProperties(); 27 | 28 | if (GUILayout.Button("Move Children")) { 29 | if (target.GetType() == typeof(ColumnContainer)) { 30 | ColumnContainer columnContainer = (ColumnContainer)target; 31 | columnContainer.MoveChildren(); 32 | } 33 | } 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor/ColumnContainerEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a05563d212894f46ba495ea3e99ba6f 3 | timeCreated: 1494194153 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor/PanelContainerEditor.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | namespace CreateThis.VR.UI.Container { 7 | [CustomEditor(typeof(PanelContainer))] 8 | [CanEditMultipleObjects] 9 | 10 | public class PanelContainerEditor : Editor { 11 | SerializedProperty minWidth; 12 | SerializedProperty minHeight; 13 | SerializedProperty bounds; 14 | 15 | void OnEnable() { 16 | minWidth = serializedObject.FindProperty("minWidth"); 17 | minHeight = serializedObject.FindProperty("minHeight"); 18 | bounds = serializedObject.FindProperty("bounds"); 19 | } 20 | 21 | public override void OnInspectorGUI() { 22 | serializedObject.Update(); 23 | 24 | EditorGUILayout.PropertyField(minWidth); 25 | EditorGUILayout.PropertyField(minHeight); 26 | EditorGUILayout.PropertyField(bounds); 27 | 28 | serializedObject.ApplyModifiedProperties(); 29 | 30 | if (GUILayout.Button("Resize")) { 31 | if (target.GetType() == typeof(PanelContainer)) { 32 | PanelContainer panelContainer = (PanelContainer)target; 33 | panelContainer.Resize(); 34 | } 35 | } 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor/PanelContainerEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 499e815ee08cfc54d984113c0058d3f3 3 | timeCreated: 1494205078 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor/RowContainerEditor.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | namespace CreateThis.VR.UI.Container { 7 | [CustomEditor(typeof(RowContainer))] 8 | [CanEditMultipleObjects] 9 | 10 | public class RowContainerEditor : Editor { 11 | SerializedProperty padding; 12 | SerializedProperty spacing; 13 | SerializedProperty alignment; 14 | SerializedProperty bounds; 15 | SerializedProperty log; 16 | 17 | void OnEnable() { 18 | padding = serializedObject.FindProperty("padding"); 19 | spacing = serializedObject.FindProperty("spacing"); 20 | alignment = serializedObject.FindProperty("alignment"); 21 | bounds = serializedObject.FindProperty("bounds"); 22 | log = serializedObject.FindProperty("log"); 23 | } 24 | 25 | public override void OnInspectorGUI() { 26 | serializedObject.Update(); 27 | 28 | EditorGUILayout.PropertyField(padding); 29 | EditorGUILayout.PropertyField(spacing); 30 | EditorGUILayout.PropertyField(alignment); 31 | EditorGUILayout.PropertyField(bounds); 32 | EditorGUILayout.PropertyField(log); 33 | 34 | serializedObject.ApplyModifiedProperties(); 35 | 36 | if (GUILayout.Button("Move Children")) { 37 | if (target.GetType() == typeof(RowContainer)) { 38 | RowContainer rowContainer = (RowContainer)target; 39 | rowContainer.MoveChildren(); 40 | } 41 | } 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/Editor/RowContainerEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 137c955869600204c97432e52ddfbf4f 3 | timeCreated: 1494187726 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/PanelContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34e5df595360bc84788c1aada6a9988d 3 | timeCreated: 1494205006 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/PanelContainerProfile.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI { 4 | public class PanelContainerProfile : MonoBehaviour { 5 | public GameObject panelBody; 6 | public Material material; 7 | public Material highlight; 8 | public Material outline; 9 | public Color fontColor = Color.white; 10 | public Vector3 bodyScale = new Vector3(1, 0.025f, 0.025f); 11 | public float minWidth; 12 | public float minHeight; 13 | public float buttonZ = -0.025f; 14 | public float padding = 0.02f; 15 | public float spacing = 0.02f; 16 | public float labelCharacterSize = 0.9f; 17 | 18 | // Use this for initialization 19 | void Start() { 20 | 21 | } 22 | 23 | // Update is called once per frame 24 | void Update() { 25 | 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/PanelContainerProfile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 412cde1f8deab8a439674ca38dd20070 3 | timeCreated: 1497125619 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/RowContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a684ced31842954f809f1e8d7dad9ce 3 | timeCreated: 1494167217 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Container/UpdateBoxColliderFromTextMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5270cbbaa6faa9446bd86ba07f1a50e1 3 | timeCreated: 1494349839 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f90e925cef6ac4b4b9efa2be78da7dc1 3 | folderAsset: yes 4 | timeCreated: 1495291994 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Controller/TouchController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 901ba5bacd003e844b2376077e20f61f 3 | timeCreated: 1495221682 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Controller/TouchPadMenuController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c19bb5cb32621948be556c6af68860d 3 | timeCreated: 1496232447 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Controller/TranslucentController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Controller { 4 | public class TranslucentController : MonoBehaviour { 5 | public Material controllerMaterial; 6 | 7 | // Use this for initialization 8 | void Start() { 9 | SteamVR_Events.RenderModelLoaded.Listen(OnRenderModelLoaded); 10 | } 11 | 12 | private void OnRenderModelLoaded(SteamVR_RenderModel model, bool connected) { 13 | Renderer[] renderers = model.gameObject.GetComponentsInChildren(); 14 | foreach (Renderer renderer in renderers) { 15 | renderer.material = controllerMaterial; 16 | } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Controller/TranslucentController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3052348f02d9e824fbdaf59ff8cb2107 3 | timeCreated: 1495478402 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Defaults.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a38c344dfc20f149a8709862a4c1424 3 | timeCreated: 1497123528 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Drives.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c9d5a2667798d64a9d0d9be99e0020e 3 | timeCreated: 1493912431 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Event.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b845d18943783b94e9e814334b635adc 3 | folderAsset: yes 4 | timeCreated: 1495229252 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Event/I3dWidgetResized.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.EventSystems; 2 | 3 | namespace CreateThis.VR.UI.Event { 4 | public interface IChild3dWidgetResized : IEventSystemHandler { 5 | // functions that can be called via the messaging system 6 | void Child3dWidgetResized(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Event/I3dWidgetResized.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e60368590af260438955e4ecc29adde 3 | timeCreated: 1494192138 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee04b6818a7637c4a9f6da3b4161ad8b 3 | folderAsset: yes 4 | timeCreated: 1495376834 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8be2704450a40a4daeb1634b14ae5dd 3 | timeCreated: 1495377049 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileData.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.File { 4 | public class FileData : MonoBehaviour { 5 | public string path; 6 | public bool isFolder; 7 | 8 | // Use this for initialization 9 | void Start() { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update() { 15 | 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22c01c17862b4694d85859aa8587fbdf 3 | timeCreated: 1495291365 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileOpen.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.VR.UI.UnityEvent; 3 | 4 | namespace CreateThis.VR.UI.File { 5 | public class FileOpen : FileBase { 6 | public FilePathEvent onOpen; 7 | 8 | protected override void ClickedFile(string path, Transform controller, int controllerIndex) { 9 | onOpen.Invoke(path, controller, controllerIndex); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileOpen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92baf5f66747c3e46abd6ad306f61c55 3 | timeCreated: 1495221682 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FilePanelProfile.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI { 4 | public class FilePanelProfile : MonoBehaviour { 5 | public GameObject folderPrefab; 6 | public float kineticScrollerSpacing = 0.1f; 7 | public float scrollerHeight = 0.2f; 8 | public string searchPattern = "*.txt"; 9 | 10 | // Use this for initialization 11 | void Start() { 12 | 13 | } 14 | 15 | // Update is called once per frame 16 | void Update() { 17 | 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FilePanelProfile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3179636db3374142bc7048c0e80e107 3 | timeCreated: 1497125619 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileSaveAs.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEngine; 3 | using CreateThis.VR.UI.UnityEvent; 4 | using CreateThis.VR.UI.Button; 5 | 6 | namespace CreateThis.VR.UI.File { 7 | public class FileSaveAs : FileBase { 8 | public SaveAsFileNameButton fileNameButton; 9 | public Keyboard keyboard; 10 | public FilePathEvent onSaveAs; 11 | 12 | private string filename; 13 | 14 | public void SetFilename(string value) { 15 | filename = value; 16 | fileNameButton.SetPath(filename); 17 | } 18 | 19 | public void KeyboardCallback(string filename, Transform controller) { 20 | SetFilename(filename); 21 | keyboard.SetController(controller); 22 | keyboard.SetVisible(false); 23 | this.controller = controller; 24 | this.SetVisible(true); 25 | } 26 | 27 | public void FileNameClick(Transform controller) { 28 | this.SetVisible(false); 29 | keyboard.SetController(controller); 30 | keyboard.SetBuffer(filename); 31 | keyboard.doneCallback = KeyboardCallback; 32 | keyboard.SetVisible(true); 33 | } 34 | 35 | public void SaveAs(Transform controller, int controllerIndex) { 36 | string path = Path.Combine(currentPath, filename); 37 | onSaveAs.Invoke(path, controller, controllerIndex); 38 | } 39 | 40 | protected override void ClickedFile(string path, Transform controller, int controllerIndex) { 41 | SetFilename(Path.GetFileNameWithoutExtension(path)); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/File/FileSaveAs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13ef9b630f365e94ea458890914b43e8 3 | timeCreated: 1495221682 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d295b32f44b2724449c5316da958ae72 3 | folderAsset: yes 4 | timeCreated: 1495295617 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Grabbable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Interact { 4 | public abstract class Grabbable : MonoBehaviour { 5 | protected Transform controller; 6 | protected int controllerIndex; 7 | protected bool grabbing = false; 8 | 9 | // functions that can be called via the messaging system 10 | public virtual void OnGrabStart(Transform controller, int controllerIndex) { 11 | this.controller = controller; 12 | this.controllerIndex = controllerIndex; 13 | grabbing = true; 14 | } 15 | 16 | public virtual void OnGrabUpdate(Transform controller, int controllerIndex) { 17 | 18 | } 19 | 20 | public virtual void OnGrabStop(Transform controller, int controllerIndex) { 21 | grabbing = false; 22 | } 23 | 24 | protected virtual void Update() { 25 | if (grabbing) { 26 | OnGrabUpdate(controller, controllerIndex); 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Grabbable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a4f1f9c8ab415d4c87a749549a707c3 3 | timeCreated: 1495544318 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Selectable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c86297993186a024b90a4729028ecfec 3 | timeCreated: 1495221682 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Touchable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Interact { 4 | public abstract class Touchable : MonoBehaviour { 5 | protected Transform controller; 6 | protected int controllerIndex; 7 | protected bool touching = false; 8 | 9 | // functions that can be called via the messaging system 10 | public virtual void OnTouchStart(Transform controller, int controllerIndex) { 11 | this.controller = controller; 12 | this.controllerIndex = controllerIndex; 13 | touching = true; 14 | } 15 | 16 | public virtual void OnTouchUpdate(Transform controller, int controllerIndex) { 17 | 18 | } 19 | 20 | public virtual void OnTouchStop(Transform controller, int controllerIndex) { 21 | touching = false; 22 | } 23 | 24 | protected virtual void Update() { 25 | if (touching) { 26 | OnTouchUpdate(controller, controllerIndex); 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Touchable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf0592cd46ad1ea4295f3eb81ebb9142 3 | timeCreated: 1495474704 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Triggerable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI.Interact { 4 | public abstract class Triggerable : MonoBehaviour { 5 | protected Transform controller; 6 | protected int controllerIndex; 7 | protected bool triggering = false; 8 | 9 | // functions that can be called via the messaging system 10 | public virtual void OnTriggerDown(Transform controller, int controllerIndex) { 11 | this.controller = controller; 12 | this.controllerIndex = controllerIndex; 13 | triggering = true; 14 | } 15 | 16 | public virtual void OnTriggerUpdate(Transform controller, int controllerIndex) { 17 | 18 | } 19 | 20 | public virtual void OnTriggerUp(Transform controller, int controllerIndex) { 21 | triggering = false; 22 | } 23 | 24 | protected virtual void Update() { 25 | if (triggering) { 26 | OnTriggerUpdate(controller, controllerIndex); 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Interact/Triggerable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41cb9a8462b0c57478b608fa09eeb327 3 | timeCreated: 1495545563 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Keyboard.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad503b127cccaac418d4832645140811 3 | timeCreated: 1494700821 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/KeyboardLabel.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI { 4 | public class KeyboardLabel : MonoBehaviour { 5 | public TextMesh textMesh; 6 | public Keyboard keyboard; 7 | 8 | void OnEnable() { 9 | Keyboard.OnBufferChanged += UpdateText; 10 | } 11 | 12 | void OnDisable() { 13 | Keyboard.OnBufferChanged -= UpdateText; 14 | } 15 | 16 | public void UpdateText() { 17 | string buffer = keyboard.GetBuffer(); 18 | textMesh.text = buffer; 19 | } 20 | 21 | // Use this for initialization 22 | void Start() { 23 | } 24 | 25 | // Update is called once per frame 26 | void Update() { 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/KeyboardLabel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 897492aaa57e6354a814ca6c6d804404 3 | timeCreated: 1494859284 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8f04f9324850744b9952a693b9ca29b 3 | folderAsset: yes 4 | timeCreated: 1495372583 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/NotificationPanel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | 4 | namespace CreateThis.VR.UI.Panel { 5 | public class NotificationPanel : PanelBase { 6 | public TextMesh notificationLabel; 7 | 8 | private void Opaque() { 9 | MeshRenderer meshRenderer = GetComponent(); 10 | Color c = meshRenderer.materials[0].color; 11 | c.a = 1.0f; 12 | meshRenderer.materials[0].color = c; 13 | } 14 | 15 | private IEnumerator Fade() { 16 | yield return new WaitForSeconds(2); 17 | MeshRenderer meshRenderer = GetComponent(); 18 | for (float f = 1f; f >= 0; f -= 0.1f) { 19 | Color c = meshRenderer.materials[0].color; 20 | c.a = f; 21 | meshRenderer.materials[0].color = c; 22 | yield return null; 23 | } 24 | SetVisible(false); 25 | } 26 | 27 | public void DisplayMessage(string message, Transform controller, int controllerIndex) { 28 | notificationLabel.text = message; 29 | SetVisible(true, controller, controllerIndex); 30 | StartCoroutine(Fade()); 31 | } 32 | 33 | public new void SetVisible(bool value, Transform controller, int controllerIndex) { 34 | base.SetVisible(value, controller, controllerIndex); 35 | if (value) Opaque(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/NotificationPanel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9613d855236086408bcfa595290baef 3 | timeCreated: 1495374538 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/PanelBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f183ded4910abf419dee21d0d54a760 3 | timeCreated: 1495373449 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/PanelProfile.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CreateThis.VR.UI { 4 | public class PanelProfile : MonoBehaviour { 5 | public Camera sceneCamera; 6 | public Vector3 offset = new Vector3(0, 0.05f, 0.025f); 7 | public float minDistance = 0.5f; 8 | public bool hideOnAwake = true; 9 | 10 | // Use this for initialization 11 | void Start() { 12 | 13 | } 14 | 15 | // Update is called once per frame 16 | void Update() { 17 | 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/PanelProfile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f2c152b5f0eab645872b232b782c131 3 | timeCreated: 1497125619 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/StandardPanel.cs: -------------------------------------------------------------------------------- 1 | namespace CreateThis.VR.UI.Panel { 2 | public class StandardPanel : PanelBase { 3 | } 4 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Panel/StandardPanel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d244be4acd2424745b1cc8d020419dfe 3 | timeCreated: 1495373861 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/PanelManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | using CreateThis.VR.UI.Panel; 4 | 5 | namespace CreateThis.VR.UI { 6 | public static class PanelManager { 7 | private static List panels; 8 | private static bool hasInitialized; 9 | 10 | public static void HideAllPanels(PanelBase except) { 11 | Initialize(); 12 | 13 | foreach (PanelBase panel in panels) { 14 | if (panel && panel != except) panel.SetVisible(false); 15 | } 16 | } 17 | 18 | public static void AddPanel(PanelBase panel) { 19 | Initialize(); 20 | 21 | panels.Add(panel); 22 | } 23 | 24 | private static void Initialize() { 25 | if (hasInitialized) return; 26 | panels = new List(); 27 | hasInitialized = true; 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/PanelManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18e437c8d06d9494fad15c48d0f31180 3 | timeCreated: 1496267979 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/PanelUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: feaa2e463afb50f48908e7746f3ca61c 3 | timeCreated: 1493830677 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Scroller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd27f903af4c6384aac36204ce4f3ada 3 | folderAsset: yes 4 | timeCreated: 1495227024 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Scroller/KineticScroller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3f232559a4c68f40a078cf8f159c995 3 | timeCreated: 1492187940 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Scroller/KineticScrollerItem.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using CreateThis.VR.UI.Interact; 3 | 4 | namespace CreateThis.VR.UI.Scroller { 5 | public class KineticScrollerItem : Grabbable { 6 | public KineticScroller kineticScroller; 7 | 8 | public override void OnGrabStart(Transform controller, int controllerIndex) { 9 | kineticScroller.fileObjectGrabbed = gameObject; 10 | kineticScroller.OnGrabStart(controller, controllerIndex); 11 | } 12 | 13 | public override void OnGrabStop(Transform controller, int controllerIndex) { 14 | kineticScroller.OnGrabStop(controller, controllerIndex); 15 | } 16 | 17 | // Use this for initialization 18 | void Start() { 19 | 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/Scroller/KineticScrollerItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61dee60b2ab94ca478e7cc1725a70fb4 3 | timeCreated: 1492619910 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 099136a4e4c43a946a5acfc9b2d7dbbb 3 | folderAsset: yes 4 | timeCreated: 1495295255 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/BoolEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.Events; 2 | 3 | namespace CreateThis.VR.UI.UnityEvent { 4 | [global::System.Serializable] 5 | public class BoolEvent : UnityEvent { 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/BoolEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf48de1b66b230440bf9ebba9fd1adb9 3 | timeCreated: 1495295692 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/FilePathEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace CreateThis.VR.UI.UnityEvent { 5 | [global::System.Serializable] 6 | public class FilePathEvent : UnityEvent { 7 | } 8 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/FilePathEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf79234a6799d3442a7ae0d7f102f27b 3 | timeCreated: 1495324239 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/GrabEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace CreateThis.VR.UI.UnityEvent { 5 | [global::System.Serializable] 6 | public class GrabEvent : UnityEvent { 7 | } 8 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/GrabEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8046829ffb2ba9746a670dd530e67684 3 | timeCreated: 1495295228 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/UseEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace CreateThis.VR.UI.UnityEvent { 5 | [global::System.Serializable] 6 | public class UseEvent : UnityEvent { 7 | } 8 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/UnityEvent/UseEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e4f7302c71961143a878093193645b0 3 | timeCreated: 1495295228 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/VRUI_Defaults.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if COLOR_PICKER 3 | using CreateThis.VR.UI.ColorPicker; 4 | #endif 5 | 6 | namespace CreateThis.VR.UI { 7 | public class VRUI_Defaults : MonoBehaviour { 8 | public PanelProfile panelProfile; 9 | public PanelContainerProfile panelContainerProfile; 10 | public ButtonProfile momentaryButtonProfile; 11 | public ButtonProfile toggleButtonProfile; 12 | public FilePanelProfile filePanelProfile; 13 | #if COLOR_PICKER 14 | public ColorPickerProfile colorPickerProfile; 15 | #endif 16 | private void Initialize() { 17 | if (panelProfile != null) Defaults.panel = panelProfile; 18 | if (panelContainerProfile != null) Defaults.panelContainer = panelContainerProfile; 19 | if (momentaryButtonProfile != null) Defaults.momentaryButton = momentaryButtonProfile; 20 | if (toggleButtonProfile != null) Defaults.toggleButton = toggleButtonProfile; 21 | if (filePanelProfile != null) Defaults.filePanel = filePanelProfile; 22 | #if COLOR_PICKER 23 | if (colorPickerProfile != null) Defaults.colorPicker = colorPickerProfile; 24 | #endif 25 | Defaults.Changed(); 26 | } 27 | 28 | #if UNITY_EDITOR 29 | void OnValidate() { 30 | Initialize(); 31 | } 32 | #else 33 | void Awake() { 34 | Initialize(); 35 | } 36 | #endif 37 | 38 | // Use this for initialization 39 | void Start() { 40 | 41 | } 42 | 43 | // Update is called once per frame 44 | void Update() { 45 | 46 | } 47 | } 48 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UI/VRUI_Defaults.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb936c6e713d71b43a0474986859dd85 3 | timeCreated: 1497123949 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UseOpenVR.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | using UnityEngine.VR; 4 | using UnityEngine.SceneManagement; 5 | 6 | namespace CreateThis.VR.UI { 7 | public class UseOpenVR : MonoBehaviour { 8 | IEnumerator LoadDevice(string newDevice) { 9 | VRSettings.LoadDeviceByName(newDevice); 10 | yield return null; 11 | VRSettings.enabled = true; 12 | SteamVR.enabled = true; 13 | SceneManager.LoadScene(SceneManager.GetActiveScene().name); 14 | } 15 | // Use this for initialization 16 | void Start() { 17 | if (VRSettings.loadedDeviceName != "OpenVR") { 18 | Debug.Log(string.Join(",", VRSettings.supportedDevices)); 19 | StartCoroutine(LoadDevice("OpenVR")); 20 | } 21 | } 22 | 23 | // Update is called once per frame 24 | void Update() { 25 | 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VR/UseOpenVR.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0cb695d138ac194697b85749b2e311a 3 | timeCreated: 1495556420 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VRTK.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31e65105e0d564f4aac466b29217262a 3 | folderAsset: yes 4 | timeCreated: 1495472537 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VRTK/CreateThis_VRTK_GrabAttach.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cab0df972a1de146a00dbae64ad4429 3 | timeCreated: 1496089914 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VRTK/CreateThis_VRTK_Interactable.cs: -------------------------------------------------------------------------------- 1 | #if VRTK 2 | using UnityEngine; 3 | using VRTK; 4 | using CreateThis.VR.UI.Interact; 5 | 6 | namespace CreateThis.VRTK { 7 | public class CreateThis_VRTK_Interactable : VRTK_InteractableObject { 8 | private int controllerIndex; 9 | 10 | public override void StartTouching(GameObject touchingObject) { 11 | base.StartTouching(touchingObject); 12 | VRTK_ControllerReference controllerReference = VRTK_ControllerReference.GetControllerReference(touchingObject); 13 | controllerIndex = (int)VRTK_ControllerReference.GetRealIndex(controllerReference); 14 | if (!GetComponent()) return; 15 | Touchable[] touchables = GetComponents(); 16 | foreach(Touchable touchable in touchables) { 17 | touchable.OnTouchStart(touchingObject.transform, controllerIndex); 18 | } 19 | } 20 | 21 | public override void StopTouching(GameObject touchingObject) { 22 | base.StopTouching(touchingObject); 23 | if (!GetComponent()) return; 24 | Touchable[] touchables = GetComponents(); 25 | foreach (Touchable touchable in touchables) { 26 | touchable.OnTouchStop(touchingObject.transform, controllerIndex); 27 | } 28 | controllerIndex = -1; 29 | } 30 | } 31 | } 32 | #endif -------------------------------------------------------------------------------- /Assets/CreateThis/Scripts/VRTK/CreateThis_VRTK_Interactable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efde92d3908eff24b9b925854c10adde 3 | timeCreated: 1495472606 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CreateThis/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e2aff6bdbeb5304481eca96ed708557 3 | folderAsset: yes 4 | timeCreated: 1495561522 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Shaders/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 301a0bd3744be3a4db50b3ddbfcaca88 3 | folderAsset: yes 4 | timeCreated: 1495415613 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CreateThis/Shaders/Resources/VRTK_OutlineBasic.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a70ebc0d070ab104d85fb56247042f87 3 | timeCreated: 1495415613 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/no_vrtk.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb7d963b5b79f5147bd594ab3a7d2142 3 | timeCreated: 1495219233 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/skyb1.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c5197ffc95647e41a9b2e2c5ac7d5fc 3 | folderAsset: yes 4 | timeCreated: 1496271185 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/skyb1/back.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/skyb1/back.psd -------------------------------------------------------------------------------- /Assets/skyb1/bot.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/skyb1/bot.psd -------------------------------------------------------------------------------- /Assets/skyb1/bot.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1995afa179277e7418c30f99df22dc2f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 4 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | sRGBTexture: 1 10 | linearTexture: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 6 23 | cubemapConvolution: 0 24 | seamlessCubemap: 0 25 | textureFormat: -1 26 | maxTextureSize: 2048 27 | textureSettings: 28 | filterMode: 2 29 | aniso: -1 30 | mipBias: -1 31 | wrapMode: 1 32 | nPOTScale: 1 33 | lightmap: 0 34 | compressionQuality: 50 35 | spriteMode: 0 36 | spriteExtrude: 1 37 | spriteMeshType: 1 38 | alignment: 0 39 | spritePivot: {x: 0.5, y: 0.5} 40 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 41 | spritePixelsToUnits: 100 42 | alphaUsage: 1 43 | alphaIsTransparency: 0 44 | spriteTessellationDetail: -1 45 | textureType: 0 46 | textureShape: 1 47 | maxTextureSizeSet: 0 48 | compressionQualitySet: 0 49 | textureFormatSet: 0 50 | platformSettings: 51 | - buildTarget: DefaultTexturePlatform 52 | maxTextureSize: 2048 53 | textureFormat: -1 54 | textureCompression: 1 55 | compressionQuality: 50 56 | crunchedCompression: 0 57 | allowsAlphaSplitting: 0 58 | overridden: 0 59 | spriteSheet: 60 | serializedVersion: 2 61 | sprites: [] 62 | outline: [] 63 | spritePackingTag: 64 | userData: 65 | assetBundleName: 66 | assetBundleVariant: 67 | -------------------------------------------------------------------------------- /Assets/skyb1/front.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/skyb1/front.psd -------------------------------------------------------------------------------- /Assets/skyb1/l.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/skyb1/l.psd -------------------------------------------------------------------------------- /Assets/skyb1/r.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/skyb1/r.psd -------------------------------------------------------------------------------- /Assets/skyb1/sky,startday.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e222162ddb8d34547a133b673221b195 3 | NativeFormatImporter: 4 | mainObjectFileID: -1 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/skyb1/sunset.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66a03dc1bc284154283f0da7196709e3 3 | timeCreated: 1496271248 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/skyb1/up.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/createthis/createthis_vr_ui/e6bcab965543151c769fa32e989f4552dafbef82/Assets/skyb1/up.psd -------------------------------------------------------------------------------- /Assets/vrtk.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 310a3084a001cc54b9016842d9b76d17 3 | timeCreated: 1495467987 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2017 CreateThis.com 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 0 10 | m_SpritePackerMode: 0 11 | m_SpritePackerPaddingPower: 1 12 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 13 | m_ProjectGenerationRootNamespace: 14 | m_UserGeneratedProjectSuffix: 15 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | m_SettingNames: 89 | - Humanoid 90 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_CallbacksOnDisable: 1 26 | m_AlwaysShowColliders: 0 27 | m_ShowColliderSleep: 1 28 | m_ShowColliderContacts: 0 29 | m_ShowColliderAABB: 0 30 | m_ContactArrowScale: 0.2 31 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 32 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 33 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 34 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 35 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 36 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.1.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: 7 | - FxTemporaire 8 | - projectile 9 | layers: 10 | - Default 11 | - TransparentFX 12 | - Ignore Raycast 13 | - 14 | - Water 15 | - UI 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | - 41 | - 42 | m_SortingLayers: 43 | - name: Default 44 | uniqueID: 0 45 | locked: 0 46 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_Enabled: 0 14 | m_CaptureEditorExceptions: 1 15 | UnityPurchasingSettings: 16 | m_Enabled: 0 17 | m_TestMode: 0 18 | UnityAnalyticsSettings: 19 | m_Enabled: 0 20 | m_InitializeOnStartup: 1 21 | m_TestMode: 0 22 | m_TestEventUrl: 23 | m_TestConfigUrl: 24 | UnityAdsSettings: 25 | m_Enabled: 0 26 | m_InitializeOnStartup: 1 27 | m_TestMode: 0 28 | m_EnabledPlatforms: 4294967295 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | PerformanceReportingSettings: 32 | m_Enabled: 0 33 | --------------------------------------------------------------------------------