├── .editorconfig ├── .gitignore ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── .vsconfig ├── Assets ├── AssetPool.asset ├── AssetPool.asset.meta ├── Assets.index ├── Assets.index.meta ├── DefaultVolumeProfile.asset ├── DefaultVolumeProfile.asset.meta ├── Images.meta ├── Images │ ├── delete.png │ ├── delete.png.meta │ ├── trailer.mp4 │ └── trailer.mp4.meta ├── InputSystem.inputsettings.asset ├── InputSystem.inputsettings.asset.meta ├── Plugins.meta ├── Plugins │ ├── Android.meta │ └── Android │ │ ├── proguard-user.txt │ │ └── proguard-user.txt.meta ├── Resources.meta ├── Resources │ ├── Underdog.ttf │ ├── Underdog.ttf.meta │ ├── border-image.jpg │ ├── border-image.jpg.meta │ ├── catwalk.png │ ├── catwalk.png.meta │ ├── check.svg │ ├── check.svg.meta │ ├── click.wav │ ├── click.wav.meta │ ├── react.meta │ ├── react │ │ ├── asset-manifest.json │ │ ├── asset-manifest.json.meta │ │ ├── html-test.html │ │ ├── html-test.html.meta │ │ ├── index.js │ │ ├── index.js.meta │ │ ├── static.meta │ │ ├── static │ │ │ ├── js.meta │ │ │ ├── js │ │ │ │ ├── src_pages_style-frameworks_tailwind_index_tsx.chunk.js │ │ │ │ └── src_pages_style-frameworks_tailwind_index_tsx.chunk.js.meta │ │ │ ├── media.meta │ │ │ └── media │ │ │ │ ├── bg.png.png │ │ │ │ ├── bg.png.png.meta │ │ │ │ ├── check.4701752daa56435b75dc4edd7886d403.svg │ │ │ │ └── check.4701752daa56435b75dc4edd7886d403.svg.meta │ │ ├── uitoolkit.js │ │ └── uitoolkit.js.meta │ ├── ryu.png │ ├── ryu.png.meta │ ├── star.png │ └── star.png.meta ├── Scenes.meta ├── Scenes │ ├── HTML.unity │ ├── HTML.unity.meta │ ├── Internal.meta │ ├── Internal │ │ ├── Previewer.unity │ │ ├── Previewer.unity.meta │ │ ├── WebInjectable.unity │ │ └── WebInjectable.unity.meta │ ├── MainScene.unity │ ├── MainScene.unity.meta │ ├── UIToolkit.unity │ ├── UIToolkit.unity.meta │ ├── VR.unity │ ├── VR.unity.meta │ ├── Web.meta │ ├── Web │ │ ├── LightingData.asset │ │ └── LightingData.asset.meta │ ├── WorldCanvas.unity │ └── WorldCanvas.unity.meta ├── Scripts.meta ├── Scripts │ ├── CameraRotater.cs │ ├── CameraRotater.cs.meta │ ├── ExampleCustomComponent.meta │ ├── ExampleCustomComponent │ │ ├── CustomButtonComponent.cs │ │ ├── CustomButtonComponent.cs.meta │ │ ├── CustomComponentInitializer.cs │ │ └── CustomComponentInitializer.cs.meta │ ├── FaceAtCamera.cs │ ├── FaceAtCamera.cs.meta │ ├── InteropTest.cs │ ├── InteropTest.cs.meta │ ├── ReactWebBridge.cs │ ├── ReactWebBridge.cs.meta │ ├── VREnabler.cs │ └── VREnabler.cs.meta ├── TextMesh Pro.meta ├── TextMesh Pro │ ├── Documentation.meta │ ├── Documentation │ │ ├── TextMesh Pro User Guide 2016.pdf │ │ └── TextMesh Pro User Guide 2016.pdf.meta │ ├── Fonts.meta │ ├── Fonts │ │ ├── LiberationSans - OFL.txt │ │ ├── LiberationSans - OFL.txt.meta │ │ ├── LiberationSans.ttf │ │ └── LiberationSans.ttf.meta │ ├── Resources.meta │ ├── Resources │ │ ├── Fonts & Materials.meta │ │ ├── Fonts & Materials │ │ │ ├── LiberationSans SDF - Drop Shadow.mat │ │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta │ │ │ ├── LiberationSans SDF - Fallback.asset │ │ │ ├── LiberationSans SDF - Fallback.asset.meta │ │ │ ├── LiberationSans SDF - Outline.mat │ │ │ ├── LiberationSans SDF - Outline.mat.meta │ │ │ ├── LiberationSans SDF.asset │ │ │ └── LiberationSans SDF.asset.meta │ │ ├── LineBreaking Following Characters.txt │ │ ├── LineBreaking Following Characters.txt.meta │ │ ├── LineBreaking Leading Characters.txt │ │ ├── LineBreaking Leading Characters.txt.meta │ │ ├── Shaders.meta │ │ ├── Shaders │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader.meta │ │ │ ├── TMP_Bitmap-Mobile.shader │ │ │ ├── TMP_Bitmap-Mobile.shader.meta │ │ │ ├── TMP_Bitmap.shader │ │ │ ├── TMP_Bitmap.shader.meta │ │ │ ├── TMP_SDF Overlay.shader │ │ │ ├── TMP_SDF Overlay.shader.meta │ │ │ ├── TMP_SDF-Mobile Masking.shader │ │ │ ├── TMP_SDF-Mobile Masking.shader.meta │ │ │ ├── TMP_SDF-Mobile Overlay.shader │ │ │ ├── TMP_SDF-Mobile Overlay.shader.meta │ │ │ ├── TMP_SDF-Mobile.shader │ │ │ ├── TMP_SDF-Mobile.shader.meta │ │ │ ├── TMP_SDF-Surface-Mobile.shader │ │ │ ├── TMP_SDF-Surface-Mobile.shader.meta │ │ │ ├── TMP_SDF-Surface.shader │ │ │ ├── TMP_SDF-Surface.shader.meta │ │ │ ├── TMP_SDF.shader │ │ │ ├── TMP_SDF.shader.meta │ │ │ ├── TMP_Sprite.shader │ │ │ ├── TMP_Sprite.shader.meta │ │ │ ├── TMPro.cginc │ │ │ ├── TMPro.cginc.meta │ │ │ ├── TMPro_Properties.cginc │ │ │ ├── TMPro_Properties.cginc.meta │ │ │ ├── TMPro_Surface.cginc │ │ │ └── TMPro_Surface.cginc.meta │ │ ├── Sprite Assets.meta │ │ ├── Sprite Assets │ │ │ ├── EmojiOne.asset │ │ │ └── EmojiOne.asset.meta │ │ ├── Style Sheets.meta │ │ ├── Style Sheets │ │ │ ├── Default Style Sheet.asset │ │ │ └── Default Style Sheet.asset.meta │ │ ├── TMP Settings.asset │ │ └── TMP Settings.asset.meta │ ├── Shaders.meta │ ├── Shaders │ │ ├── SDFFunctions.hlsl │ │ ├── SDFFunctions.hlsl.meta │ │ ├── TMP_SDF SSD.shader │ │ ├── TMP_SDF SSD.shader.meta │ │ ├── TMP_SDF-HDRP LIT.shadergraph │ │ ├── TMP_SDF-HDRP LIT.shadergraph.meta │ │ ├── TMP_SDF-HDRP UNLIT.shadergraph │ │ ├── TMP_SDF-HDRP UNLIT.shadergraph.meta │ │ ├── TMP_SDF-Mobile SSD.shader │ │ ├── TMP_SDF-Mobile SSD.shader.meta │ │ ├── TMP_SDF-Mobile-2-Pass.shader │ │ ├── TMP_SDF-Mobile-2-Pass.shader.meta │ │ ├── TMP_SDF-URP Lit.shadergraph │ │ ├── TMP_SDF-URP Lit.shadergraph.meta │ │ ├── TMP_SDF-URP Unlit.shadergraph │ │ ├── TMP_SDF-URP Unlit.shadergraph.meta │ │ ├── TMPro_Mobile.cginc │ │ └── TMPro_Mobile.cginc.meta │ ├── Sprites.meta │ └── Sprites │ │ ├── EmojiOne Attribution.txt │ │ ├── EmojiOne Attribution.txt.meta │ │ ├── EmojiOne.json │ │ ├── EmojiOne.json.meta │ │ ├── EmojiOne.png │ │ └── EmojiOne.png.meta ├── UI Toolkit.meta ├── UI Toolkit │ ├── PanelSettings.asset │ ├── PanelSettings.asset.meta │ ├── UnityThemes.meta │ └── UnityThemes │ │ ├── UnityDefaultRuntimeTheme.tss │ │ └── UnityDefaultRuntimeTheme.tss.meta ├── UniversalRenderPipelineGlobalSettings.asset ├── UniversalRenderPipelineGlobalSettings.asset.meta ├── WSATestCertificate.pfx ├── WSATestCertificate.pfx.meta ├── WebGLTemplates.meta ├── WebGLTemplates │ ├── Responsive.meta │ └── Responsive │ │ ├── index.html │ │ ├── index.html.meta │ │ ├── thumbnail.png │ │ └── thumbnail.png.meta ├── XR.meta ├── XR │ ├── Loaders.meta │ ├── Loaders │ │ ├── Mock HMD Loader.asset │ │ ├── Mock HMD Loader.asset.meta │ │ ├── Oculus Loader.asset │ │ └── Oculus Loader.asset.meta │ ├── Settings.meta │ ├── Settings │ │ ├── Mock HMD Build Settings.asset │ │ ├── Mock HMD Build Settings.asset.meta │ │ ├── Oculus Settings.asset │ │ └── Oculus Settings.asset.meta │ ├── XRGeneralSettings.asset │ └── XRGeneralSettings.asset.meta ├── XRI.meta ├── XRI │ ├── Settings.meta │ └── Settings │ │ ├── Resources.meta │ │ ├── Resources │ │ ├── InteractionLayerSettings.asset │ │ ├── InteractionLayerSettings.asset.meta │ │ ├── XRDeviceSimulatorSettings.asset │ │ └── XRDeviceSimulatorSettings.asset.meta │ │ ├── XRInteractionEditorSettings.asset │ │ └── XRInteractionEditorSettings.asset.meta ├── link.xml └── link.xml.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── BurstAotSettings_Android.json ├── BurstAotSettings_StandaloneWindows.json ├── ClusterInputManager.asset ├── CommonBurstAotSettings.json ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── MultiplayerManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── ShaderGraphSettings.asset ├── TagManager.asset ├── TimeManager.asset ├── URPProjectSettings.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRPackageSettings.asset └── XRSettings.asset ├── README.md └── react ├── .babelrc ├── .editorconfig ├── .env ├── .eslintrc ├── .gitignore ├── .vscode └── launch.json ├── package.json ├── public └── html-test.html ├── src ├── app │ ├── index.module.scss │ ├── index.tsx │ └── routes.tsx ├── assets │ ├── base64Image.txt │ ├── bg.png │ ├── check.svg │ ├── lorem.ts │ ├── star.png │ └── trailer.mp4 ├── entry │ └── uitoolkit.tsx ├── index.tsx ├── pages │ ├── animations │ │ ├── index.module.scss │ │ └── index.tsx │ ├── bg-patterns │ │ ├── index.module.scss │ │ └── index.tsx │ ├── home │ │ ├── index.module.scss │ │ └── index.tsx │ ├── images │ │ ├── index.module.scss │ │ └── index.tsx │ ├── interop │ │ ├── index.module.scss │ │ └── index.tsx │ ├── material │ │ ├── index.module.scss │ │ ├── index.tsx │ │ └── virtual-scrolls.tsx │ ├── query │ │ └── QueryPage.tsx │ ├── redux │ │ └── index.tsx │ ├── style-frameworks │ │ ├── bootstrap │ │ │ ├── index.scss │ │ │ └── index.tsx │ │ ├── emotion │ │ │ └── index.tsx │ │ ├── index.module.scss │ │ ├── index.tsx │ │ ├── jss │ │ │ └── index.tsx │ │ ├── styled-components │ │ │ └── index.tsx │ │ └── tailwind │ │ │ ├── index.css │ │ │ └── index.tsx │ ├── svgs │ │ ├── graph.tsx │ │ ├── index.module.scss │ │ └── index.tsx │ └── todo │ │ ├── index.css │ │ └── index.jsx ├── store.ts ├── tests │ ├── README.md │ ├── error-test │ │ └── index.tsx │ ├── stress-test │ │ ├── index.css │ │ └── index.tsx │ └── width-test │ │ ├── index.scss │ │ └── index.tsx ├── twin.d.ts ├── types.d.ts └── uitoolkit │ └── home │ ├── index.module.scss │ └── index.tsx ├── tailwind.config.js ├── tsconfig.json └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uildWeb/ 10 | /[Bb]uilds/ 11 | /[Ll]ogs/ 12 | /[Mm]emoryCaptures/ 13 | /UIElementsSchema/ 14 | 15 | # Asset meta data should only be ignored when the corresponding asset is also ignored 16 | !/[Aa]ssets/**/*.meta 17 | 18 | # Uncomment this line if you wish to ignore the asset store tools plugin 19 | # /[Aa]ssets/AssetStoreTools* 20 | 21 | # Autogenerated Jetbrains Rider plugin 22 | /[Aa]ssets/Plugins/Editor/JetBrains* 23 | 24 | # Visual Studio cache directory 25 | .vs/ 26 | 27 | # Gradle cache directory 28 | .gradle/ 29 | 30 | # Autogenerated VS/MD/Consulo solution and project files 31 | ExportedObj/ 32 | .consulo/ 33 | *.csproj 34 | *.unityproj 35 | *.sln 36 | *.suo 37 | *.tmp 38 | *.user 39 | *.userprefs 40 | *.pidb 41 | *.booproj 42 | *.svd 43 | *.pdb 44 | *.mdb 45 | *.opendb 46 | *.VC.db 47 | 48 | # Unity3D generated meta files 49 | *.pidb.meta 50 | *.pdb.meta 51 | *.mdb.meta 52 | 53 | # Unity3D generated file on crash reports 54 | sysinfo.txt 55 | 56 | # Builds 57 | *.apk 58 | *.unitypackage 59 | 60 | # Crashlytics generated file 61 | crashlytics-build.properties 62 | 63 | BuildReports* 64 | debug.log 65 | 66 | UserSettings 67 | 68 | /[Cc]ode[Cc]overage/ 69 | TestResults-*.xml 70 | 71 | # Unity layout 72 | *.dwlt 73 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "visualstudiotoolsforunity.vstuc" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Attach to Unity", 6 | "type": "vstuc", 7 | "request": "attach" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | "**/.DS_Store": true, 4 | "**/.git": true, 5 | "**/.gitmodules": true, 6 | "**/*.booproj": true, 7 | "**/*.pidb": true, 8 | "**/*.suo": true, 9 | "**/*.user": true, 10 | "**/*.userprefs": true, 11 | "**/*.unityproj": true, 12 | "**/*.dll": true, 13 | "**/*.exe": true, 14 | "**/*.pdf": true, 15 | "**/*.mid": true, 16 | "**/*.midi": true, 17 | "**/*.wav": true, 18 | "**/*.gif": true, 19 | "**/*.ico": true, 20 | "**/*.jpg": true, 21 | "**/*.jpeg": true, 22 | "**/*.png": true, 23 | "**/*.psd": true, 24 | "**/*.tga": true, 25 | "**/*.tif": true, 26 | "**/*.tiff": true, 27 | "**/*.3ds": true, 28 | "**/*.3DS": true, 29 | "**/*.fbx": true, 30 | "**/*.FBX": true, 31 | "**/*.lxo": true, 32 | "**/*.LXO": true, 33 | "**/*.ma": true, 34 | "**/*.MA": true, 35 | "**/*.obj": true, 36 | "**/*.OBJ": true, 37 | "**/*.cubemap": true, 38 | "**/*.flare": true, 39 | "**/*.mat": true, 40 | "**/*.meta": true, 41 | "**/*.prefab": true, 42 | "**/*.unity": true, 43 | "build/": true, 44 | "Build/": true, 45 | "Library/": true, 46 | "library/": true, 47 | "obj/": true, 48 | "Obj/": true, 49 | "temp/": true, 50 | "Temp/": true 51 | }, 52 | "dotnet.defaultSolution": "full-sample.sln" 53 | } -------------------------------------------------------------------------------- /.vsconfig: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "components": [ 4 | "Microsoft.VisualStudio.Workload.ManagedGame" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Assets/AssetPool.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: d153af6549e1b8d40981a9eeb9b40cd4, type: 3} 13 | m_Name: AssetPool 14 | m_EditorClassIdentifier: 15 | assets: 16 | Entries: 17 | - Key: myBorder 18 | Value: {fileID: 2800000, guid: fa26c01a6adcd5542ad81d4b1e1dd9d4, type: 3} 19 | -------------------------------------------------------------------------------- /Assets/AssetPool.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18b31596afcd2cd4d9e26f60ae596c26 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Assets.index: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Packages", 3 | "type": "asset", 4 | "roots": [ 5 | "Packages" 6 | ], 7 | "includes": [], 8 | "excludes": [ 9 | "Temp/", 10 | "External/", 11 | "Assets/" 12 | ], 13 | "options": { 14 | "disabled": false, 15 | "types": true, 16 | "properties": false, 17 | "extended": false, 18 | "dependencies": false 19 | }, 20 | "baseScore": 100 21 | } -------------------------------------------------------------------------------- /Assets/Assets.index.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a9e070830ca3e743888a75b1be2a309 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 13981, guid: 0000000000000000e000000000000000, type: 0} 11 | -------------------------------------------------------------------------------- /Assets/DefaultVolumeProfile.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3} 13 | m_Name: DefaultVolumeProfile 14 | m_EditorClassIdentifier: 15 | components: [] 16 | -------------------------------------------------------------------------------- /Assets/DefaultVolumeProfile.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa765cee13772764fa937cca57492c2f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Images.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5740e138df050bb4d8122a56eb818575 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Images/delete.png -------------------------------------------------------------------------------- /Assets/Images/delete.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 654cc8b477e5f12489a82af950133a1c 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 0 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | - serializedVersion: 3 86 | buildTarget: WebGL 87 | maxTextureSize: 2048 88 | resizeAlgorithm: 0 89 | textureFormat: -1 90 | textureCompression: 1 91 | compressionQuality: 50 92 | crunchedCompression: 0 93 | allowsAlphaSplitting: 0 94 | overridden: 0 95 | androidETC2FallbackOverride: 0 96 | forceMaximumCompressionQuality_BC6H_BC7: 0 97 | spriteSheet: 98 | serializedVersion: 2 99 | sprites: [] 100 | outline: [] 101 | physicsShape: [] 102 | bones: [] 103 | spriteID: 5e97eb03825dee720800000000000000 104 | internalID: 0 105 | vertices: [] 106 | indices: 107 | edges: [] 108 | weights: [] 109 | secondaryTextures: [] 110 | spritePackingTag: 111 | pSDRemoveMatte: 0 112 | pSDShowRemoveMatteOption: 0 113 | userData: 114 | assetBundleName: 115 | assetBundleVariant: 116 | -------------------------------------------------------------------------------- /Assets/Images/trailer.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Images/trailer.mp4 -------------------------------------------------------------------------------- /Assets/Images/trailer.mp4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f6b344e57984c844879cab2c14cf93d 3 | VideoClipImporter: 4 | externalObjects: {} 5 | serializedVersion: 3 6 | frameRange: 0 7 | startFrame: -1 8 | endFrame: -1 9 | colorSpace: 0 10 | deinterlace: 0 11 | encodeAlpha: 0 12 | flipVertical: 0 13 | flipHorizontal: 0 14 | importAudio: 1 15 | targetSettings: {} 16 | userData: 17 | assetBundleName: 18 | assetBundleVariant: 19 | -------------------------------------------------------------------------------- /Assets/InputSystem.inputsettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: c46f07b5ed07e4e92aa78254188d3d10, type: 3} 13 | m_Name: InputSystem.inputsettings 14 | m_EditorClassIdentifier: 15 | m_SupportedDevices: [] 16 | m_UpdateMode: 1 17 | m_MaxEventBytesPerUpdate: 5242880 18 | m_MaxQueuedEventsPerUpdate: 1000 19 | m_CompensateForScreenOrientation: 1 20 | m_BackgroundBehavior: 0 21 | m_EditorInputBehaviorInPlayMode: 0 22 | m_DefaultDeadzoneMin: 0.125 23 | m_DefaultDeadzoneMax: 0.925 24 | m_DefaultButtonPressPoint: 0.5 25 | m_ButtonReleaseThreshold: 0.75 26 | m_DefaultTapTime: 0.2 27 | m_DefaultSlowTapTime: 0.5 28 | m_DefaultHoldTime: 0.4 29 | m_TapRadius: 5 30 | m_MultiTapDelayTime: 0.75 31 | m_DisableRedundantEventsMerging: 0 32 | m_iOSSettings: 33 | m_MotionUsage: 34 | m_Enabled: 0 35 | m_Description: 36 | -------------------------------------------------------------------------------- /Assets/InputSystem.inputsettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a73264a392f2ca4bb7a3cacb0528ea4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa522ec31720a8e4bbad91105e3130e6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 120c719d1cdd08b45b0502265d49bb23 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/proguard-user.txt: -------------------------------------------------------------------------------- 1 | # Enabling Minify in Android causes native libraries in ReactUnity to break 2 | # To solve this, you first need to enable "Custom Proguard file" option in Project Settings 3 | # Then, either copy this file into "Assets/Plugins/Android/proguard-user.txt", or merge the code below with your existing file 4 | 5 | -keep class com.facebook.yoga.** { *; } 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/proguard-user.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed5ef6d89fd305c43b6a867da6ae1d2e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2750c8abc0d3b9d46b44f33e9d73ee13 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/Underdog.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/Underdog.ttf -------------------------------------------------------------------------------- /Assets/Resources/Underdog.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9109d8a35f474ae58ed465dffaacb69 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Underdog 13 | fallbackFontReferences: [] 14 | customCharacters: 15 | fontRenderingMode: 0 16 | ascentCalculationMode: 1 17 | useLegacyBoundsCalculation: 0 18 | shouldRoundAdvanceValue: 1 19 | userData: 20 | assetBundleName: 21 | assetBundleVariant: 22 | -------------------------------------------------------------------------------- /Assets/Resources/border-image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/border-image.jpg -------------------------------------------------------------------------------- /Assets/Resources/border-image.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa26c01a6adcd5542ad81d4b1e1dd9d4 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 12 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 1 41 | wrapV: 1 42 | wrapW: 1 43 | nPOTScale: 0 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 1 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 72, y: 84, z: 72, w: 80} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 1 56 | spriteTessellationDetail: -1 57 | textureType: 8 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 0 67 | swizzle: 50462976 68 | cookieLightType: 0 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | androidETC2FallbackOverride: 0 81 | forceMaximumCompressionQuality_BC6H_BC7: 0 82 | - serializedVersion: 3 83 | buildTarget: Standalone 84 | maxTextureSize: 2048 85 | resizeAlgorithm: 0 86 | textureFormat: -1 87 | textureCompression: 1 88 | compressionQuality: 50 89 | crunchedCompression: 0 90 | allowsAlphaSplitting: 0 91 | overridden: 0 92 | androidETC2FallbackOverride: 0 93 | forceMaximumCompressionQuality_BC6H_BC7: 0 94 | - serializedVersion: 3 95 | buildTarget: Server 96 | maxTextureSize: 2048 97 | resizeAlgorithm: 0 98 | textureFormat: -1 99 | textureCompression: 1 100 | compressionQuality: 50 101 | crunchedCompression: 0 102 | allowsAlphaSplitting: 0 103 | overridden: 0 104 | androidETC2FallbackOverride: 0 105 | forceMaximumCompressionQuality_BC6H_BC7: 0 106 | - serializedVersion: 3 107 | buildTarget: WebGL 108 | maxTextureSize: 2048 109 | resizeAlgorithm: 0 110 | textureFormat: -1 111 | textureCompression: 1 112 | compressionQuality: 50 113 | crunchedCompression: 0 114 | allowsAlphaSplitting: 0 115 | overridden: 0 116 | androidETC2FallbackOverride: 0 117 | forceMaximumCompressionQuality_BC6H_BC7: 0 118 | spriteSheet: 119 | serializedVersion: 2 120 | sprites: [] 121 | outline: [] 122 | physicsShape: [] 123 | bones: [] 124 | spriteID: 5e97eb03825dee720800000000000000 125 | internalID: 1537655665 126 | vertices: [] 127 | indices: 128 | edges: [] 129 | weights: [] 130 | secondaryTextures: [] 131 | nameFileIdTable: {} 132 | mipmapLimitGroupName: 133 | pSDRemoveMatte: 0 134 | userData: 135 | assetBundleName: 136 | assetBundleVariant: 137 | -------------------------------------------------------------------------------- /Assets/Resources/catwalk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/catwalk.png -------------------------------------------------------------------------------- /Assets/Resources/catwalk.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30fccc9add3534c45a90a2df23ec5503 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: 1 36 | aniso: 1 37 | mipBias: 0 38 | wrapU: 1 39 | wrapV: 1 40 | wrapW: 1 41 | nPOTScale: 0 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 1 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 1 54 | spriteTessellationDetail: -1 55 | textureType: 8 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 4096 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | - serializedVersion: 3 79 | buildTarget: Standalone 80 | maxTextureSize: 4096 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | forceMaximumCompressionQuality_BC6H_BC7: 0 90 | spriteSheet: 91 | serializedVersion: 2 92 | sprites: [] 93 | outline: [] 94 | physicsShape: [] 95 | bones: [] 96 | spriteID: 5e97eb03825dee720800000000000000 97 | internalID: 0 98 | vertices: [] 99 | indices: 100 | edges: [] 101 | weights: [] 102 | secondaryTextures: [] 103 | spritePackingTag: 104 | pSDRemoveMatte: 0 105 | pSDShowRemoveMatteOption: 0 106 | userData: 107 | assetBundleName: 108 | assetBundleVariant: 109 | -------------------------------------------------------------------------------- /Assets/Resources/check.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Assets/Resources/check.svg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dba4e338122faf4db1d0625fcd482ba 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3} 11 | svgType: 0 12 | texturedSpriteMeshType: 0 13 | svgPixelsPerUnit: 100 14 | gradientResolution: 64 15 | alignment: 0 16 | customPivot: {x: 0, y: 0} 17 | generatePhysicsShape: 0 18 | viewportOptions: 0 19 | preserveViewport: 0 20 | advancedMode: 0 21 | predefinedResolutionIndex: 1 22 | targetResolution: 1080 23 | resolutionMultiplier: 1 24 | stepDistance: 10 25 | samplingStepDistance: 100 26 | maxCordDeviationEnabled: 0 27 | maxCordDeviation: 1 28 | maxTangentAngleEnabled: 0 29 | maxTangentAngle: 5 30 | keepTextureAspectRatio: 1 31 | textureSize: 256 32 | textureWidth: 256 33 | textureHeight: 256 34 | wrapMode: 0 35 | filterMode: 1 36 | sampleCount: 4 37 | preserveSVGImageAspect: 0 38 | useSVGPixelsPerUnit: 0 39 | spriteData: 40 | TessellationDetail: 0 41 | SpriteRect: 42 | name: checkSprite 43 | originalName: 44 | pivot: {x: 0.4886111, y: 0.51576924} 45 | alignment: 0 46 | border: {x: 0, y: 0, z: 0, w: 0} 47 | customData: 48 | rect: 49 | serializedVersion: 2 50 | x: 0 51 | y: 0 52 | width: 18 53 | height: 13 54 | spriteID: 5d191aa6f1208bf4e82590cc3aad0a74 55 | PhysicsOutlines: [] 56 | -------------------------------------------------------------------------------- /Assets/Resources/click.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/click.wav -------------------------------------------------------------------------------- /Assets/Resources/click.wav.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7679b553db435614c9fe1b7958c9e3b3 3 | AudioImporter: 4 | externalObjects: {} 5 | serializedVersion: 6 6 | defaultSettings: 7 | loadType: 0 8 | sampleRateSetting: 0 9 | sampleRateOverride: 44100 10 | compressionFormat: 1 11 | quality: 1 12 | conversionMode: 0 13 | platformSettingOverrides: {} 14 | forceToMono: 0 15 | normalize: 1 16 | preloadAudioData: 1 17 | loadInBackground: 0 18 | ambisonic: 0 19 | 3D: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/Resources/react.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6291b215b08bed54282676f2d773bcca 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/react/asset-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": { 3 | "index.js": "/index.js", 4 | "uitoolkit.js": "/uitoolkit.js", 5 | "static/js/src_pages_style-frameworks_tailwind_index_tsx.chunk.js": "/static/js/src_pages_style-frameworks_tailwind_index_tsx.chunk.js", 6 | "static/media/bg.png": "/static/media/bg.png.png", 7 | "static/media/check.svg": "/static/media/check.4701752daa56435b75dc4edd7886d403.svg" 8 | }, 9 | "entrypoints": [ 10 | "index.js" 11 | ] 12 | } -------------------------------------------------------------------------------- /Assets/Resources/react/asset-manifest.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dee472a8f56ec342828792e288b8eb2 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/react/html-test.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 32 | 33 | 34 | 35 | Hello 36 | Dear world 37 | 38 | 41 | 42 | 43 | 44 | more 45 | 46 | -------------------------------------------------------------------------------- /Assets/Resources/react/html-test.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ae807b36bf39734382c1b00c6c0356d 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/react/index.js.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d86c5991535adc4da83c664d50624bb 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: a6814ccfd69dca246adc5eab902a45db, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/Resources/react/static.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 274bb0516b8d6cb4eb675653111f7fa7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/react/static/js.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ecf1c3e140f1324cbb6a6fa1d7d4b77 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/react/static/js/src_pages_style-frameworks_tailwind_index_tsx.chunk.js.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16d8c51245904c44e9c09603998ba8fe 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: a6814ccfd69dca246adc5eab902a45db, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/Resources/react/static/media.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fe6bbe47ea665f458f97caaa192abb1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/react/static/media/bg.png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/react/static/media/bg.png.png -------------------------------------------------------------------------------- /Assets/Resources/react/static/media/check.4701752daa56435b75dc4edd7886d403.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Assets/Resources/react/static/media/check.4701752daa56435b75dc4edd7886d403.svg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1662f2585cee2ba46b725543461b08de 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3} 11 | svgType: 0 12 | texturedSpriteMeshType: 0 13 | svgPixelsPerUnit: 100 14 | gradientResolution: 64 15 | alignment: 0 16 | customPivot: {x: 0, y: 0} 17 | generatePhysicsShape: 0 18 | viewportOptions: 0 19 | preserveViewport: 0 20 | advancedMode: 0 21 | predefinedResolutionIndex: 1 22 | targetResolution: 1080 23 | resolutionMultiplier: 1 24 | stepDistance: 10 25 | samplingStepDistance: 100 26 | maxCordDeviationEnabled: 0 27 | maxCordDeviation: 1 28 | maxTangentAngleEnabled: 0 29 | maxTangentAngle: 5 30 | keepTextureAspectRatio: 1 31 | textureSize: 256 32 | textureWidth: 256 33 | textureHeight: 256 34 | wrapMode: 0 35 | filterMode: 1 36 | sampleCount: 4 37 | preserveSVGImageAspect: 0 38 | useSVGPixelsPerUnit: 0 39 | spriteData: 40 | TessellationDetail: 0 41 | SpriteRect: 42 | name: 43 | originalName: 44 | pivot: {x: 0, y: 0} 45 | alignment: 0 46 | border: {x: 0, y: 0, z: 0, w: 0} 47 | customData: 48 | rect: 49 | serializedVersion: 2 50 | x: 0 51 | y: 0 52 | width: 0 53 | height: 0 54 | spriteID: 40764c75af34f8c44bf39f85318a7226 55 | PhysicsOutlines: [] 56 | -------------------------------------------------------------------------------- /Assets/Resources/react/uitoolkit.js.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60fee6ad071b08b4e9667fa2e39697d8 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: a6814ccfd69dca246adc5eab902a45db, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/Resources/ryu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/ryu.png -------------------------------------------------------------------------------- /Assets/Resources/ryu.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4cce8aaca0d7904ea659e431b97b250 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: 1 36 | aniso: 1 37 | mipBias: 0 38 | wrapU: 1 39 | wrapV: 1 40 | wrapW: 1 41 | nPOTScale: 0 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 1 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 1 54 | spriteTessellationDetail: -1 55 | textureType: 8 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 16384 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | - serializedVersion: 3 79 | buildTarget: Standalone 80 | maxTextureSize: 16384 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | forceMaximumCompressionQuality_BC6H_BC7: 0 90 | spriteSheet: 91 | serializedVersion: 2 92 | sprites: [] 93 | outline: [] 94 | physicsShape: [] 95 | bones: [] 96 | spriteID: 5e97eb03825dee720800000000000000 97 | internalID: 0 98 | vertices: [] 99 | indices: 100 | edges: [] 101 | weights: [] 102 | secondaryTextures: [] 103 | spritePackingTag: 104 | pSDRemoveMatte: 0 105 | pSDShowRemoveMatteOption: 0 106 | userData: 107 | assetBundleName: 108 | assetBundleVariant: 109 | -------------------------------------------------------------------------------- /Assets/Resources/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Resources/star.png -------------------------------------------------------------------------------- /Assets/Resources/star.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 000dbed3d1c53ff40b2e49e0f1297e80 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: 1 36 | aniso: 1 37 | mipBias: 0 38 | wrapU: 1 39 | wrapV: 1 40 | wrapW: 1 41 | nPOTScale: 0 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 1 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 1 54 | spriteTessellationDetail: -1 55 | textureType: 8 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 0 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | - serializedVersion: 3 79 | buildTarget: Standalone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 0 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | forceMaximumCompressionQuality_BC6H_BC7: 0 90 | - serializedVersion: 3 91 | buildTarget: WebGL 92 | maxTextureSize: 2048 93 | resizeAlgorithm: 0 94 | textureFormat: -1 95 | textureCompression: 0 96 | compressionQuality: 50 97 | crunchedCompression: 0 98 | allowsAlphaSplitting: 0 99 | overridden: 0 100 | androidETC2FallbackOverride: 0 101 | forceMaximumCompressionQuality_BC6H_BC7: 0 102 | - serializedVersion: 3 103 | buildTarget: Android 104 | maxTextureSize: 2048 105 | resizeAlgorithm: 0 106 | textureFormat: -1 107 | textureCompression: 0 108 | compressionQuality: 50 109 | crunchedCompression: 0 110 | allowsAlphaSplitting: 0 111 | overridden: 0 112 | androidETC2FallbackOverride: 0 113 | forceMaximumCompressionQuality_BC6H_BC7: 0 114 | spriteSheet: 115 | serializedVersion: 2 116 | sprites: [] 117 | outline: [] 118 | physicsShape: [] 119 | bones: [] 120 | spriteID: 5e97eb03825dee720800000000000000 121 | internalID: 0 122 | vertices: [] 123 | indices: 124 | edges: [] 125 | weights: [] 126 | secondaryTextures: [] 127 | spritePackingTag: 128 | pSDRemoveMatte: 0 129 | pSDShowRemoveMatteOption: 0 130 | userData: 131 | assetBundleName: 132 | assetBundleVariant: 133 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b7ba77c7169f38449717c68bc79cfa4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/HTML.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 806389aa847d49c46b6d04aeddc53f60 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb52c54f2cb94c848a61c1627cf10068 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Internal/Previewer.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4618dbd3ce4fa5d4e80c5c69d344b40f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Internal/WebInjectable.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7538a29573b1e994099b6ccbe6757a39 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/MainScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/UIToolkit.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08230be0559de994a94b60eee89b3adc 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/VR.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f8eb9cefd1ca0444b5dde06b6169c9f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Web.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cd6331b49397424794a8054f38f5e2f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Web/LightingData.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/Scenes/Web/LightingData.asset -------------------------------------------------------------------------------- /Assets/Scenes/Web/LightingData.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 176af8e0e01cd4542a11457174575939 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 112000000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/WorldCanvas.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a659f27f34919584b8512f143fcf9aff 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71e0197ff01b46a42a951b2a8ce73ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/CameraRotater.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class CameraRotater : MonoBehaviour 4 | { 5 | void Update() 6 | { 7 | transform.Rotate(new Vector3(0, Time.deltaTime * 40, 0)); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/CameraRotater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 321d319596e07ea4fbf3c04ccb0b91d1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ExampleCustomComponent.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 522f5f576763f244f906b78a7bb89409 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/ExampleCustomComponent/CustomButtonComponent.cs: -------------------------------------------------------------------------------- 1 | using ReactUnity.Styling; 2 | using ReactUnity.UGUI; 3 | using UnityEngine; 4 | 5 | public class CustomButtonComponent : ButtonComponent 6 | { 7 | public CustomButtonComponent(UGUIContext context, Color backgroundColor) : base(context) 8 | { 9 | Style[StyleProperties.backgroundColor] = backgroundColor; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ExampleCustomComponent/CustomButtonComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2f50929aacf1214b8251794e73797a9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ExampleCustomComponent/CustomComponentInitializer.cs: -------------------------------------------------------------------------------- 1 | using ReactUnity.UGUI; 2 | using UnityEngine; 3 | 4 | public class CustomComponentInitializer : MonoBehaviour 5 | { 6 | public ReactRendererUGUI reactUnity; 7 | public Color customButtonColor; 8 | 9 | void Start() 10 | { 11 | UGUIContext.ComponentCreators["button"] = (type, text, context) => new CustomButtonComponent(context, Color.red); 12 | UGUIContext.ComponentCreators["customButton"] = (type, text, context) => new CustomButtonComponent(context, customButtonColor); 13 | 14 | reactUnity.enabled = true; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Scripts/ExampleCustomComponent/CustomComponentInitializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84e6974cb591c604985b02c38a183463 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/FaceAtCamera.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class FaceAtCamera : MonoBehaviour 4 | { 5 | public Canvas menuCanvas; 6 | public Camera playerCamera; 7 | 8 | void Update() 9 | { 10 | menuCanvas.transform.LookAt(playerCamera.transform); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/Scripts/FaceAtCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a484c82bc0b5288458934ceccb7efefa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/InteropTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using ReactUnity.Helpers; 3 | using ReactUnity.Reactive; 4 | using ReactUnity.UGUI; 5 | using UnityEngine; 6 | using UnityEngine.InputSystem; 7 | using UnityEngine.InputSystem.Utilities; 8 | 9 | namespace MyInterop 10 | { 11 | public class InteropTest : MonoBehaviour 12 | { 13 | public ReactAction OnKeyPress = new ReactAction(); 14 | IDisposable dispose; 15 | 16 | public ReactiveValue DeltaTime = new ReactiveValue(); 17 | 18 | [Obsolete] 19 | public Action AddKeyPressListener(object callback) => OnKeyPress.AddListener(callback); 20 | 21 | void OnEnable() 22 | { 23 | var ctx = GetComponent(); 24 | if (ctx) 25 | { 26 | ctx.AdvancedOptions.AfterStart.AddListener(() => { 27 | 28 | dispose = InputSystem.onAnyButtonPress.Call(x => { 29 | OnKeyPress?.Invoke(x.displayName); 30 | ctx.Context?.Script?.WebGLCompatDispatchEvent("OnKeyPress", x.displayName); 31 | }); 32 | }); 33 | } 34 | } 35 | 36 | private void OnDestroy() 37 | { 38 | dispose?.Dispose(); 39 | } 40 | 41 | public static void TestDebug() 42 | { 43 | Debug.Log("Interop Test Works"); 44 | } 45 | 46 | void Update() 47 | { 48 | DeltaTime.Value = Time.deltaTime; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Assets/Scripts/InteropTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5867f942a10bd8e439c4be118d38bf6f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactWebBridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1d423a64ae31374b85821d9a52e9db3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/VREnabler.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | using UnityEngine.XR.Management; 4 | 5 | public class VREnabler : MonoBehaviour 6 | { 7 | public string deviceName = "Oculus"; 8 | 9 | Coroutine StartXR() 10 | { 11 | return StartCoroutine(startVRRoutine()); 12 | IEnumerator startVRRoutine() 13 | { 14 | // Add error handlers for both Instance and Manager 15 | var xrManager = XRGeneralSettings.Instance.Manager; 16 | if (!xrManager.isInitializationComplete) 17 | yield return xrManager.InitializeLoader(); 18 | if (xrManager.activeLoader != null) 19 | xrManager.StartSubsystems(); 20 | // Add else with error handling 21 | } 22 | } 23 | void StopXR() 24 | { 25 | var xrManager = XRGeneralSettings.Instance.Manager; 26 | if (!xrManager.isInitializationComplete) 27 | return; // Safety check 28 | xrManager.StopSubsystems(); 29 | xrManager.DeinitializeLoader(); 30 | } 31 | 32 | private void Start() 33 | { 34 | StartXR(); 35 | } 36 | 37 | private void OnDestroy() 38 | { 39 | StopXR(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Assets/Scripts/VREnabler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 114457e221274ab418cac8917bbfd27c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54d1bd14bd3ca042bd867b519fee8cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab70aee4d56447429c680537fbf93ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c 3 | timeCreated: 1484171296 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/TextMesh Pro/Fonts/LiberationSans.ttf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3265ab4bf004d28a9537516768c1c75 3 | timeCreated: 1484171297 4 | licenseType: Pro 5 | TrueTypeFontImporter: 6 | serializedVersion: 2 7 | fontSize: 16 8 | forceTextureCase: -2 9 | characterSpacing: 1 10 | characterPadding: 0 11 | includeFontData: 1 12 | use2xBehaviour: 0 13 | fontNames: [] 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | userData: 18 | assetBundleName: 19 | assetBundleVariant: 20 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 243e06394e614e5d99fab26083b707fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731f1baa9d144a9897cb1d341c2092b8 3 | folderAsset: yes 4 | timeCreated: 1442040525 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Drop Shadow 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON UNDERLAY_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _DiffusePower: 1 55 | - _FaceDilate: 0.1 56 | - _FaceUVSpeedX: 0 57 | - _FaceUVSpeedY: 0 58 | - _GlowInner: 0.05 59 | - _GlowOffset: 0 60 | - _GlowOuter: 0.05 61 | - _GlowPower: 0.75 62 | - _GradientScale: 10 63 | - _LightAngle: 3.1416 64 | - _MaskSoftnessX: 0 65 | - _MaskSoftnessY: 0 66 | - _OutlineSoftness: 0 67 | - _OutlineUVSpeedX: 0 68 | - _OutlineUVSpeedY: 0 69 | - _OutlineWidth: 0.1 70 | - _PerspectiveFilter: 0.875 71 | - _Reflectivity: 10 72 | - _ScaleRatioA: 0.9 73 | - _ScaleRatioB: 0.73125 74 | - _ScaleRatioC: 0.64125 75 | - _ScaleX: 1 76 | - _ScaleY: 1 77 | - _ShaderFlags: 0 78 | - _Sharpness: 0 79 | - _SpecularPower: 2 80 | - _Stencil: 0 81 | - _StencilComp: 8 82 | - _StencilOp: 0 83 | - _StencilReadMask: 255 84 | - _StencilWriteMask: 255 85 | - _TextureHeight: 1024 86 | - _TextureWidth: 1024 87 | - _UnderlayDilate: 0 88 | - _UnderlayOffsetX: 0.5 89 | - _UnderlayOffsetY: -0.5 90 | - _UnderlaySoftness: 0.05 91 | - _VertexOffsetX: 0 92 | - _VertexOffsetY: 0 93 | - _WeightBold: 0.75 94 | - _WeightNormal: 0 95 | m_Colors: 96 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 97 | - _Color: {r: 1, g: 1, b: 1, a: 1} 98 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 99 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 100 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 101 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 102 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 104 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 105 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 106 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 107 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0 3 | timeCreated: 1484172806 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e498d1c8094910479dc3e1b768306a4 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Outline 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _FaceDilate: 0.1 55 | - _FaceUVSpeedX: 0 56 | - _FaceUVSpeedY: 0 57 | - _GlowInner: 0.05 58 | - _GlowOffset: 0 59 | - _GlowOuter: 0.05 60 | - _GlowPower: 0.75 61 | - _GradientScale: 10 62 | - _LightAngle: 3.1416 63 | - _MaskSoftnessX: 0 64 | - _MaskSoftnessY: 0 65 | - _OutlineSoftness: 0 66 | - _OutlineUVSpeedX: 0 67 | - _OutlineUVSpeedY: 0 68 | - _OutlineWidth: 0.1 69 | - _PerspectiveFilter: 0.875 70 | - _Reflectivity: 10 71 | - _ScaleRatioA: 0.9 72 | - _ScaleRatioB: 0.73125 73 | - _ScaleRatioC: 0.64125 74 | - _ScaleX: 1 75 | - _ScaleY: 1 76 | - _ShaderFlags: 0 77 | - _Sharpness: 0 78 | - _SpecularPower: 2 79 | - _Stencil: 0 80 | - _StencilComp: 8 81 | - _StencilOp: 0 82 | - _StencilReadMask: 255 83 | - _StencilWriteMask: 255 84 | - _TextureHeight: 1024 85 | - _TextureWidth: 1024 86 | - _UnderlayDilate: 0 87 | - _UnderlayOffsetX: 0 88 | - _UnderlayOffsetY: 0 89 | - _UnderlaySoftness: 0 90 | - _VertexOffsetX: 0 91 | - _VertexOffsetY: 0 92 | - _WeightBold: 0.75 93 | - _WeightNormal: 0 94 | m_Colors: 95 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 96 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 97 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 98 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 99 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 100 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 101 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 102 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 104 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 105 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79459efec17a4d00a321bdcc27bbc385 3 | timeCreated: 1484172856 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f586378b4e144a9851e7b34d9b748ee 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt: -------------------------------------------------------------------------------- 1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fade42e8bc714b018fac513c043d323b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt: -------------------------------------------------------------------------------- 1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇$¥₩ # -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82c1b31c7e74239bff1220585707d2b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99f836c9cb9345dba2e72c4a1f2d0695 3 | folderAsset: yes 4 | timeCreated: 1436068007 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48bb5f55d8670e349b6e614913f9d910 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3b057af24249748ff873be7fafee47 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e987d567d4e2c824d754223b3f3b0 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd89cf5b9246416f84610a006f916af7 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Masking.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1ede39bf3643ee8e493720e4259791 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a02a7d8c237544f1962732b55a9aebf1 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe393ace9b354375a9cb14cdbbc28be4 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader: -------------------------------------------------------------------------------- 1 | // Simplified version of the SDF Surface shader : 2 | // - No support for Bevel, Bump or envmap 3 | // - Diffuse only lighting 4 | // - Fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH. 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field (Surface)" { 7 | 8 | Properties { 9 | _FaceTex ("Fill Texture", 2D) = "white" {} 10 | _FaceColor ("Fill Color", Color) = (1,1,1,1) 11 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 12 | 13 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 14 | _OutlineTex ("Outline Texture", 2D) = "white" {} 15 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 16 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 17 | 18 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 19 | _GlowOffset ("Offset", Range(-1,1)) = 0 20 | _GlowInner ("Inner", Range(0,1)) = 0.05 21 | _GlowOuter ("Outer", Range(0,1)) = 0.05 22 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 23 | 24 | _WeightNormal ("Weight Normal", float) = 0 25 | _WeightBold ("Weight Bold", float) = 0.5 26 | 27 | // Should not be directly exposed to the user 28 | _ShaderFlags ("Flags", float) = 0 29 | _ScaleRatioA ("Scale RatioA", float) = 1 30 | _ScaleRatioB ("Scale RatioB", float) = 1 31 | _ScaleRatioC ("Scale RatioC", float) = 1 32 | 33 | _MainTex ("Font Atlas", 2D) = "white" {} 34 | _TextureWidth ("Texture Width", float) = 512 35 | _TextureHeight ("Texture Height", float) = 512 36 | _GradientScale ("Gradient Scale", float) = 5.0 37 | _ScaleX ("Scale X", float) = 1.0 38 | _ScaleY ("Scale Y", float) = 1.0 39 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 40 | _Sharpness ("Sharpness", Range(-1,1)) = 0 41 | 42 | _VertexOffsetX ("Vertex OffsetX", float) = 0 43 | _VertexOffsetY ("Vertex OffsetY", float) = 0 44 | 45 | _CullMode ("Cull Mode", Float) = 0 46 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 47 | //_MaskSoftness ("Mask Softness", float) = 0 48 | } 49 | 50 | SubShader { 51 | 52 | Tags { 53 | "Queue"="Transparent" 54 | "IgnoreProjector"="True" 55 | "RenderType"="Transparent" 56 | } 57 | 58 | LOD 300 59 | Cull [_CullMode] 60 | 61 | CGPROGRAM 62 | #pragma surface PixShader Lambert alpha:blend vertex:VertShader noforwardadd nolightmap nodirlightmap 63 | #pragma target 3.0 64 | #pragma shader_feature __ GLOW_ON 65 | 66 | #include "TMPro_Properties.cginc" 67 | #include "TMPro.cginc" 68 | 69 | half _FaceShininess; 70 | half _OutlineShininess; 71 | 72 | struct Input 73 | { 74 | fixed4 color : COLOR; 75 | float2 uv_MainTex; 76 | float2 uv2_FaceTex; 77 | float2 uv2_OutlineTex; 78 | float2 param; // Weight, Scale 79 | float3 viewDirEnv; 80 | }; 81 | 82 | #include "TMPro_Surface.cginc" 83 | 84 | ENDCG 85 | 86 | // Pass to render object as a shadow caster 87 | Pass 88 | { 89 | Name "Caster" 90 | Tags { "LightMode" = "ShadowCaster" } 91 | Offset 1, 1 92 | 93 | Fog {Mode Off} 94 | ZWrite On ZTest LEqual Cull Off 95 | 96 | CGPROGRAM 97 | #pragma vertex vert 98 | #pragma fragment frag 99 | #pragma multi_compile_shadowcaster 100 | #include "UnityCG.cginc" 101 | 102 | struct v2f 103 | { 104 | V2F_SHADOW_CASTER; 105 | float2 uv : TEXCOORD1; 106 | float2 uv2 : TEXCOORD3; 107 | float alphaClip : TEXCOORD2; 108 | }; 109 | 110 | uniform float4 _MainTex_ST; 111 | uniform float4 _OutlineTex_ST; 112 | float _OutlineWidth; 113 | float _FaceDilate; 114 | float _ScaleRatioA; 115 | 116 | v2f vert( appdata_base v ) 117 | { 118 | v2f o; 119 | TRANSFER_SHADOW_CASTER(o) 120 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 121 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 122 | o.alphaClip = o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 123 | return o; 124 | } 125 | 126 | uniform sampler2D _MainTex; 127 | 128 | float4 frag(v2f i) : COLOR 129 | { 130 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 131 | clip(texcol.a - i.alphaClip); 132 | SHADOW_CASTER_FRAGMENT(i) 133 | } 134 | ENDCG 135 | } 136 | } 137 | 138 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 139 | } 140 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85187c2149c549c5b33f0cdb02836b17 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ada0af4f174f0694ca6a487b8f543d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e6db2ebdc24f95958faec2be5558d6 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Sprite" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Sprite Texture", 2D) = "white" {} 6 | _Color ("Tint", Color) = (1,1,1,1) 7 | 8 | _StencilComp ("Stencil Comparison", Float) = 8 9 | _Stencil ("Stencil ID", Float) = 0 10 | _StencilOp ("Stencil Operation", Float) = 0 11 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 12 | _StencilReadMask ("Stencil Read Mask", Float) = 255 13 | 14 | _CullMode ("Cull Mode", Float) = 0 15 | _ColorMask ("Color Mask", Float) = 15 16 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 17 | 18 | [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 19 | } 20 | 21 | SubShader 22 | { 23 | Tags 24 | { 25 | "Queue"="Transparent" 26 | "IgnoreProjector"="True" 27 | "RenderType"="Transparent" 28 | "PreviewType"="Plane" 29 | "CanUseSpriteAtlas"="True" 30 | } 31 | 32 | Stencil 33 | { 34 | Ref [_Stencil] 35 | Comp [_StencilComp] 36 | Pass [_StencilOp] 37 | ReadMask [_StencilReadMask] 38 | WriteMask [_StencilWriteMask] 39 | } 40 | 41 | Cull [_CullMode] 42 | Lighting Off 43 | ZWrite Off 44 | ZTest [unity_GUIZTestMode] 45 | Blend SrcAlpha OneMinusSrcAlpha 46 | ColorMask [_ColorMask] 47 | 48 | Pass 49 | { 50 | Name "Default" 51 | CGPROGRAM 52 | #pragma vertex vert 53 | #pragma fragment frag 54 | #pragma target 2.0 55 | 56 | #include "UnityCG.cginc" 57 | #include "UnityUI.cginc" 58 | 59 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 60 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 61 | 62 | struct appdata_t 63 | { 64 | float4 vertex : POSITION; 65 | float4 color : COLOR; 66 | float2 texcoord : TEXCOORD0; 67 | UNITY_VERTEX_INPUT_INSTANCE_ID 68 | }; 69 | 70 | struct v2f 71 | { 72 | float4 vertex : SV_POSITION; 73 | fixed4 color : COLOR; 74 | float2 texcoord : TEXCOORD0; 75 | float4 worldPosition : TEXCOORD1; 76 | float4 mask : TEXCOORD2; 77 | UNITY_VERTEX_OUTPUT_STEREO 78 | }; 79 | 80 | sampler2D _MainTex; 81 | fixed4 _Color; 82 | fixed4 _TextureSampleAdd; 83 | float4 _ClipRect; 84 | float4 _MainTex_ST; 85 | float _UIMaskSoftnessX; 86 | float _UIMaskSoftnessY; 87 | int _UIVertexColorAlwaysGammaSpace; 88 | 89 | v2f vert(appdata_t v) 90 | { 91 | v2f OUT; 92 | UNITY_SETUP_INSTANCE_ID(v); 93 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); 94 | float4 vPosition = UnityObjectToClipPos(v.vertex); 95 | OUT.worldPosition = v.vertex; 96 | OUT.vertex = vPosition; 97 | 98 | float2 pixelSize = vPosition.w; 99 | pixelSize /= abs(mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy)); 100 | 101 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 102 | OUT.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex); 103 | OUT.mask = half4(v.vertex.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_UIMaskSoftnessX, _UIMaskSoftnessY) + abs(pixelSize.xy))); 104 | 105 | if (_UIVertexColorAlwaysGammaSpace && !IsGammaSpace()) 106 | { 107 | v.color.rgb = UIGammaToLinear(v.color.rgb); 108 | } 109 | OUT.color = v.color * _Color; 110 | return OUT; 111 | } 112 | 113 | fixed4 frag(v2f IN) : SV_Target 114 | { 115 | half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; 116 | 117 | #if UNITY_UI_CLIP_RECT 118 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 119 | color *= m.x * m.y; 120 | #endif 121 | 122 | #ifdef UNITY_UI_ALPHACLIP 123 | clip (color.a - 0.001); 124 | #endif 125 | 126 | return color; 127 | } 128 | ENDCG 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf81c85f95fe47e1a27f6ae460cf182c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc: -------------------------------------------------------------------------------- 1 | float2 UnpackUV(float uv) 2 | { 3 | float2 output; 4 | output.x = floor(uv / 4096); 5 | output.y = uv - 4096 * output.x; 6 | 7 | return output * 0.001953125; 8 | } 9 | 10 | fixed4 GetColor(half d, fixed4 faceColor, fixed4 outlineColor, half outline, half softness) 11 | { 12 | half faceAlpha = 1-saturate((d - outline * 0.5 + softness * 0.5) / (1.0 + softness)); 13 | half outlineAlpha = saturate((d + outline * 0.5)) * sqrt(min(1.0, outline)); 14 | 15 | faceColor.rgb *= faceColor.a; 16 | outlineColor.rgb *= outlineColor.a; 17 | 18 | faceColor = lerp(faceColor, outlineColor, outlineAlpha); 19 | 20 | faceColor *= faceAlpha; 21 | 22 | return faceColor; 23 | } 24 | 25 | float3 GetSurfaceNormal(float4 h, float bias) 26 | { 27 | bool raisedBevel = step(1, fmod(_ShaderFlags, 2)); 28 | 29 | h += bias+_BevelOffset; 30 | 31 | float bevelWidth = max(.01, _OutlineWidth+_BevelWidth); 32 | 33 | // Track outline 34 | h -= .5; 35 | h /= bevelWidth; 36 | h = saturate(h+.5); 37 | 38 | if(raisedBevel) h = 1 - abs(h*2.0 - 1.0); 39 | h = lerp(h, sin(h*3.141592/2.0), _BevelRoundness); 40 | h = min(h, 1.0-_BevelClamp); 41 | h *= _Bevel * bevelWidth * _GradientScale * -2.0; 42 | 43 | float3 va = normalize(float3(1.0, 0.0, h.y - h.x)); 44 | float3 vb = normalize(float3(0.0, -1.0, h.w - h.z)); 45 | 46 | return cross(va, vb); 47 | } 48 | 49 | float3 GetSurfaceNormal(float2 uv, float bias, float3 delta) 50 | { 51 | // Read "height field" 52 | float4 h = {tex2D(_MainTex, uv - delta.xz).a, 53 | tex2D(_MainTex, uv + delta.xz).a, 54 | tex2D(_MainTex, uv - delta.zy).a, 55 | tex2D(_MainTex, uv + delta.zy).a}; 56 | 57 | return GetSurfaceNormal(h, bias); 58 | } 59 | 60 | float3 GetSpecular(float3 n, float3 l) 61 | { 62 | float spec = pow(max(0.0, dot(n, l)), _Reflectivity); 63 | return _SpecularColor.rgb * spec * _SpecularPower; 64 | } 65 | 66 | float4 GetGlowColor(float d, float scale) 67 | { 68 | float glow = d - (_GlowOffset*_ScaleRatioB) * 0.5 * scale; 69 | float t = lerp(_GlowInner, (_GlowOuter * _ScaleRatioB), step(0.0, glow)) * 0.5 * scale; 70 | glow = saturate(abs(glow/(1.0 + t))); 71 | glow = 1.0-pow(glow, _GlowPower); 72 | glow *= sqrt(min(1.0, t)); // Fade off glow thinner than 1 screen pixel 73 | return float4(_GlowColor.rgb, saturate(_GlowColor.a * glow * 2)); 74 | } 75 | 76 | float4 BlendARGB(float4 overlying, float4 underlying) 77 | { 78 | overlying.rgb *= overlying.a; 79 | underlying.rgb *= underlying.a; 80 | float3 blended = overlying.rgb + ((1-overlying.a)*underlying.rgb); 81 | float alpha = underlying.a + (1-underlying.a)*overlying.a; 82 | return float4(blended, alpha); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407bc68d299748449bbf7f48ee690f8d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: Version 2.0 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc: -------------------------------------------------------------------------------- 1 | // UI Editable properties 2 | uniform sampler2D _FaceTex; // Alpha : Signed Distance 3 | uniform float _FaceUVSpeedX; 4 | uniform float _FaceUVSpeedY; 5 | uniform fixed4 _FaceColor; // RGBA : Color + Opacity 6 | uniform float _FaceDilate; // v[ 0, 1] 7 | uniform float _OutlineSoftness; // v[ 0, 1] 8 | 9 | uniform sampler2D _OutlineTex; // RGBA : Color + Opacity 10 | uniform float _OutlineUVSpeedX; 11 | uniform float _OutlineUVSpeedY; 12 | uniform fixed4 _OutlineColor; // RGBA : Color + Opacity 13 | uniform float _OutlineWidth; // v[ 0, 1] 14 | 15 | uniform float _Bevel; // v[ 0, 1] 16 | uniform float _BevelOffset; // v[-1, 1] 17 | uniform float _BevelWidth; // v[-1, 1] 18 | uniform float _BevelClamp; // v[ 0, 1] 19 | uniform float _BevelRoundness; // v[ 0, 1] 20 | 21 | uniform sampler2D _BumpMap; // Normal map 22 | uniform float _BumpOutline; // v[ 0, 1] 23 | uniform float _BumpFace; // v[ 0, 1] 24 | 25 | uniform samplerCUBE _Cube; // Cube / sphere map 26 | uniform fixed4 _ReflectFaceColor; // RGB intensity 27 | uniform fixed4 _ReflectOutlineColor; 28 | //uniform float _EnvTiltX; // v[-1, 1] 29 | //uniform float _EnvTiltY; // v[-1, 1] 30 | uniform float3 _EnvMatrixRotation; 31 | uniform float4x4 _EnvMatrix; 32 | 33 | uniform fixed4 _SpecularColor; // RGB intensity 34 | uniform float _LightAngle; // v[ 0,Tau] 35 | uniform float _SpecularPower; // v[ 0, 1] 36 | uniform float _Reflectivity; // v[ 5, 15] 37 | uniform float _Diffuse; // v[ 0, 1] 38 | uniform float _Ambient; // v[ 0, 1] 39 | 40 | uniform fixed4 _UnderlayColor; // RGBA : Color + Opacity 41 | uniform float _UnderlayOffsetX; // v[-1, 1] 42 | uniform float _UnderlayOffsetY; // v[-1, 1] 43 | uniform float _UnderlayDilate; // v[-1, 1] 44 | uniform float _UnderlaySoftness; // v[ 0, 1] 45 | 46 | uniform fixed4 _GlowColor; // RGBA : Color + Intesity 47 | uniform float _GlowOffset; // v[-1, 1] 48 | uniform float _GlowOuter; // v[ 0, 1] 49 | uniform float _GlowInner; // v[ 0, 1] 50 | uniform float _GlowPower; // v[ 1, 1/(1+4*4)] 51 | 52 | // API Editable properties 53 | uniform float _ShaderFlags; 54 | uniform float _WeightNormal; 55 | uniform float _WeightBold; 56 | 57 | uniform float _ScaleRatioA; 58 | uniform float _ScaleRatioB; 59 | uniform float _ScaleRatioC; 60 | 61 | uniform float _VertexOffsetX; 62 | uniform float _VertexOffsetY; 63 | 64 | //uniform float _UseClipRect; 65 | uniform float _MaskID; 66 | uniform sampler2D _MaskTex; 67 | uniform float4 _MaskCoord; 68 | uniform float4 _ClipRect; // bottom left(x,y) : top right(z,w) 69 | uniform float _MaskSoftnessX; 70 | uniform float _MaskSoftnessY; 71 | 72 | // Font Atlas properties 73 | uniform sampler2D _MainTex; 74 | uniform float _TextureWidth; 75 | uniform float _TextureHeight; 76 | uniform float _GradientScale; 77 | uniform float _ScaleX; 78 | uniform float _ScaleY; 79 | uniform float _PerspectiveFilter; 80 | uniform float _Sharpness; 81 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3997e2241185407d80309a82f9148466 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc: -------------------------------------------------------------------------------- 1 | void VertShader(inout appdata_full v, out Input data) 2 | { 3 | v.vertex.x += _VertexOffsetX; 4 | v.vertex.y += _VertexOffsetY; 5 | 6 | UNITY_INITIALIZE_OUTPUT(Input, data); 7 | 8 | float bold = step(v.texcoord.w, 0); 9 | 10 | // Generate normal for backface 11 | float3 view = ObjSpaceViewDir(v.vertex); 12 | v.normal *= sign(dot(v.normal, view)); 13 | 14 | #if USE_DERIVATIVE 15 | data.param.y = 1; 16 | #else 17 | float4 vert = v.vertex; 18 | float4 vPosition = UnityObjectToClipPos(vert); 19 | float2 pixelSize = vPosition.w; 20 | 21 | pixelSize /= float2(_ScaleX, _ScaleY) * mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy); 22 | float scale = rsqrt(dot(pixelSize, pixelSize)); 23 | scale *= abs(v.texcoord.w) * _GradientScale * (_Sharpness + 1); 24 | scale = lerp(scale * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(v.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 25 | data.param.y = scale; 26 | #endif 27 | 28 | data.param.x = (lerp(_WeightNormal, _WeightBold, bold) / 4.0 + _FaceDilate) * _ScaleRatioA * 0.5; // 29 | data.viewDirEnv = mul((float3x3)_EnvMatrix, WorldSpaceViewDir(v.vertex)); 30 | } 31 | 32 | void PixShader(Input input, inout SurfaceOutput o) 33 | { 34 | 35 | #if USE_DERIVATIVE 36 | float2 pixelSize = float2(ddx(input.uv_MainTex.y), ddy(input.uv_MainTex.y)); 37 | pixelSize *= _TextureWidth * .75; 38 | float scale = rsqrt(dot(pixelSize, pixelSize)) * _GradientScale * (_Sharpness + 1); 39 | #else 40 | float scale = input.param.y; 41 | #endif 42 | 43 | // Signed distance 44 | float c = tex2D(_MainTex, input.uv_MainTex).a; 45 | float sd = (.5 - c - input.param.x) * scale + .5; 46 | float outline = _OutlineWidth*_ScaleRatioA * scale; 47 | float softness = _OutlineSoftness*_ScaleRatioA * scale; 48 | 49 | // Color & Alpha 50 | float4 faceColor = _FaceColor; 51 | float4 outlineColor = _OutlineColor; 52 | faceColor *= input.color; 53 | outlineColor.a *= input.color.a; 54 | faceColor *= tex2D(_FaceTex, float2(input.uv2_FaceTex.x + _FaceUVSpeedX * _Time.y, input.uv2_FaceTex.y + _FaceUVSpeedY * _Time.y)); 55 | outlineColor *= tex2D(_OutlineTex, float2(input.uv2_OutlineTex.x + _OutlineUVSpeedX * _Time.y, input.uv2_OutlineTex.y + _OutlineUVSpeedY * _Time.y)); 56 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 57 | faceColor.rgb /= max(faceColor.a, 0.0001); 58 | 59 | #if BEVEL_ON 60 | float3 delta = float3(1.0 / _TextureWidth, 1.0 / _TextureHeight, 0.0); 61 | 62 | float4 smp4x = {tex2D(_MainTex, input.uv_MainTex - delta.xz).a, 63 | tex2D(_MainTex, input.uv_MainTex + delta.xz).a, 64 | tex2D(_MainTex, input.uv_MainTex - delta.zy).a, 65 | tex2D(_MainTex, input.uv_MainTex + delta.zy).a }; 66 | 67 | // Face Normal 68 | float3 n = GetSurfaceNormal(smp4x, input.param.x); 69 | 70 | // Bumpmap 71 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.uv2_FaceTex.xy)).xyz; 72 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 73 | bump = lerp(float3(0, 0, 1), bump, faceColor.a); 74 | n = normalize(n - bump); 75 | 76 | // Cubemap reflection 77 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDirEnv, mul((float3x3)unity_ObjectToWorld, n))); 78 | float3 emission = reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 79 | #else 80 | float3 n = float3(0, 0, -1); 81 | float3 emission = float3(0, 0, 0); 82 | #endif 83 | 84 | #if GLOW_ON 85 | float4 glowColor = GetGlowColor(sd, scale); 86 | glowColor.a *= input.color.a; 87 | emission += glowColor.rgb*glowColor.a; 88 | faceColor = BlendARGB(glowColor, faceColor); 89 | faceColor.rgb /= max(faceColor.a, 0.0001); 90 | #endif 91 | 92 | // Set Standard output structure 93 | o.Albedo = faceColor.rgb; 94 | o.Normal = -n; 95 | o.Emission = emission; 96 | o.Specular = lerp(_FaceShininess, _OutlineShininess, saturate(sd + outline * 0.5)); 97 | o.Gloss = 1; 98 | o.Alpha = faceColor.a; 99 | } 100 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d930090c0cd643c7b55f19a38538c162 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512a49d95c0c4332bdd98131869c23c9 3 | folderAsset: yes 4 | timeCreated: 1441876896 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c41005c129ba4d66911b75229fd70b45 3 | timeCreated: 1480316912 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aecb92fff08436c8303b10eab8da368 3 | folderAsset: yes 4 | timeCreated: 1441876950 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f952c082cb03451daed3ee968ac6c63e 3 | timeCreated: 1432805430 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3} 13 | m_Name: TMP Settings 14 | m_EditorClassIdentifier: 15 | assetVersion: 2 16 | m_TextWrappingMode: 1 17 | m_enableKerning: 1 18 | m_ActiveFontFeatures: 00000000 19 | m_enableExtraPadding: 0 20 | m_enableTintAllSprites: 0 21 | m_enableParseEscapeCharacters: 1 22 | m_EnableRaycastTarget: 1 23 | m_GetFontFeaturesAtRuntime: 1 24 | m_missingGlyphCharacter: 0 25 | m_ClearDynamicDataOnBuild: 1 26 | m_warningsDisabled: 0 27 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 28 | m_defaultFontAssetPath: Fonts & Materials/ 29 | m_defaultFontSize: 36 30 | m_defaultAutoSizeMinRatio: 0.5 31 | m_defaultAutoSizeMaxRatio: 2 32 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} 33 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50} 34 | m_autoSizeTextContainer: 0 35 | m_IsTextObjectScaleStatic: 0 36 | m_fallbackFontAssets: [] 37 | m_matchMaterialPreset: 1 38 | m_HideSubTextObjects: 0 39 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, 40 | type: 2} 41 | m_defaultSpriteAssetPath: Sprite Assets/ 42 | m_enableEmojiSupport: 1 43 | m_MissingCharacterSpriteUnicode: 0 44 | m_EmojiFallbackTextAssets: [] 45 | m_defaultColorGradientPresetsPath: Color Gradient Presets/ 46 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, 47 | type: 2} 48 | m_StyleSheetsResourcePath: 49 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3} 50 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, 51 | type: 3} 52 | m_UseModernHangulLineBreakingRules: 0 53 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5b5dff67a942289a9defa416b206f3 3 | timeCreated: 1436653997 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9f693669af91aa45ad615fc681ed29f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/SDFFunctions.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96de908384869cd409c75efa351d5edf 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF SSD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14eb328de4b8eb245bb7cea29e4ac00b 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-HDRP LIT.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca2ed216f98028c4dae6c5224a952b3c 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-HDRP UNLIT.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f63d574838ccfb44f84acc05fed0af48 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader: -------------------------------------------------------------------------------- 1 | // Simplified SDF shader: 2 | // - No Shading Option (bevel / bump / env map) 3 | // - No Glow Option 4 | // - Softness is applied on both side of the outline 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field SSD" { 7 | 8 | Properties { 9 | _FaceColor ("Face Color", Color) = (1,1,1,1) 10 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 11 | 12 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 13 | _OutlineWidth ("Outline Thickness", Range(0,1)) = 0 14 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 15 | 16 | _UnderlayColor ("Border Color", Color) = (0,0,0,.5) 17 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 18 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 19 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 20 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 21 | 22 | _WeightNormal ("Weight Normal", float) = 0 23 | _WeightBold ("Weight Bold", float) = .5 24 | 25 | _ShaderFlags ("Flags", float) = 0 26 | _ScaleRatioA ("Scale RatioA", float) = 1 27 | _ScaleRatioB ("Scale RatioB", float) = 1 28 | _ScaleRatioC ("Scale RatioC", float) = 1 29 | 30 | _MainTex ("Font Atlas", 2D) = "white" {} 31 | _TextureWidth ("Texture Width", float) = 512 32 | _TextureHeight ("Texture Height", float) = 512 33 | _GradientScale ("Gradient Scale", float) = 5 34 | _ScaleX ("Scale X", float) = 1 35 | _ScaleY ("Scale Y", float) = 1 36 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 37 | _Sharpness ("Sharpness", Range(-1,1)) = 0 38 | 39 | _VertexOffsetX ("Vertex OffsetX", float) = 0 40 | _VertexOffsetY ("Vertex OffsetY", float) = 0 41 | 42 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 43 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 44 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 45 | _MaskTex ("Mask Texture", 2D) = "white" {} 46 | _MaskInverse ("Inverse", float) = 0 47 | _MaskEdgeColor ("Edge Color", Color) = (1,1,1,1) 48 | _MaskEdgeSoftness ("Edge Softness", Range(0, 1)) = 0.01 49 | _MaskWipeControl ("Wipe Position", Range(0, 1)) = 0.5 50 | 51 | _StencilComp ("Stencil Comparison", Float) = 8 52 | _Stencil ("Stencil ID", Float) = 0 53 | _StencilOp ("Stencil Operation", Float) = 0 54 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 55 | _StencilReadMask ("Stencil Read Mask", Float) = 255 56 | 57 | _CullMode ("Cull Mode", Float) = 0 58 | _ColorMask ("Color Mask", Float) = 15 59 | } 60 | 61 | SubShader { 62 | Tags { 63 | "Queue"="Transparent" 64 | "IgnoreProjector"="True" 65 | "RenderType"="Transparent" 66 | } 67 | 68 | Stencil 69 | { 70 | Ref [_Stencil] 71 | Comp [_StencilComp] 72 | Pass [_StencilOp] 73 | ReadMask [_StencilReadMask] 74 | WriteMask [_StencilWriteMask] 75 | } 76 | 77 | Cull [_CullMode] 78 | ZWrite Off 79 | Lighting Off 80 | Fog { Mode Off } 81 | ZTest [unity_GUIZTestMode] 82 | Blend One OneMinusSrcAlpha 83 | ColorMask [_ColorMask] 84 | 85 | Pass { 86 | CGPROGRAM 87 | #pragma vertex VertShader 88 | #pragma fragment PixShader 89 | #pragma shader_feature __ OUTLINE_ON 90 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 91 | 92 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 93 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 94 | 95 | #include "UnityCG.cginc" 96 | #include "UnityUI.cginc" 97 | #include "TMPro_Properties.cginc" 98 | 99 | #include "TMPro_Mobile.cginc" 100 | 101 | ENDCG 102 | } 103 | } 104 | 105 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 106 | } 107 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8d12adcee749c344b8117cf7c7eb912 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile-2-Pass.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0178fcb869bafef4690d177d31d17db8 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-URP Lit.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3d800b099a06e0478fb790c5e79057a 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMP_SDF-URP Unlit.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 124c112a6e8f1a54e8b0870e881b56d8 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Shaders/TMPro_Mobile.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c334973cef89a9840b0b0c507e0377ab 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0603b6d5186471b96c778c3949c7ce2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt: -------------------------------------------------------------------------------- 1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/ 2 | 3 | Please visit their website to view the complete set of their emojis and review their licensing terms. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381dcb09d5029d14897e55f98031fca5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f05276190cf498a8153f6cbe761d4e6 3 | timeCreated: 1480316860 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/TextMesh Pro/Sprites/EmojiOne.png -------------------------------------------------------------------------------- /Assets/UI Toolkit.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d72db0d7fe54c64294b9458df0d51bd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UI Toolkit/PanelSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: PanelSettings 14 | m_EditorClassIdentifier: 15 | themeUss: {fileID: -4733365628477956816, guid: 5827889da7889804cbd452f4d69399d8, 16 | type: 3} 17 | m_TargetTexture: {fileID: 0} 18 | m_ScaleMode: 1 19 | m_Scale: 1 20 | m_ReferenceDpi: 96 21 | m_FallbackDpi: 96 22 | m_ReferenceResolution: {x: 1200, y: 800} 23 | m_ScreenMatchMode: 0 24 | m_Match: 0 25 | m_SortingOrder: 0 26 | m_TargetDisplay: 0 27 | m_ClearDepthStencil: 1 28 | m_ClearColor: 0 29 | m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0} 30 | m_DynamicAtlasSettings: 31 | m_MinAtlasSize: 64 32 | m_MaxAtlasSize: 4096 33 | m_MaxSubTextureSize: 64 34 | m_ActiveFilters: 31 35 | m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0} 36 | m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0} 37 | m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0} 38 | textSettings: {fileID: 0} 39 | -------------------------------------------------------------------------------- /Assets/UI Toolkit/PanelSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2de298c1e3f9ba48b8d8ceeae384194 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UI Toolkit/UnityThemes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06a03f0a916c9ca4ab4d3f8a7bbbb42f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss: -------------------------------------------------------------------------------- 1 | @import url("unity-theme://default"); -------------------------------------------------------------------------------- /Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5827889da7889804cbd452f4d69399d8 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12388, guid: 0000000000000000e000000000000000, type: 0} 11 | disableValidation: 0 12 | -------------------------------------------------------------------------------- /Assets/UniversalRenderPipelineGlobalSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cf39d411c5e16143a7c661ca09fa362 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/WSATestCertificate.pfx -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17054eecbf3dfe448b0e57ddd3724f90 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 250c389097534f347a8a923bbb8824a3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/Responsive.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97e0475eae9ec7e4cb898db47f84c782 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/Responsive/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{{ PRODUCT_NAME }}} 8 | 9 | 10 | 11 | 54 | 55 | 56 | 57 | 59 | 60 |
61 |
62 |
63 |
64 |
65 | 66 | 67 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/Responsive/index.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6c4243d50f20d9459337e33a9b8b73a 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/WebGLTemplates/Responsive/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/Assets/WebGLTemplates/Responsive/thumbnail.png -------------------------------------------------------------------------------- /Assets/WebGLTemplates/Responsive/thumbnail.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8f2f1ff45d06424195390163b5ab965 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/XR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 598cd00e84d99a54f95c203b813ad603 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16800d3ff9b1da0418d6b9a31cb0f706 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Mock HMD Loader.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 0660e8fc444734757ae6f6c40c2d33a0, type: 3} 13 | m_Name: Mock HMD Loader 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Mock HMD Loader.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5130c41c86fd3147813a519f0d793cf 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Oculus Loader.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 03bc68f14d65e7747a59d5ff74bd199b, type: 3} 13 | m_Name: Oculus Loader 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Oculus Loader.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee95f9a6863c5404c9a46c3f3e9329a3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Settings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0863c04d748d5514e8a531a655b96b27 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Settings/Mock HMD Build Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: c8bf066bf8a4947a1be502d267edb82f, type: 3} 13 | m_Name: Mock HMD Build Settings 14 | m_EditorClassIdentifier: 15 | renderMode: 1 16 | -------------------------------------------------------------------------------- /Assets/XR/Settings/Mock HMD Build Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d710cdcd1d3420b4495d3bc55b895ac8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Settings/Oculus Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: c353a8f1e58cf884584123914fe63cd5, type: 3} 13 | m_Name: Oculus Settings 14 | m_EditorClassIdentifier: 15 | m_StereoRenderingModeDesktop: 1 16 | m_StereoRenderingModeAndroid: 0 17 | SharedDepthBuffer: 1 18 | DashSupport: 1 19 | V2Signing: 1 20 | LowOverheadMode: 0 21 | ProtectedContext: 0 22 | FocusAware: 1 23 | OptimizeBufferDiscards: 1 24 | PhaseSync: 0 25 | TargetQuest: 1 26 | TargetQuest2: 1 27 | -------------------------------------------------------------------------------- /Assets/XR/Settings/Oculus Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b444055c82c3734b9984bab8a7d86b6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/XRGeneralSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-4055490961133184544 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} 13 | m_Name: Android Providers 14 | m_EditorClassIdentifier: 15 | m_RequiresSettingsUpdate: 0 16 | m_AutomaticLoading: 0 17 | m_AutomaticRunning: 0 18 | m_Loaders: [] 19 | --- !u!114 &-3710101752620394378 20 | MonoBehaviour: 21 | m_ObjectHideFlags: 0 22 | m_CorrespondingSourceObject: {fileID: 0} 23 | m_PrefabInstance: {fileID: 0} 24 | m_PrefabAsset: {fileID: 0} 25 | m_GameObject: {fileID: 0} 26 | m_Enabled: 1 27 | m_EditorHideFlags: 0 28 | m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} 29 | m_Name: Standalone Providers 30 | m_EditorClassIdentifier: 31 | m_RequiresSettingsUpdate: 0 32 | m_AutomaticLoading: 0 33 | m_AutomaticRunning: 0 34 | m_Loaders: 35 | - {fileID: 11400000, guid: ee95f9a6863c5404c9a46c3f3e9329a3, type: 2} 36 | --- !u!114 &11400000 37 | MonoBehaviour: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 0} 43 | m_Enabled: 1 44 | m_EditorHideFlags: 0 45 | m_Script: {fileID: 11500000, guid: d2dc886499c26824283350fa532d087d, type: 3} 46 | m_Name: XRGeneralSettings 47 | m_EditorClassIdentifier: 48 | Keys: 01000000070000000d000000 49 | Values: 50 | - {fileID: 6796495922915646465} 51 | - {fileID: 6086875204714979983} 52 | - {fileID: 6277738976817268266} 53 | --- !u!114 &6086875204714979983 54 | MonoBehaviour: 55 | m_ObjectHideFlags: 0 56 | m_CorrespondingSourceObject: {fileID: 0} 57 | m_PrefabInstance: {fileID: 0} 58 | m_PrefabAsset: {fileID: 0} 59 | m_GameObject: {fileID: 0} 60 | m_Enabled: 1 61 | m_EditorHideFlags: 0 62 | m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} 63 | m_Name: Android Settings 64 | m_EditorClassIdentifier: 65 | m_LoaderManagerInstance: {fileID: -4055490961133184544} 66 | m_InitManagerOnStart: 1 67 | --- !u!114 &6277738976817268266 68 | MonoBehaviour: 69 | m_ObjectHideFlags: 0 70 | m_CorrespondingSourceObject: {fileID: 0} 71 | m_PrefabInstance: {fileID: 0} 72 | m_PrefabAsset: {fileID: 0} 73 | m_GameObject: {fileID: 0} 74 | m_Enabled: 1 75 | m_EditorHideFlags: 0 76 | m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} 77 | m_Name: WebGL Settings 78 | m_EditorClassIdentifier: 79 | m_LoaderManagerInstance: {fileID: 7994331660857889607} 80 | m_InitManagerOnStart: 1 81 | --- !u!114 &6796495922915646465 82 | MonoBehaviour: 83 | m_ObjectHideFlags: 0 84 | m_CorrespondingSourceObject: {fileID: 0} 85 | m_PrefabInstance: {fileID: 0} 86 | m_PrefabAsset: {fileID: 0} 87 | m_GameObject: {fileID: 0} 88 | m_Enabled: 1 89 | m_EditorHideFlags: 0 90 | m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} 91 | m_Name: Standalone Settings 92 | m_EditorClassIdentifier: 93 | m_LoaderManagerInstance: {fileID: -3710101752620394378} 94 | m_InitManagerOnStart: 0 95 | --- !u!114 &7994331660857889607 96 | MonoBehaviour: 97 | m_ObjectHideFlags: 0 98 | m_CorrespondingSourceObject: {fileID: 0} 99 | m_PrefabInstance: {fileID: 0} 100 | m_PrefabAsset: {fileID: 0} 101 | m_GameObject: {fileID: 0} 102 | m_Enabled: 1 103 | m_EditorHideFlags: 0 104 | m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} 105 | m_Name: WebGL Providers 106 | m_EditorClassIdentifier: 107 | m_RequiresSettingsUpdate: 0 108 | m_AutomaticLoading: 0 109 | m_AutomaticRunning: 0 110 | m_Loaders: [] 111 | -------------------------------------------------------------------------------- /Assets/XR/XRGeneralSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08b65c77a1ecafd49a907bfd539ffe17 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XRI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e22ebea6da05bd548907be78fc2fbc68 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XRI/Settings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a021dfd9aaae6548a1d6f6b4797b5a1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20016ad8d3856b34ca160a13f99a976f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/Resources/InteractionLayerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 191492db6e452eb468b95433ec162164, type: 3} 13 | m_Name: InteractionLayerSettings 14 | m_EditorClassIdentifier: 15 | m_LayerNames: 16 | - Default 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 | - 43 | - 44 | - 45 | - 46 | - 47 | - 48 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/Resources/InteractionLayerSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8573fe07ce0e8194686a2f59bd0bab81 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/Resources/XRDeviceSimulatorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 690929a59dc7a42da9030305190d391f, type: 3} 13 | m_Name: XRDeviceSimulatorSettings 14 | m_EditorClassIdentifier: 15 | m_AutomaticallyInstantiateSimulatorPrefab: 0 16 | m_AutomaticallyInstantiateInEditorOnly: 1 17 | m_SimulatorPrefab: {fileID: 0} 18 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/Resources/XRDeviceSimulatorSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f7ebfce669a1144690606f9755e06ef 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/XRInteractionEditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2d38fb1463c5c804b8847c20e8873623, type: 3} 13 | m_Name: XRInteractionEditorSettings 14 | m_EditorClassIdentifier: 15 | m_InteractionLayerUpdaterShown: 1 16 | m_ShowOldInteractionLayerMaskInInspector: 0 17 | -------------------------------------------------------------------------------- /Assets/XRI/Settings/XRInteractionEditorSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4368d5f08dd0fab42b2aa77fd9b54f7a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/link.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Assets/link.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82bb2cf43b7e5458fb38160ac5acef2e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Gökhan Kurt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.reactunity.clearscript": "0.17.0", 4 | "com.reactunity.core": "0.19.10", 5 | "com.reactunity.jint": "0.17.0", 6 | "com.reactunity.quickjs": "0.19.0", 7 | "com.unity.2d.sprite": "1.0.0", 8 | "com.unity.device-simulator.devices": "1.0.0", 9 | "com.unity.editorcoroutines": "1.0.0", 10 | "com.unity.ide.visualstudio": "2.0.22", 11 | "com.unity.inputsystem": "1.11.2", 12 | "com.unity.mobile.android-logcat": "1.4.4", 13 | "com.unity.multiplayer.center": "1.0.0", 14 | "com.unity.profiling.core": "1.0.2", 15 | "com.unity.render-pipelines.universal": "17.0.3", 16 | "com.unity.test-framework": "1.4.5", 17 | "com.unity.test-framework.performance": "3.0.3", 18 | "com.unity.vectorgraphics": "2.0.0-preview.25", 19 | "com.unity.xr.interaction.toolkit": "3.0.7", 20 | "com.unity.xr.mock-hmd": "1.4.0-preview.2", 21 | "com.unity.xr.oculus": "4.4.0", 22 | "com.unity.modules.accessibility": "1.0.0", 23 | "com.unity.modules.ai": "1.0.0", 24 | "com.unity.modules.androidjni": "1.0.0", 25 | "com.unity.modules.animation": "1.0.0", 26 | "com.unity.modules.assetbundle": "1.0.0", 27 | "com.unity.modules.audio": "1.0.0", 28 | "com.unity.modules.cloth": "1.0.0", 29 | "com.unity.modules.director": "1.0.0", 30 | "com.unity.modules.imageconversion": "1.0.0", 31 | "com.unity.modules.imgui": "1.0.0", 32 | "com.unity.modules.jsonserialize": "1.0.0", 33 | "com.unity.modules.particlesystem": "1.0.0", 34 | "com.unity.modules.physics": "1.0.0", 35 | "com.unity.modules.physics2d": "1.0.0", 36 | "com.unity.modules.screencapture": "1.0.0", 37 | "com.unity.modules.terrain": "1.0.0", 38 | "com.unity.modules.terrainphysics": "1.0.0", 39 | "com.unity.modules.tilemap": "1.0.0", 40 | "com.unity.modules.ui": "1.0.0", 41 | "com.unity.modules.uielements": "1.0.0", 42 | "com.unity.modules.umbra": "1.0.0", 43 | "com.unity.modules.unityanalytics": "1.0.0", 44 | "com.unity.modules.unitywebrequest": "1.0.0", 45 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 46 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 47 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 48 | "com.unity.modules.unitywebrequestwww": "1.0.0", 49 | "com.unity.modules.vehicles": "1.0.0", 50 | "com.unity.modules.video": "1.0.0", 51 | "com.unity.modules.vr": "1.0.0", 52 | "com.unity.modules.wind": "1.0.0", 53 | "com.unity.modules.xr": "1.0.0" 54 | }, 55 | "testables": [ 56 | "com.reactunity.core", 57 | "com.unity.inputsystem" 58 | ], 59 | "scopedRegistries": [ 60 | { 61 | "name": "package.openupm.com", 62 | "url": "https://package.openupm.com", 63 | "scopes": [ 64 | "com.nosuchstudio.rtltmpro", 65 | "com.openupm", 66 | "com.reactunity", 67 | "com.reactunity.clearscript", 68 | "com.reactunity.core", 69 | "com.reactunity.jint", 70 | "com.reactunity.quickjs" 71 | ] 72 | } 73 | ] 74 | } 75 | -------------------------------------------------------------------------------- /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: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/BurstAotSettings_Android.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 4, 4 | "EnableBurstCompilation": true, 5 | "EnableOptimisations": true, 6 | "EnableSafetyChecks": false, 7 | "EnableDebugInAllBuilds": false, 8 | "DebugDataKind": 1, 9 | "EnableArmv9SecurityFeatures": false, 10 | "CpuMinTargetX32": 0, 11 | "CpuMaxTargetX32": 0, 12 | "CpuMinTargetX64": 0, 13 | "CpuMaxTargetX64": 0, 14 | "CpuTargetsArm64": 512, 15 | "OptimizeFor": 0 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ProjectSettings/BurstAotSettings_StandaloneWindows.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 4, 4 | "EnableBurstCompilation": true, 5 | "EnableOptimisations": true, 6 | "EnableSafetyChecks": false, 7 | "EnableDebugInAllBuilds": false, 8 | "CpuMinTargetX32": 0, 9 | "CpuMaxTargetX32": 0, 10 | "CpuMinTargetX64": 0, 11 | "CpuMaxTargetX64": 0, 12 | "CpuTargetsX32": 6, 13 | "CpuTargetsX64": 72, 14 | "OptimizeFor": 0 15 | } 16 | } 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/CommonBurstAotSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 4, 4 | "DisabledWarnings": "" 5 | } 6 | } 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: 7 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_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | -------------------------------------------------------------------------------- /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 | - enabled: 1 9 | path: Assets/Scenes/MainScene.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: 12 | Unity.XR.Oculus.Settings: {fileID: 11400000, guid: 5b444055c82c3734b9984bab8a7d86b6, 13 | type: 2} 14 | xr.sdk.mock-hmd.settings: {fileID: 11400000, guid: d710cdcd1d3420b4495d3bc55b895ac8, 15 | type: 2} 16 | m_UseUCBPForAssetBundles: 0 17 | -------------------------------------------------------------------------------- /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: 12 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 0 9 | m_DefaultBehaviorMode: 1 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 4 13 | m_SpritePackerCacheSize: 10 14 | m_SpritePackerPaddingPower: 1 15 | m_Bc7TextureCompressor: 0 16 | m_EtcTextureCompressorBehavior: 1 17 | m_EtcTextureFastCompressor: 1 18 | m_EtcTextureNormalCompressor: 2 19 | m_EtcTextureBestCompressor: 4 20 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref;editorconfig;tt 21 | m_ProjectGenerationRootNamespace: 22 | m_EnableTextureStreamingInEditMode: 1 23 | m_EnableTextureStreamingInPlayMode: 1 24 | m_EnableEditorAsyncCPUTextureLoading: 0 25 | m_AsyncShaderCompilation: 1 26 | m_PrefabModeAllowAutoSave: 1 27 | m_EnterPlayModeOptionsEnabled: 1 28 | m_EnterPlayModeOptions: 3 29 | m_GameObjectNamingDigits: 1 30 | m_GameObjectNamingScheme: 0 31 | m_AssetNamingUsesSpace: 1 32 | m_UseLegacyProbeSampleCount: 1 33 | m_SerializeInlineMappingsOnOneLine: 0 34 | m_DisableCookiesInLightmapper: 1 35 | m_AssetPipelineMode: 1 36 | m_RefreshImportMode: 0 37 | m_CacheServerMode: 0 38 | m_CacheServerEndpoint: 39 | m_CacheServerNamespacePrefix: default 40 | m_CacheServerEnableDownload: 1 41 | m_CacheServerEnableUpload: 1 42 | m_CacheServerEnableAuth: 0 43 | m_CacheServerEnableTls: 0 44 | m_CacheServerValidationMode: 2 45 | m_CacheServerDownloadBatchSize: 128 46 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 16 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_DepthNormals: 17 | m_Mode: 1 18 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 19 | m_MotionVectors: 20 | m_Mode: 1 21 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 22 | m_LightHalo: 23 | m_Mode: 1 24 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LensFlare: 26 | m_Mode: 1 27 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 28 | m_VideoShadersIncludeMode: 2 29 | m_AlwaysIncludedShaders: 30 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 31 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 32 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 4800000, guid: 1f28eb75eb632433997163eb8d2207e5, type: 3} 36 | m_PreloadedShaders: [] 37 | m_PreloadShadersBatchTimeLimit: -1 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 39 | type: 0} 40 | m_CustomRenderPipeline: {fileID: 0} 41 | m_TransparencySortMode: 0 42 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 43 | m_DefaultRenderingPath: 1 44 | m_DefaultMobileRenderingPath: 1 45 | m_TierSettings: [] 46 | m_LightmapStripping: 0 47 | m_FogStripping: 0 48 | m_InstancingStripping: 0 49 | m_BrgStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_RenderPipelineGlobalSettingsMap: 61 | UnityEngine.Rendering.Universal.UniversalRenderPipeline: {fileID: 11400000, guid: 2cf39d411c5e16143a7c661ca09fa362, 62 | type: 2} 63 | m_LightsUseLinearIntensity: 0 64 | m_LightsUseColorTemperature: 0 65 | m_LogWhenShaderIsCompiled: 0 66 | m_LightProbeOutsideHullStrategy: 0 67 | m_CameraRelativeLightCulling: 0 68 | m_CameraRelativeShadowCulling: 0 69 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/MultiplayerManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!655991488 &1 4 | MultiplayerManager: 5 | m_ObjectHideFlags: 0 6 | m_EnableMultiplayerRoles: 0 7 | m_ActiveMultiplayerRole: 0 8 | -------------------------------------------------------------------------------- /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 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /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/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 53 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_AdvancedSettingsExpanded: 1 17 | m_ScopedRegistriesSettingsExpanded: 1 18 | m_SeeAllPackageVersions: 0 19 | m_DismissPreviewPackagesInUse: 0 20 | oneTimeWarningShown: 0 21 | oneTimeDeprecatedPopUpShown: 0 22 | m_Registries: 23 | - m_Id: main 24 | m_Name: 25 | m_Url: https://packages.unity.com 26 | m_Scopes: [] 27 | m_IsDefault: 1 28 | m_Capabilities: 7 29 | m_ConfigSource: 0 30 | - m_Id: scoped:project:package.openupm.com 31 | m_Name: package.openupm.com 32 | m_Url: https://package.openupm.com 33 | m_Scopes: 34 | - com.nosuchstudio.rtltmpro 35 | - com.openupm 36 | - com.reactunity 37 | - com.reactunity.clearscript 38 | - com.reactunity.core 39 | - com.reactunity.jint 40 | - com.reactunity.quickjs 41 | m_IsDefault: 0 42 | m_Capabilities: 0 43 | m_ConfigSource: 4 44 | m_UserSelectedRegistryName: 45 | m_UserAddingNewScopedRegistry: 0 46 | m_RegistryInfoDraft: 47 | m_Modified: 0 48 | m_ErrorMessage: 49 | m_UserModificationsInstanceId: -864 50 | m_OriginalInstanceId: -866 51 | m_LoadAssets: 0 52 | -------------------------------------------------------------------------------- /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: 4 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_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 6000.0.38f1 2 | m_EditorVersionWithRevision: 6000.0.38f1 (82314a941f2d) 3 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "defaultInstantiationMode": 0 8 | }, 9 | { 10 | "userAdded": false, 11 | "type": "UnityEditor.Animations.AnimatorController", 12 | "defaultInstantiationMode": 0 13 | }, 14 | { 15 | "userAdded": false, 16 | "type": "UnityEngine.AnimatorOverrideController", 17 | "defaultInstantiationMode": 0 18 | }, 19 | { 20 | "userAdded": false, 21 | "type": "UnityEditor.Audio.AudioMixerController", 22 | "defaultInstantiationMode": 0 23 | }, 24 | { 25 | "userAdded": false, 26 | "type": "UnityEngine.ComputeShader", 27 | "defaultInstantiationMode": 1 28 | }, 29 | { 30 | "userAdded": false, 31 | "type": "UnityEngine.Cubemap", 32 | "defaultInstantiationMode": 0 33 | }, 34 | { 35 | "userAdded": false, 36 | "type": "UnityEngine.GameObject", 37 | "defaultInstantiationMode": 0 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEditor.LightingDataAsset", 42 | "defaultInstantiationMode": 0 43 | }, 44 | { 45 | "userAdded": false, 46 | "type": "UnityEngine.LightingSettings", 47 | "defaultInstantiationMode": 0 48 | }, 49 | { 50 | "userAdded": false, 51 | "type": "UnityEngine.Material", 52 | "defaultInstantiationMode": 0 53 | }, 54 | { 55 | "userAdded": false, 56 | "type": "UnityEditor.MonoScript", 57 | "defaultInstantiationMode": 1 58 | }, 59 | { 60 | "userAdded": false, 61 | "type": "UnityEngine.PhysicMaterial", 62 | "defaultInstantiationMode": 0 63 | }, 64 | { 65 | "userAdded": false, 66 | "type": "UnityEngine.PhysicsMaterial", 67 | "defaultInstantiationMode": 0 68 | }, 69 | { 70 | "userAdded": false, 71 | "type": "UnityEngine.PhysicsMaterial2D", 72 | "defaultInstantiationMode": 0 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 77 | "defaultInstantiationMode": 0 78 | }, 79 | { 80 | "userAdded": false, 81 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 82 | "defaultInstantiationMode": 0 83 | }, 84 | { 85 | "userAdded": false, 86 | "type": "UnityEngine.Rendering.VolumeProfile", 87 | "defaultInstantiationMode": 0 88 | }, 89 | { 90 | "userAdded": false, 91 | "type": "UnityEditor.SceneAsset", 92 | "defaultInstantiationMode": 0 93 | }, 94 | { 95 | "userAdded": false, 96 | "type": "UnityEngine.Shader", 97 | "defaultInstantiationMode": 1 98 | }, 99 | { 100 | "userAdded": false, 101 | "type": "UnityEngine.ShaderVariantCollection", 102 | "defaultInstantiationMode": 1 103 | }, 104 | { 105 | "userAdded": false, 106 | "type": "UnityEngine.Texture", 107 | "defaultInstantiationMode": 0 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Texture2D", 112 | "defaultInstantiationMode": 0 113 | }, 114 | { 115 | "userAdded": false, 116 | "type": "UnityEngine.Timeline.TimelineAsset", 117 | "defaultInstantiationMode": 0 118 | } 119 | ], 120 | "defaultDependencyTypeInfo": { 121 | "userAdded": false, 122 | "type": "", 123 | "defaultInstantiationMode": 1 124 | }, 125 | "newSceneOverride": 0 126 | } -------------------------------------------------------------------------------- /ProjectSettings/ShaderGraphSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: de02f9e1d18f588468e474319d09a723, type: 3} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | shaderVariantLimit: 2048 16 | customInterpolatorErrorThreshold: 32 17 | customInterpolatorWarningThreshold: 16 18 | customHeatmapValues: {fileID: 0} 19 | -------------------------------------------------------------------------------- /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 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - ReactUI 38 | - UIToolkit 39 | - ReactUnity 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | - name: L1 45 | uniqueID: 3690738703 46 | locked: 0 47 | - name: L2 48 | uniqueID: 3893470167 49 | locked: 0 50 | - name: L3 51 | uniqueID: 2409296929 52 | locked: 0 53 | - name: L4 54 | uniqueID: 3338514861 55 | locked: 0 56 | -------------------------------------------------------------------------------- /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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/URPProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 247994e1f5a72c2419c26a37e9334c01, type: 3} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_LastMaterialVersion: 5 16 | -------------------------------------------------------------------------------- /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 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_RenderPipeSettingsPath: 8 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRPackageSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_Settings": [ 3 | "RemoveLegacyInputHelpersForReload" 4 | ] 5 | } -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "True", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Unity Development Sample 2 | 3 | This repo is used for developing and manually testing ReactUnity. However, it contains many examples that can be useful for users of ReactUnity. 4 | 5 | There is also a simpler sample project, see https://github.com/ReactUnity/samples. 6 | 7 | ## How to Use 8 | 9 | Open the project in Unity. Open MainScene and click Play. Navigate the examples in rendered UI. 10 | 11 | To make changes to the UI: 12 | 13 | - Go to `/react` 14 | - Run `npm install` and `npm start` from this folder 15 | - Make changes to React files (e.g. `src/pages/home/index.tsx`) 16 | - Click "Play" in Unity. The changes you make to the source code will be automatically applied to the UI. 17 | 18 | See the [main project](https://github.com/ReactUnity/core) for further instructions. 19 | -------------------------------------------------------------------------------- /react/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "babel-plugin-twin" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /react/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | end_of_line = lf 11 | 12 | [*.md] 13 | max_line_length = off 14 | trim_trailing_whitespace = false 15 | 16 | [*.cs] 17 | indent_size = 4 18 | -------------------------------------------------------------------------------- /react/.env: -------------------------------------------------------------------------------- 1 | PORT=3100 2 | ; EXTRACT_CSS=true 3 | ; FAST_REFRESH=false 4 | ; SKIP_CLEAR_CONSOLE=true 5 | 6 | JSX_IMPORT_SOURCE=@emotion/react 7 | 8 | ; This will enable more accurate source maps for development 9 | ; GENERATE_SOURCEMAP=eval-source-map 10 | 11 | ; Enable this to enable source maps for production 12 | ; GENERATE_SOURCEMAP=true 13 | -------------------------------------------------------------------------------- /react/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "quotes": [ 4 | "error", 5 | "single" 6 | ], 7 | "semi": "error", 8 | "@typescript-eslint/semi": [ 9 | "error" 10 | ], 11 | "@typescript-eslint/member-delimiter-style": [ 12 | "error", 13 | { 14 | "singleline": { 15 | "delimiter": "comma" 16 | } 17 | } 18 | ], 19 | "quote-props": [ 20 | "error", 21 | "as-needed" 22 | ], 23 | "comma-dangle": [ 24 | "error", 25 | { 26 | "arrays": "always-multiline", 27 | "objects": "always-multiline", 28 | "functions": "only-multiline" 29 | } 30 | ] 31 | }, 32 | "ignorePatterns": [ 33 | "models/generated/**" 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /react/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (http://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # Distribution directories 40 | dist/ 41 | build/ 42 | 43 | # Optional npm cache directory 44 | .npm 45 | 46 | # Optional eslint cache 47 | .eslintcache 48 | 49 | # Optional REPL history 50 | .node_repl_history 51 | 52 | # Output of 'npm pack' 53 | *.tgz 54 | 55 | # Yarn Integrity file 56 | .yarn-integrity 57 | 58 | # dotenv environment variables file 59 | # .env 60 | .env.local 61 | .env.*.local 62 | 63 | # Typescript v1 declaration files 64 | # typings/ 65 | 66 | # Unity specific 67 | *.meta 68 | 69 | # Project specific 70 | *ignorefile* 71 | 72 | # Yalc 73 | yalc.lock 74 | .yalc 75 | 76 | # yarn v2 77 | .yarn/* 78 | !.yarn/patches 79 | !.yarn/releases 80 | !.yarn/plugins 81 | !.yarn/sdks 82 | !.yarn/versions 83 | .pnp.* 84 | 85 | # For zero installs: 86 | # !.yarn/cache 87 | # !.pnp.* 88 | -------------------------------------------------------------------------------- /react/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Attach to ClearScript on port 9222", 9 | "type": "node", 10 | "port": 9222, 11 | "request": "attach", 12 | "pauseForSourceMap": true, 13 | "resolveSourceMapLocations": null, 14 | "skipFiles": [ 15 | "/**", 16 | "node_modules/**" 17 | ] 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactunity-sample", 3 | "version": "0.0.1", 4 | "description": "", 5 | "main": "src/index.ts", 6 | "private": true, 7 | "author": "Gokhan Kurt ", 8 | "license": "MIT", 9 | "scripts": { 10 | "start": "react-unity-scripts start", 11 | "build": "react-unity-scripts build", 12 | "lint": "react-unity-scripts lint", 13 | "clean": "react-unity-scripts clean", 14 | "postyalc": "npm i", 15 | "test": "react-unity-scripts start --test" 16 | }, 17 | "dependencies": { 18 | "@emotion/css": "^11.13.4", 19 | "@emotion/react": "^11.13.3", 20 | "@emotion/styled": "^11.13.0", 21 | "@reactunity/material": "^0.19.0", 22 | "@reactunity/renderer": "^0.19.1", 23 | "@reduxjs/toolkit": "^2.3.0", 24 | "@tanstack/react-query": "^5.60.5", 25 | "axios": "^1.7.7", 26 | "bootstrap": "^5.3.3", 27 | "clsx": "^2.1.1", 28 | "history": "^5.3.0", 29 | "react": "^18.3.1", 30 | "react-bootstrap": "^2.10.5", 31 | "react-icons": "^5.3.0", 32 | "react-jss": "^10.10.0", 33 | "react-redux": "^9.1.2", 34 | "react-router": "^6.28.0", 35 | "react-unity-webgl": "^9.6.0", 36 | "redux": "^5.0.1", 37 | "redux-persist": "^6.0.0", 38 | "styled-components": "^6.1.13", 39 | "stylis": "^4.3.4", 40 | "twin.macro": "^3.4.1" 41 | }, 42 | "devDependencies": { 43 | "@reactunity/previewer": "^0.18.0", 44 | "@reactunity/scripts": "^0.19.2", 45 | "@types/react-redux": "^7.1.34", 46 | "babel-plugin-twin": "^1.1.0", 47 | "tailwindcss": "^3.4.15", 48 | "typescript": "^5.6.3" 49 | }, 50 | "babelMacros": { 51 | "twin": { 52 | "preset": "styled-components", 53 | "styled": { 54 | "import": "default", 55 | "from": "styled-components" 56 | }, 57 | "css": { 58 | "import": "css", 59 | "from": "styled-components" 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /react/public/html-test.html: -------------------------------------------------------------------------------- 1 | 25 | 26 | 32 | 33 | 34 | 35 | Hello 36 | Dear world 37 | 38 | 41 | 42 | 43 | 44 | more 45 | 46 | -------------------------------------------------------------------------------- /react/src/app/index.module.scss: -------------------------------------------------------------------------------- 1 | .host { 2 | flex-direction: row; 3 | align-items: stretch; 4 | height: 100%; 5 | overflow: hidden; 6 | background-color: #f0f0f0; 7 | color: black; 8 | } 9 | 10 | .sidepanel { 11 | padding: 20px; 12 | width: 200px; 13 | flex: 0 0 auto; 14 | flex-direction: column; 15 | align-items: stretch; 16 | background-color: #dedede; 17 | 18 | >button { 19 | margin-bottom: 12px; 20 | background-color: white; 21 | color: black; 22 | padding: 6px 10px; 23 | } 24 | } 25 | 26 | .scroll { 27 | flex: 1 1 0; 28 | flex-direction: column; 29 | } 30 | 31 | .content { 32 | padding: 40px; 33 | flex-direction: column; 34 | align-items: stretch; 35 | flex-shrink: 0; 36 | 37 | max-width: 960px; 38 | margin: 0 auto; 39 | width: 100%; 40 | } 41 | 42 | // Global styles 43 | 44 | h1 { 45 | font-size: 36px; 46 | font-style: smallcaps, bold; 47 | color: #582a9c; 48 | margin-bottom: 20px; 49 | } 50 | 51 | *+h1, 52 | *+* h1 { 53 | margin-top: 24px; 54 | } 55 | 56 | h2 { 57 | font-size: 30px; 58 | font-style: smallcaps; 59 | color: #fb2f8e; 60 | margin-bottom: 20px; 61 | } 62 | 63 | *+h2, 64 | *+* h2 { 65 | margin-top: 16px; 66 | } 67 | 68 | section { 69 | margin-top: 10px; 70 | margin-bottom: 10px; 71 | } 72 | 73 | row { 74 | flex-direction: row; 75 | align-items: center; 76 | } 77 | 78 | column { 79 | flex-direction: column; 80 | align-items: center; 81 | flex-grow: 1; 82 | flex-shrink: 0; 83 | } 84 | -------------------------------------------------------------------------------- /react/src/app/index.tsx: -------------------------------------------------------------------------------- 1 | import { render } from '@reactunity/renderer'; 2 | import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; 3 | import { Suspense } from 'react'; 4 | import { MemoryRouter, useNavigate } from 'react-router'; 5 | import styles from './index.module.scss'; 6 | import { AppRoutes } from './routes'; 7 | 8 | const queryClient = new QueryClient(); 9 | 10 | function App() { 11 | const nav = useNavigate(); 12 | 13 | return 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | ; 34 | } 35 | 36 | render( 37 | Loading}> 38 | 42 | 43 | 44 | 45 | 46 | 47 | ); 48 | -------------------------------------------------------------------------------- /react/src/app/routes.tsx: -------------------------------------------------------------------------------- 1 | import React, { Suspense } from 'react'; 2 | import { Route, Routes } from 'react-router'; 3 | import AnimationsPage from 'src/pages/animations'; 4 | import BgPatternsPage from 'src/pages/bg-patterns'; 5 | import HomePage from 'src/pages/home'; 6 | import ImagesPage from 'src/pages/images'; 7 | import InteropPage from 'src/pages/interop'; 8 | import MaterialPage from 'src/pages/material'; 9 | import { QueryPage } from 'src/pages/query/QueryPage'; 10 | import { Redux } from 'src/pages/redux'; 11 | import StyleFrameworksPage from 'src/pages/style-frameworks'; 12 | import BootstrapPage from 'src/pages/style-frameworks/bootstrap'; 13 | import EmotionPage from 'src/pages/style-frameworks/emotion'; 14 | import JSSPage from 'src/pages/style-frameworks/jss'; 15 | import StyledComponentsPage from 'src/pages/style-frameworks/styled-components'; 16 | import SvgsPage from 'src/pages/svgs'; 17 | import TodoPage from 'src/pages/todo'; 18 | 19 | const TailwindPage = React.lazy(() => import('src/pages/style-frameworks/tailwind')); 20 | 21 | export function AppRoutes() { 22 | return 23 | } /> 24 | } /> 25 | } /> 26 | } /> 27 | } /> 28 | } /> 29 | } /> 30 | } /> 31 | } /> 32 | } /> 33 | 34 | }> 35 | } /> 36 | } /> 37 | } /> 38 | } /> 39 | Loading}>} /> 41 | 42 | ; 43 | } 44 | -------------------------------------------------------------------------------- /react/src/assets/base64Image.txt: -------------------------------------------------------------------------------- 1 | data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAcElEQVR4AezOsREAIAjFUAs3dgAGYkj8C3g2oBTJXfo3iD419dJ2eOn5EuM6LnsFynQkb4AKQP2zlBOLpAEBAgQIECBAgAA1Au29p6aDrlPBQd3UdJA7yIcUho4KA5UBBxDHk9GwzwdiGQY6gVEwCgC3bcAZ+oXojwAAAABJRU5ErkJggg== 2 | -------------------------------------------------------------------------------- /react/src/assets/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/react/src/assets/bg.png -------------------------------------------------------------------------------- /react/src/assets/check.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /react/src/assets/lorem.ts: -------------------------------------------------------------------------------- 1 | const lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean aliquam placerat orci sit amet molestie. Mauris vitae vulputate enim. Nullam maximus maximus libero eu bibendum. Cras quis sapien nibh. Aenean eu sapien justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus et sollicitudin massa. Pellentesque vulputate consequat leo, mattis facilisis leo convallis ac. Donec at malesuada nibh, nec elementum quam. Suspendisse leo nulla, congue sit amet lacus in, facilisis auctor odio. In placerat magna at eleifend luctus. Morbi est odio, finibus eget efficitur pharetra, maximus non urna. 2 | 3 | Maecenas et ex arcu. Donec maximus leo ac lacus ornare, quis efficitur dui bibendum. Suspendisse sit amet sodales enim, nec venenatis nisl. Vestibulum non iaculis tortor, et sodales ipsum. Sed tempus leo sit amet laoreet efficitur. Pellentesque eleifend volutpat turpis, eu facilisis sem ultrices eu. Proin nec orci tempor, luctus purus eget, sagittis enim. Integer massa magna, elementum id sapien vel, egestas rutrum elit. Nullam non pulvinar nulla. Donec dolor lacus, interdum id nunc nec, euismod pharetra sapien. 4 | 5 | Proin viverra libero odio, in ultrices magna tempus quis. In vestibulum lacus non varius tincidunt. Mauris fringilla eu massa ac dictum. Aliquam ex tellus, luctus congue lorem eget, interdum sagittis tellus. Ut sagittis, felis sit amet viverra eleifend, orci quam ornare dui, a condimentum odio nisi sed enim. Phasellus malesuada, arcu quis condimentum euismod, risus ligula vehicula felis, ac venenatis nunc ipsum vel leo. Sed nec ex quis est vestibulum dignissim in tincidunt lacus. Sed eu luctus mauris. Nunc rhoncus fermentum dapibus. Vivamus lacinia mollis orci sed placerat. Integer ante libero, fermentum at risus ut, pretium fermentum lacus. Ut tempor ex mauris, sit amet blandit nisi fringilla id. Sed quam tellus, lacinia a tellus ac, ultrices vestibulum elit. 6 | 7 | Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed venenatis pharetra dolor, vel dictum quam tristique non. Duis malesuada gravida urna vel ultrices. Integer fringilla arcu sit amet lacus hendrerit, quis lacinia quam rutrum. Donec rhoncus sagittis urna. Aenean consectetur pulvinar libero. Integer aliquam porta mi, at sodales metus cursus nec. Duis vel maximus erat. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec sit amet fermentum nisl. In rutrum nibh a ultricies condimentum. Fusce finibus, mauris quis finibus viverra, felis ipsum euismod augue, vel malesuada urna ligula sit amet est. 8 | 9 | `; 10 | 11 | export default lorem; 12 | -------------------------------------------------------------------------------- /react/src/assets/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/react/src/assets/star.png -------------------------------------------------------------------------------- /react/src/assets/trailer.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReactUnity/full-sample/20145583d09ab3c0d4e3feed506e87b63dd867f3/react/src/assets/trailer.mp4 -------------------------------------------------------------------------------- /react/src/entry/uitoolkit.tsx: -------------------------------------------------------------------------------- 1 | import '../uitoolkit/home'; 2 | -------------------------------------------------------------------------------- /react/src/index.tsx: -------------------------------------------------------------------------------- 1 | import './app'; 2 | -------------------------------------------------------------------------------- /react/src/pages/animations/index.module.scss: -------------------------------------------------------------------------------- 1 | .host { 2 | align-items: center; 3 | 4 | button { 5 | &:hover { 6 | audio: url(res:click) 50%; 7 | audio-pitch: 1.5; 8 | } 9 | } 10 | 11 | catwalk { 12 | width: 399px; 13 | height: 200px; 14 | margin: auto; 15 | background: transparent url(res:catwalk); 16 | animation: sprite 800ms steps(11) infinite; 17 | } 18 | 19 | ryu { 20 | width: 435px; 21 | height: 267px; 22 | margin: auto; 23 | background: url(res:ryu); 24 | animation: sprite 3.5s steps(45) infinite; 25 | } 26 | 27 | pulsar { 28 | cursor: pointer; 29 | width: 300px; 30 | height: 300px; 31 | border-radius: 50%; 32 | animation: pulsate 6s linear infinite; 33 | box-shadow: 0 0 20px #fff, -20px 0 80px #f0f, 20px 0 80px #0ff, inset 0 0 50px #fff, inset 50px 0 80px #f0f, 34 | inset -50px 0 80px #0ff, inset 50px 0 300px #f0f, inset -50px 0 300px #0ff; 35 | } 36 | 37 | @keyframes sprite { 38 | from { 39 | background-position: 0 0%; 40 | } 41 | 42 | to { 43 | background-position: 0 100%; 44 | } 45 | } 46 | 47 | @keyframes pulsate { 48 | 50% { 49 | box-shadow: 0 0 20px #fff, 20px 0 80px #f0f, -20px 0 80px #0ff, inset 0 0 50px #fff, inset -50px 0 80px #f0f, 50 | inset 50px 0 80px #0ff, inset -50px 0 300px #f0f, inset 50px 0 300px #0ff; 51 | } 52 | } 53 | } 54 | 55 | 56 | .items { 57 | margin: 24px; 58 | } 59 | 60 | .item { 61 | width: 160px; 62 | margin-bottom: 10px; 63 | background-color: white; 64 | border: 1px solid black; 65 | padding: 6px; 66 | font-size: 20px; 67 | translate: 0 0; 68 | opacity: 1; 69 | 70 | transition: opacity 600ms ease-out; 71 | motion: 600ms; 72 | 73 | &:enter { 74 | translate: 100% 0; 75 | opacity: 0; 76 | } 77 | 78 | &:leave { 79 | opacity: 0; 80 | translate: -100% 0; 81 | state-duration: 600ms; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /react/src/pages/animations/index.tsx: -------------------------------------------------------------------------------- 1 | import clsx from 'clsx'; 2 | import { useState } from 'react'; 3 | import styles from './index.module.scss'; 4 | 5 | let lastId = 1; 6 | 7 | export const AnimationsPage = () => { 8 | const [items, setItems] = useState([]); 9 | 10 | return 11 | 12 | 13 | 14 | 15 | 18 | 19 | 22 | 23 | 26 | 27 | 28 | {items.map((x, i) => 29 | 30 | Item {x} 31 | )} 32 | 33 | ; 34 | }; 35 | 36 | export default AnimationsPage; 37 | -------------------------------------------------------------------------------- /react/src/pages/bg-patterns/index.tsx: -------------------------------------------------------------------------------- 1 | import clsx from 'clsx'; 2 | import styles from './index.module.scss'; 3 | 4 | export const BgPatternsPage = () => { 5 | return 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | export default BgPatternsPage; 42 | -------------------------------------------------------------------------------- /react/src/pages/home/index.module.scss: -------------------------------------------------------------------------------- 1 | .host { 2 | richtext:link-hover { 3 | cursor: pointer; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /react/src/pages/home/index.tsx: -------------------------------------------------------------------------------- 1 | 2 | import { useNavigate } from 'react-router'; 3 | import styles from './index.module.scss'; 4 | 5 | export const HomePage = () => { 6 | const nav = useNavigate(); 7 | 8 | return 9 | { 11 | const linkId = sender.GetLinkInfo(ev); 12 | if (linkId === 'svgs') nav('svgs'); 13 | }} 14 | > 15 | 16 | Welcome to ReactUnity 😎 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 | Click an item in the 25 | 26 | 27 | 28 | 29 | left menu 30 | 31 | 32 | 33 | 34 | to see examples. 35 | 36 | 37 | 38 | 39 | Check out the new 40 | 41 | 42 | 43 | SVG 44 | 45 | 46 | feature for example. 47 |
48 |
; 49 | }; 50 | 51 | export default HomePage; 52 | -------------------------------------------------------------------------------- /react/src/pages/images/index.module.scss: -------------------------------------------------------------------------------- 1 | .host { 2 | 3 | image, 4 | svg, 5 | svgimage { 6 | flex-grow: 1; 7 | flex-shrink: 1; 8 | flex-basis: 0; 9 | object-fit: scale-down; 10 | object-position: 50%; 11 | transition: object-position 2s; 12 | align-self: stretch; 13 | } 14 | 15 | object { 16 | border-width: 1px; 17 | border-radius: 20px; 18 | border-color: black; 19 | margin: 5px; 20 | background-color: hsla(152deg, 37%, 59%, 0.745); 21 | object-fit: none; 22 | } 23 | 24 | render, 25 | video { 26 | object-fit: scale-down; 27 | object-position: left; 28 | 29 | &::image { 30 | background-color: yellowgreen; 31 | } 32 | } 33 | 34 | render { 35 | border: 2px solid rgb(188, 188, 188); 36 | border-radius: 6px; 37 | } 38 | } 39 | 40 | .borderImage { 41 | border: 1px solid transparent; 42 | // border-image-source: url('resource:border-image'); 43 | border-image-source: url('pool:images/myBorder'); 44 | border-image-width: calc(80 / 2) calc(72 / 2) calc(84 / 2); 45 | border-image-slice: 80 72 84 fill; 46 | border-image-repeat: round repeat; 47 | 48 | width: 400px; 49 | text-transform: uppercase; 50 | font-weight: bold; 51 | font-size: 50px; 52 | color: white; 53 | flex-direction: column; 54 | text-align: center; 55 | justify-content: center; 56 | white-space: normal; 57 | word-wrap: normal; 58 | padding: 40px; 59 | 60 | text-stroke: 0.3px black; 61 | } 62 | -------------------------------------------------------------------------------- /react/src/pages/interop/index.module.scss: -------------------------------------------------------------------------------- 1 | .host { 2 | } 3 | -------------------------------------------------------------------------------- /react/src/pages/interop/index.tsx: -------------------------------------------------------------------------------- 1 | 2 | import { useGlobals, useReactiveValue } from '@reactunity/renderer'; 3 | import { useEffect, useState } from 'react'; 4 | import { useUnityContext } from 'react-unity-webgl'; 5 | import styles from './index.module.scss'; 6 | 7 | export const InteropPage = () => { 8 | const [shouldListen, setShouldListen] = useState(true); 9 | const [pressedKey, setPressedKey] = useState(null); 10 | 11 | const { addEventListener, removeEventListener } = useUnityContext({} as any); 12 | 13 | 14 | const { InteropTest }= useGlobals(); 15 | const deltaTime = useReactiveValue(InteropTest.DeltaTime); 16 | 17 | useEffect(() => { 18 | if (shouldListen) { 19 | const remove = Globals.InteropTest.AddKeyPressListener((key) => { 20 | setPressedKey(key); 21 | }); 22 | 23 | Interop.GetType('MyInterop.InteropTest').TestDebug(); 24 | 25 | return () => remove(); 26 | } 27 | }, [shouldListen]); 28 | 29 | useEffect(() => { 30 | const fn = (key) => { 31 | console.log('Pressed key is: ' + key); 32 | }; 33 | 34 | addEventListener('OnKeyPress', fn); 35 | 36 | return () => removeEventListener('OnKeyPress', fn); 37 | }, [addEventListener, removeEventListener]); 38 | 39 | return 40 | 43 | 44 | {!!pressedKey && 45 | Pressed key is: {pressedKey} 46 | } 47 | 48 | Delta Time: {deltaTime} 49 | ; 50 | }; 51 | 52 | export default InteropPage; 53 | -------------------------------------------------------------------------------- /react/src/pages/material/index.module.scss: -------------------------------------------------------------------------------- 1 | @use "@reactunity/material/styles"; 2 | 3 | .app { 4 | > * { 5 | margin-bottom: 10px; 6 | } 7 | 8 | section > * { 9 | margin-bottom: 12px; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /react/src/pages/material/virtual-scrolls.tsx: -------------------------------------------------------------------------------- 1 | import { Paper } from '@reactunity/material/paper'; 2 | import { FixedSizeGrid, FixedSizeList, VariableSizeList } from '@reactunity/material/virtual-scroll'; 3 | 4 | const Row = ({ index, style }: any) => ( 5 | Row {index} 6 | ); 7 | 8 | 9 | 10 | const Cell = ({ columnIndex, rowIndex, style }) => ( 11 | Item {rowIndex},{columnIndex} 12 | ); 13 | 14 | const FixedGridExample = () => ( 15 | 23 | {Cell as any} 24 | 25 | ); 26 | 27 | // These row heights are arbitrary. 28 | // Yours should be based on the content of the row. 29 | const rowHeights = new Array(1000) 30 | .fill(true) 31 | .map(() => 25 + Math.round(Math.random() * 50)); 32 | 33 | const getItemSize = index => rowHeights[index]; 34 | 35 | const FixedSizeExample = () => ( 36 | 43 | {Row} 44 | 45 | ); 46 | 47 | const VariableSizeExample = () => ( 48 | 54 | {Row} 55 | 56 | ); 57 | 58 | 59 | export function VirtualScrolls() { 60 | return
61 |

Virtual Scrolls

62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
; 71 | } 72 | -------------------------------------------------------------------------------- /react/src/pages/query/QueryPage.tsx: -------------------------------------------------------------------------------- 1 | import { useQuery } from '@tanstack/react-query'; 2 | 3 | export function QueryPage() { 4 | const { isPending, error, data, isFetching, refetch } = useQuery({ 5 | queryKey: ['repoData'], 6 | queryFn: async () => { 7 | const response = await fetch( 8 | 'https://api.github.com/repos/TanStack/query' 9 | ); 10 | return await response.json(); 11 | }, 12 | }); 13 | 14 | if (isPending) return 'Loading...'; 15 | 16 | if (error) return 'An error has occurred: ' + error.message; 17 | 18 | return ( 19 |
20 |

{data.full_name}

21 | Subscribers: {data.subscribers_count} 22 | Stargazers: {data.stargazers_count} 23 | Forks: {data.forks_count} 24 | 25 | 28 |
29 | ); 30 | } 31 | -------------------------------------------------------------------------------- /react/src/pages/redux/index.tsx: -------------------------------------------------------------------------------- 1 | import { Provider, useDispatch, useSelector } from 'react-redux'; 2 | import { PersistGate } from 'redux-persist/integration/react'; 3 | import { decrement, increment, persistor, selectCount, store } from 'src/store'; 4 | 5 | export function Redux() { 6 | return 7 | 8 | ; 9 | } 10 | 11 | 12 | function ReduxCore() { 13 | const dispatch = useDispatch(); 14 | const count = useSelector(selectCount); 15 | 16 | return 17 | Count: {count?.toString()} 18 | 19 | 20 | ; 21 | } 22 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/bootstrap/index.scss: -------------------------------------------------------------------------------- 1 | @import "bootstrap/scss/_functions"; 2 | @import "bootstrap/scss/_variables"; 3 | @import "bootstrap/scss/_mixins"; 4 | 5 | @import 'bootstrap/scss/_buttons'; 6 | @import "bootstrap/scss/_card"; 7 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/bootstrap/index.tsx: -------------------------------------------------------------------------------- 1 | import { useEffect } from 'react'; 2 | import Button from 'react-bootstrap/Button'; 3 | import './index.scss'; 4 | 5 | export function BootstrapPage() { 6 | useEffect(() => { 7 | // This causes too much performance issues, so load individual scss files 8 | // @ts-ignore 9 | // import('bootstrap/dist/css/bootstrap.min.css'); 10 | }, []); 11 | 12 | return <> 13 |
14 | 15 | 16 | 17 |
18 | 19 |
20 |
Card title
21 |

Some quick example text to build on the card title and make up the bulk of the card's content.

22 | Go somewhere 23 |
24 |
25 |
26 | ; 27 | } 28 | 29 | export default BootstrapPage; 30 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/emotion/index.tsx: -------------------------------------------------------------------------------- 1 | import { css } from '@emotion/css'; 2 | import styled from '@emotion/styled'; 3 | 4 | const Button = styled.button` 5 | margin: 20px; 6 | padding: 32px; 7 | background-color: crimson; 8 | font-size: 24px; 9 | border-radius: 4px; 10 | color: white; 11 | font-weight: bold; 12 | &:hover { 13 | color: yellow; 14 | } 15 | `; 16 | const color = 'white'; 17 | 18 | export function EmotionPage() { 19 | // const [toggled, setToggled] = useState(false); 20 | 21 | return <> 22 |
33 | Hover to change color. 34 |
35 | 36 | 37 | ; 38 | } 39 | 40 | export default EmotionPage; 41 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/index.module.scss: -------------------------------------------------------------------------------- 1 | .host {} 2 | 3 | .tabs { 4 | margin-bottom: 24px; 5 | border-bottom: 1px solid rgb(201, 201, 201); 6 | 7 | >button { 8 | border-radius: 0; 9 | border-top-left-radius: 4px; 10 | border-top-right-radius: 4px; 11 | border: 1px solid rgb(201, 201, 201); 12 | font-size: 18px; 13 | padding: 14px 30px; 14 | 15 | &.active { 16 | background-color: rgb(227, 227, 227); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/index.tsx: -------------------------------------------------------------------------------- 1 | import clsx from 'clsx'; 2 | import { ReactNode } from 'react'; 3 | import { Outlet, To, useMatch, useNavigate, useResolvedPath } from 'react-router'; 4 | import styles from './index.module.scss'; 5 | 6 | 7 | const CustomNavLink = ({ to, children }: { to: To, children: ReactNode }) => { 8 | const nav = useNavigate(); 9 | let resolved = useResolvedPath(to); 10 | let match = useMatch({ path: resolved.pathname, end: true }); 11 | 12 | return ( 13 | 16 | ); 17 | }; 18 | 19 | export function StyleFrameworksPage() { 20 | return 21 | 22 | JSS 23 | Styled Components 24 | Emotion 25 | Tailwind 26 | Bootstrap 27 | 28 | 29 | 30 | ; 31 | } 32 | 33 | export default StyleFrameworksPage; 34 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/jss/index.tsx: -------------------------------------------------------------------------------- 1 | import { useState } from 'react'; 2 | import { createUseStyles } from 'react-jss'; 3 | 4 | export function JSSPage() { 5 | return <> 6 |
7 | 8 |
9 | ; 10 | } 11 | 12 | export default JSSPage; 13 | 14 | 15 | // Create your Styles. Remember, since React-JSS uses the default preset, 16 | // most plugins are available without further configuration needed. 17 | const useStyles = createUseStyles(({ 18 | '@keyframes rotate': { 19 | from: { 20 | transform: 'scale(1)', 21 | }, 22 | to: { 23 | transform: 'scale(1.5)', 24 | }, 25 | }, 26 | myButton: ({ 27 | color: (prop: any) => prop.enabled ? 'green' : 'red', 28 | // color: 'green', 29 | margin: { 30 | // jss-plugin-expand gives more readable syntax 31 | top: 5, // jss-plugin-default-unit makes this 5px 32 | right: 0, 33 | bottom: 0, 34 | left: '1rem', 35 | }, 36 | animation: '$rotate 1s infinite alternate', 37 | '& span': { 38 | // jss-plugin-nested applies this to a child span 39 | fontWeight: 'bold', // jss-plugin-camel-case turns this into 'font-weight' 40 | }, 41 | }), 42 | myLabel: { 43 | fontStyle: 'italic', 44 | }, 45 | '@media (max-width: 600px)': { 46 | myButton: { 47 | backgroundColor: 'yellow', 48 | }, 49 | }, 50 | })); 51 | 52 | // Define the component using these styles and pass it the 'classes' prop. 53 | // Use this to assign scoped class names. 54 | const Button = ({ children }) => { 55 | const [enabled, setEnabled] = useState(true); 56 | const classes = useStyles({ enabled } as any); 57 | return ( 58 | 61 | ); 62 | }; 63 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/styled-components/index.tsx: -------------------------------------------------------------------------------- 1 | import { useState } from 'react'; 2 | import styled, { css } from 'styled-components'; 3 | 4 | const Button = styled.button<{ $toggled?: boolean }>` 5 | /* This renders the buttons above... Edit me! */ 6 | display: inline-block; 7 | border-radius: 3px; 8 | padding: 0.5rem 0; 9 | margin: 0.5rem 1rem; 10 | width: 11rem; 11 | background: yellow; 12 | color: black; 13 | border: 2px solid black; 14 | 15 | ${props => props.$toggled && css` 16 | background: white; 17 | color: black; 18 | `} 19 | `; 20 | 21 | 22 | export function StyledComponentsPage() { 23 | const [toggled, setToggled] = useState(false); 24 | 25 | return <> 26 |
27 | 28 |
29 | ; 30 | } 31 | 32 | export default StyledComponentsPage; 33 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/tailwind/index.css: -------------------------------------------------------------------------------- 1 | /* @tailwind base; */ 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /react/src/pages/style-frameworks/tailwind/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.css'; 2 | 3 | export function TailwindPage() { 4 | return
5 |
6 | 9 | 10 | 13 |
14 | 15 | 16 | 20 | 21 |
; 22 | } 23 | 24 | export default TailwindPage; 25 | -------------------------------------------------------------------------------- /react/src/pages/svgs/graph.tsx: -------------------------------------------------------------------------------- 1 | import { useMemo } from 'react'; 2 | import styles from './index.module.scss'; 3 | 4 | function generatePolylineArray(arrayX: number[], arrayY: number[]) { 5 | let polyline = ''; 6 | arrayX.map((coordX, i) => { 7 | return polyline += `${coordX}, ${arrayY[i]} `; 8 | }); 9 | return polyline; 10 | } 11 | 12 | export const Graph = ({ arrayX, arrayY, lineWidth }: { arrayX: number[], arrayY: number[], lineWidth: number }) => { 13 | const polyline = useMemo(() => { 14 | return generatePolylineArray(arrayX, arrayY); 15 | }, [arrayX, arrayY]); 16 | 17 | return ( 18 | 19 | 20 | 21 | {arrayX.map((coordX, i) => 22 | )} 23 | 24 | ); 25 | }; 26 | -------------------------------------------------------------------------------- /react/src/pages/svgs/index.module.scss: -------------------------------------------------------------------------------- 1 | .graph { 2 | margin: auto; 3 | height: 100px; 4 | } 5 | -------------------------------------------------------------------------------- /react/src/pages/svgs/index.tsx: -------------------------------------------------------------------------------- 1 | import clsx from 'clsx'; 2 | import { useMemo, useState } from 'react'; 3 | import { FaAlignCenter, FaBeer } from 'react-icons/fa'; 4 | import { FcDoughnutChart } from 'react-icons/fc'; 5 | import { IconContext } from 'react-icons/lib'; 6 | import { ReactComponent as CheckSVG } from 'src/assets/check.svg'; 7 | import { Graph } from './graph'; 8 | import styles from './index.module.scss'; 9 | 10 | 11 | const xPoints = [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1000]; 12 | const yPoints = [5, 30, -5, -10, 15, -15, 20, 5, 8, -12, -20, 2, 3, -5, 8, -2, 22, -30, -15, -35, -20]; 13 | 14 | export function SvgsPage() { 15 | const [points, setPoints] = useState(5); 16 | const [lineWidth, setLineWidth] = useState(3); 17 | 18 | const [arrayX, arrayY] = useMemo(() => { 19 | return [xPoints.slice(0, points), yPoints.slice(0, points)]; 20 | }, [points]); 21 | 22 | return
23 | 24 | 25 |

Inline SVGs

26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |
35 | 36 | 37 |

React Icons

38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
47 | 48 | 49 |

Dynamic SVG

50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
59 |
; 60 | } 61 | 62 | export default SvgsPage; 63 | -------------------------------------------------------------------------------- /react/src/pages/todo/index.css: -------------------------------------------------------------------------------- 1 | .todo-root { 2 | flex-direction: column; 3 | align-self: center; 4 | align-items: stretch; 5 | margin: 40px; 6 | padding: 40px; 7 | 8 | background-color: #dedede; 9 | border-radius: 8px; 10 | box-shadow: 1px 1px 6px -2px black; 11 | 12 | --item-animation-duration: 400ms; 13 | } 14 | 15 | .todo-header { 16 | color: cornflowerblue; 17 | font-size: 30px; 18 | font-weight: bold; 19 | margin-bottom: 18px; 20 | text-align: center; 21 | } 22 | 23 | .todo-input-section { 24 | flex-direction: row; 25 | align-items: stretch; 26 | width: 360px; 27 | margin-bottom: 18px; 28 | } 29 | 30 | .todo-input { 31 | flex-shrink: 1; 32 | flex-grow: 1; 33 | } 34 | 35 | .todo-item { 36 | flex-direction: row; 37 | align-items: center; 38 | transition: rotate var(--item-animation-duration), margin-bottom var(--item-animation-duration); 39 | rotate: 0 0 0; 40 | width: 360px; 41 | padding: 4px 0 4px 8px; 42 | margin-bottom: 0px; 43 | transform-origin: top; 44 | 45 | background-color: white; 46 | border: 1px solid #dedede; 47 | border-radius: 8px; 48 | } 49 | 50 | .todo-item:not(:first-child) { 51 | margin-top: 10px; 52 | } 53 | 54 | .todo-item:enter { 55 | rotate: 90deg 0 0; 56 | margin-bottom: -66px; 57 | } 58 | 59 | .todo-item:leave { 60 | rotate: 90deg 0 0; 61 | margin-bottom: -66px; 62 | pointer-events: none; 63 | state-duration: var(--item-animation-duration); 64 | } 65 | 66 | .todo-item-name { 67 | flex-shrink: 1; 68 | flex-grow: 1; 69 | } 70 | 71 | .todo-add-button, 72 | .todo-remove-button { 73 | width: 50px; 74 | height: 50px; 75 | margin-left: 8px; 76 | } 77 | -------------------------------------------------------------------------------- /react/src/pages/todo/index.jsx: -------------------------------------------------------------------------------- 1 | import { useRef, useState } from 'react'; 2 | import './index.css'; 3 | 4 | export function TodoItem(props) { 5 | return 6 | 7 | {props.item.text} 8 | 9 | 10 | 14 | ; 15 | } 16 | 17 | export function TodoPage() { 18 | const lastId = useRef(3); 19 | const [items, setItems] = useState([ 20 | { id: 0, text: 'Take a walk' }, 21 | { id: 1, text: 'Buy groceries' }, 22 | { id: 2, text: 'Prepare dinner' }, 23 | ]); 24 | 25 | const inputRef = useRef(); 26 | 27 | function addTodo(item) { 28 | inputRef.current.Value = ''; 29 | setItems(oldItems => { 30 | const newItems = [...oldItems]; 31 | newItems.push({ id: lastId.current++, text: item }); 32 | return newItems; 33 | }); 34 | } 35 | 36 | function removeTodo(id) { 37 | setItems(oldItems => oldItems.filter(x => x.id !== id)); 38 | } 39 | 40 | return 41 | 42 | TODO app example 43 | 44 | 45 | 46 | addTodo(sender.Value)} /> 49 | 50 | 54 | 55 | 56 | 57 | {items.map((item) => 58 | )} 60 | 61 | ; 62 | } 63 | 64 | export default TodoPage; 65 | -------------------------------------------------------------------------------- /react/src/store.ts: -------------------------------------------------------------------------------- 1 | import { Action, configureStore, createSlice, ThunkAction } from '@reduxjs/toolkit'; 2 | import { FLUSH, PAUSE, PERSIST, PersistConfig, persistReducer, persistStore, PURGE, REGISTER, REHYDRATE } from 'redux-persist'; 3 | 4 | const persistConfig: PersistConfig<{ count: number }> = { 5 | key: 'counter', 6 | storage: { 7 | getItem: x => { 8 | const item = localStorage.getItem(x); 9 | if (item) { 10 | try { 11 | return Promise.resolve(JSON.parse(item)); 12 | } catch { } 13 | } 14 | return Promise.resolve(null); 15 | }, 16 | setItem: (x, v) => { localStorage.setItem(x, JSON.stringify(v)); return Promise.resolve(); }, 17 | removeItem: (x) => { localStorage.removeItem(x); return Promise.resolve(); }, 18 | }, 19 | }; 20 | 21 | const counterSlice = createSlice({ 22 | name: 'counter', 23 | initialState: { 24 | count: 0, 25 | }, 26 | reducers: { 27 | increment: state => ({ count: (state.count || 0) + 1 }), 28 | decrement: state => ({ count: (state.count || 0) - 1 }), 29 | }, 30 | }); 31 | 32 | const counter = persistReducer(persistConfig, counterSlice.reducer); 33 | 34 | export const { increment, decrement } = counterSlice.actions; 35 | 36 | export const store = configureStore({ 37 | reducer: { 38 | counter, 39 | }, 40 | middleware: (getDefaultMiddleware) => getDefaultMiddleware({ 41 | 42 | serializableCheck: { 43 | ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER], 44 | }, 45 | }), 46 | devTools: false, 47 | }); 48 | export const persistor = persistStore(store); 49 | 50 | export type RootState = ReturnType; 51 | export type AppThunk = ThunkAction< 52 | ReturnType, 53 | RootState, 54 | unknown, 55 | Action 56 | >; 57 | export type AppThunkCreator = (arg: PayloadType) => AppThunk; 58 | 59 | export const selectCount = (x: RootState) => x.counter.count; 60 | -------------------------------------------------------------------------------- /react/src/tests/README.md: -------------------------------------------------------------------------------- 1 | ### What is this folder? 2 | 3 | This folder contains quick reproductions for testing some bug reports by users. You can delete this report safely. 4 | -------------------------------------------------------------------------------- /react/src/tests/error-test/index.tsx: -------------------------------------------------------------------------------- 1 | import { render } from '@reactunity/renderer'; 2 | import React, { useState } from 'react'; 3 | 4 | function ErrorChild2() { 5 | const [state, setState] = useState(null); 6 | 7 | return
8 | {state.value} 9 |
; 10 | } 11 | 12 | function ErrorChild1() { 13 | return
14 | 15 |
; 16 | } 17 | 18 | export default function ErrorTest() { 19 | 20 | return ( 21 | 22 | ); 23 | } 24 | 25 | 26 | const createdRefs = new Set(); 27 | 28 | function createRef(ref) { 29 | if (ref && !createdRefs.has(ref)) { 30 | createdRefs.add(ref); 31 | console.log('Created ref', ref); 32 | } 33 | } 34 | 35 | export class ErrorBoundary extends React.Component { 36 | constructor(props) { 37 | super(props); 38 | this.state = { hasError: false, error: null }; 39 | } 40 | 41 | static getDerivedStateFromError(error) { 42 | // Update state so the next render will show the fallback UI. 43 | return { hasError: true, error }; 44 | } 45 | 46 | render() { 47 | if (this.state.hasError) { 48 | return 51 | 52 | {this.state.error?.message || ''} 53 | 54 | {this.state.error?.stack || ''} 55 | ; 56 | } 57 | 58 | return this.props.children; 59 | } 60 | } 61 | 62 | render( 63 | 64 | 65 | , { disableHelpers: true }); 66 | -------------------------------------------------------------------------------- /react/src/tests/stress-test/index.css: -------------------------------------------------------------------------------- 1 | /* @tailwind base; */ 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /react/src/tests/stress-test/index.tsx: -------------------------------------------------------------------------------- 1 | import { render } from '@reactunity/renderer'; 2 | import { useMemo, useState } from 'react'; 3 | import './index.css'; 4 | 5 | const ROWS = 125; 6 | const COLUMNS = 15; 7 | 8 | function Row({ row, columns }: { row: number, columns: number }) { 9 | const children = useMemo(() => { 10 | return Array(columns) 11 | .fill(0) 12 | .map((_, col) => { 13 | return ( 14 |
console.log(`Clicked ${row} x ${col}`)}> 16 | {`${row} x ${col}`} 17 |
18 | ); 19 | }); 20 | }, [columns, row]); 21 | 22 | return
{children}
; 23 | } 24 | 25 | function Rows({ columns, rows }: { columns: number, rows: number }) { 26 | const children = useMemo(() => { 27 | return Array(rows) 28 | .fill(0) 29 | .map((_, i) => { 30 | return ; 31 | }); 32 | }, [columns, rows]); 33 | 34 | return
{children}
; 35 | } 36 | 37 | export default function StressTest() { 38 | const [rows, setRows] = useState(ROWS); 39 | const [columns, setColumns] = useState(COLUMNS); 40 | 41 | return ( 42 | 43 | 55 | 56 | 57 | ); 58 | } 59 | 60 | render(); 61 | -------------------------------------------------------------------------------- /react/src/tests/width-test/index.scss: -------------------------------------------------------------------------------- 1 | .black-bar { 2 | position: fixed; 3 | bottom: 0; 4 | left: 0; 5 | right: 0; 6 | height: 250px; 7 | // background-color: red; 8 | // background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 0.5)); 9 | display: flex; 10 | align-items: center; 11 | justify-content: center; 12 | } 13 | 14 | .content { 15 | display: flex; 16 | flex-direction: column; 17 | align-items: flex-start; 18 | justify-content: center; 19 | text-align: left; 20 | } 21 | 22 | .title { 23 | margin: 0; 24 | color: white; 25 | font-size: 24px; 26 | } 27 | 28 | .gradient-rule { 29 | height: 4px; 30 | align-self: stretch; 31 | // width: 100%; 32 | background-color: green; 33 | background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent); 34 | margin: 16px 0; 35 | } 36 | 37 | .message { 38 | margin: 0; 39 | color: white; 40 | font-size: 18px; 41 | } 42 | -------------------------------------------------------------------------------- /react/src/tests/width-test/index.tsx: -------------------------------------------------------------------------------- 1 | import { render } from '@reactunity/renderer'; 2 | import './index.scss'; 3 | 4 | function App() { 5 | return (
6 |
7 |

Title

8 |
9 |

Message text goes here

10 |
11 |
); 12 | } 13 | 14 | render(); 15 | -------------------------------------------------------------------------------- /react/src/twin.d.ts: -------------------------------------------------------------------------------- 1 | import { CSSProp } from 'styled-components'; 2 | import 'twin.macro'; 3 | 4 | declare global { 5 | interface ReactUnityCustomAttributes { 6 | css?: CSSProp; 7 | as?: string | Element; 8 | tw?: string; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /react/src/types.d.ts: -------------------------------------------------------------------------------- 1 | import { UnityEngine } from '@reactunity/renderer'; 2 | 3 | declare global { 4 | interface DefaultGlobals { 5 | renderCamera: UnityEngine.GameObject; 6 | cameraRoot: UnityEngine.GameObject; 7 | } 8 | } 9 | 10 | 11 | declare global { 12 | interface ReactUnityCustomElements { 13 | // Add your custom native elements here 14 | // mycomp: { myprop?: number }; 15 | } 16 | 17 | interface ReactUnityCustomAttributes { 18 | // Add your custom native elements here. May be required for some libraries like @emotion/react. 19 | // See twin.d.ts file for an example. 20 | // css?: CSSProp; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /react/src/uitoolkit/home/index.module.scss: -------------------------------------------------------------------------------- 1 | :root > * { 2 | background-color: #fafafa; 3 | } 4 | 5 | @font-face { 6 | font-family: Underdog; 7 | src: url(res:Underdog); 8 | } 9 | 10 | .app { 11 | padding: 20px; 12 | max-width: 960px; 13 | width: 100%; 14 | align-self: center; 15 | align-items: stretch; 16 | 17 | h1 { 18 | font-size: 36px; 19 | font-style: smallcaps, bold; 20 | color: #582a9c; 21 | margin-bottom: 12px; 22 | font-family: Underdog; 23 | } 24 | 25 | h2 { 26 | font-size: 30px; 27 | font-style: smallcaps; 28 | color: #fb2f8e; 29 | margin-bottom: 8px; 30 | } 31 | 32 | section { 33 | margin-top: 10px; 34 | margin-bottom: 10px; 35 | } 36 | 37 | row { 38 | flex-direction: row; 39 | align-items: center; 40 | } 41 | 42 | column { 43 | flex-direction: column; 44 | align-items: center; 45 | flex-grow: 1; 46 | flex-shrink: 0; 47 | } 48 | 49 | image { 50 | flex-grow: 1; 51 | flex-shrink: 1; 52 | flex-basis: 0; 53 | object-fit: scale-down; 54 | object-position: 50%; 55 | transition: object-position 2s; 56 | align-self: stretch; 57 | } 58 | 59 | input { 60 | border-width: 1px; 61 | border-color: black; 62 | } 63 | 64 | button { 65 | &:hover { 66 | audio: url(res:click); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /react/src/uitoolkit/home/index.tsx: -------------------------------------------------------------------------------- 1 | /* @jsxImportSource @reactunity/renderer/uitoolkit */ 2 | 3 | import { render } from '@reactunity/renderer'; 4 | import base64Image from 'src/assets/base64Image.txt'; 5 | import pngImage from 'src/assets/bg.png'; 6 | import check, { ReactComponent as CheckSVG } from 'src/assets/check.svg'; 7 | import style from './index.module.scss'; 8 | 9 | const webImage = 'https://www.google.com.tr/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png'; 10 | 11 | export function App() { 12 | return 13 | 14 |

React Unity Showcase

15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |

Button

23 | 24 | 25 |
26 | 27 | 28 |
29 |

Anchor

30 | 31 | Open Google 32 |
33 | 34 | 35 |
36 |

Input

37 | 38 | 39 |
40 | 41 | 42 |
43 |

Toggle

44 | 45 | 46 | 47 | Toggle 48 | 49 |
50 | 51 |
52 |

Image

53 | 54 | 55 | 56 | 57 | 58 | 59 |
60 |
61 |
; 62 | }; 63 | 64 | render(); 65 | -------------------------------------------------------------------------------- /react/tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: [ 3 | "./src/**/*.{js,jsx,ts,tsx}", 4 | ], 5 | theme: { 6 | extend: {}, 7 | }, 8 | plugins: [], 9 | } 10 | -------------------------------------------------------------------------------- /react/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@reactunity/scripts", 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "jsxImportSource": "@reactunity/renderer/ugui", 6 | "types": [ 7 | "@reactunity/scripts/main" 8 | ] 9 | }, 10 | "files": [ 11 | "./src/index.tsx" 12 | ], 13 | "include": [ 14 | "./src" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /react/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (env, originalConfig) { 2 | // originalConfig.target = 'es5'; 3 | // originalConfig.output.chunkFormat = 'commonjs'; 4 | return originalConfig; 5 | } 6 | --------------------------------------------------------------------------------