├── .gitattributes ├── .gitignore ├── Assets ├── Android.meta ├── Android │ ├── libmandelbrot.so │ └── libmandelbrot.so.meta ├── Linux.meta ├── Linux │ ├── libmandelbrot.so │ └── libmandelbrot.so.meta ├── Test.cs ├── Test.cs.meta ├── Test.unity ├── Test.unity.meta ├── Windows.meta ├── Windows │ ├── mandelbrot.dll │ └── mandelbrot.dll.meta ├── iOS.meta ├── iOS │ ├── libmandelbrot.a │ └── libmandelbrot.a.meta ├── macOS.meta └── macOS │ ├── mandelbrot.bundle │ └── mandelbrot.bundle.meta ├── Packages ├── manifest.json └── packages-lock.json ├── Plugin ├── Cargo.toml ├── build.sh └── src │ └── lib.rs ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── boot.config └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | 3 | *.cs text eol=lf diff=csharp 4 | *.shader text eol=lf 5 | *.cginc text eol=lf 6 | *.hlsl text eol=lf 7 | *.compute text eol=lf 8 | 9 | *.meta text eol=lf 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Thumbs.db 2 | Desktop.ini 3 | .DS_Store 4 | *.swp 5 | 6 | /Library 7 | /Logs 8 | /Recordings 9 | /Temp 10 | /UserSettings 11 | 12 | /Plugin/*.bundle 13 | /Plugin/*.lock 14 | /Plugin/target 15 | -------------------------------------------------------------------------------- /Assets/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3335469b760580b5bb56b7a7a8a0bda8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Android/libmandelbrot.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustPlugin/4128e4b4f5b1ea1e3f0835969353369ed1e39645/Assets/Android/libmandelbrot.so -------------------------------------------------------------------------------- /Assets/Android/libmandelbrot.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92d2db1111ccf28029628d9a9f6e50bf 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | - first: 26 | Android: Android 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: ARM64 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 0 40 | settings: 41 | CPU: AnyCPU 42 | DefaultValueInitialized: true 43 | OS: AnyOS 44 | - first: 45 | Standalone: Linux64 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: OSXUniversal 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | Standalone: Win64 64 | second: 65 | enabled: 0 66 | settings: 67 | CPU: None 68 | userData: 69 | assetBundleName: 70 | assetBundleVariant: 71 | -------------------------------------------------------------------------------- /Assets/Linux.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd1c8933c155f3e3ca523f41a01c47d9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Linux/libmandelbrot.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustPlugin/4128e4b4f5b1ea1e3f0835969353369ed1e39645/Assets/Linux/libmandelbrot.so -------------------------------------------------------------------------------- /Assets/Linux/libmandelbrot.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ee4886365c009a4191cea50e1cc2b2b 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 0 20 | Exclude Linux64: 0 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | - first: 25 | Any: 26 | second: 27 | enabled: 0 28 | settings: {} 29 | - first: 30 | Editor: Editor 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: x86_64 35 | DefaultValueInitialized: true 36 | OS: Linux 37 | - first: 38 | Standalone: Linux64 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: AnyCPU 43 | - first: 44 | Standalone: OSXUniversal 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Win 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: Win64 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86_64 61 | userData: 62 | assetBundleName: 63 | assetBundleVariant: 64 | -------------------------------------------------------------------------------- /Assets/Test.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Runtime.InteropServices; 3 | 4 | public class Test : MonoBehaviour 5 | { 6 | #if !UNITY_EDITOR && (UNITY_IOS || UNITY_WEBGL) 7 | [DllImport("__Internal")] 8 | #else 9 | [DllImport("mandelbrot")] 10 | #endif 11 | static extern void generate_image([Out] Color32[] buffer, int width, int height); 12 | 13 | const int Size = 512; 14 | 15 | void Start() 16 | { 17 | var startTime = Time.realtimeSinceStartup; 18 | 19 | var pixels = new Color32[Size * Size]; 20 | generate_image(pixels, Size, Size); 21 | 22 | var endTime = Time.realtimeSinceStartup; 23 | Debug.Log("execution time = " + (endTime - startTime)); 24 | 25 | var texture = new Texture2D(Size, Size); 26 | texture.wrapMode = TextureWrapMode.Clamp; 27 | texture.SetPixels32(pixels); 28 | texture.Apply(); 29 | 30 | GetComponent().material.mainTexture = texture; 31 | } 32 | 33 | void Update() 34 | => transform.localRotation = Quaternion.Euler(33.3f * Time.time, 41.7f * Time.time, 0); 35 | } 36 | -------------------------------------------------------------------------------- /Assets/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03ec267863cabeb4c8a3c093e2f76b41 3 | timeCreated: 1475303903 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Test.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 1 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 0 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 1024 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 1 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 512 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 0 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &19840808 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 19840810} 135 | - component: {fileID: 19840809} 136 | - component: {fileID: 19840812} 137 | - component: {fileID: 19840811} 138 | m_Layer: 0 139 | m_Name: Cube 140 | m_TagString: Untagged 141 | m_Icon: {fileID: 0} 142 | m_NavMeshLayer: 0 143 | m_StaticEditorFlags: 0 144 | m_IsActive: 1 145 | --- !u!114 &19840809 146 | MonoBehaviour: 147 | m_ObjectHideFlags: 0 148 | m_CorrespondingSourceObject: {fileID: 0} 149 | m_PrefabInstance: {fileID: 0} 150 | m_PrefabAsset: {fileID: 0} 151 | m_GameObject: {fileID: 19840808} 152 | m_Enabled: 1 153 | m_EditorHideFlags: 0 154 | m_Script: {fileID: 11500000, guid: 03ec267863cabeb4c8a3c093e2f76b41, type: 3} 155 | m_Name: 156 | m_EditorClassIdentifier: 157 | --- !u!4 &19840810 158 | Transform: 159 | m_ObjectHideFlags: 0 160 | m_CorrespondingSourceObject: {fileID: 0} 161 | m_PrefabInstance: {fileID: 0} 162 | m_PrefabAsset: {fileID: 0} 163 | m_GameObject: {fileID: 19840808} 164 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 165 | m_LocalPosition: {x: 0, y: 0, z: 0} 166 | m_LocalScale: {x: 1, y: 1, z: 1} 167 | m_ConstrainProportionsScale: 0 168 | m_Children: [] 169 | m_Father: {fileID: 0} 170 | m_RootOrder: 2 171 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 172 | --- !u!23 &19840811 173 | MeshRenderer: 174 | m_ObjectHideFlags: 0 175 | m_CorrespondingSourceObject: {fileID: 0} 176 | m_PrefabInstance: {fileID: 0} 177 | m_PrefabAsset: {fileID: 0} 178 | m_GameObject: {fileID: 19840808} 179 | m_Enabled: 1 180 | m_CastShadows: 1 181 | m_ReceiveShadows: 1 182 | m_DynamicOccludee: 1 183 | m_StaticShadowCaster: 0 184 | m_MotionVectors: 1 185 | m_LightProbeUsage: 1 186 | m_ReflectionProbeUsage: 1 187 | m_RayTracingMode: 2 188 | m_RayTraceProcedural: 0 189 | m_RenderingLayerMask: 1 190 | m_RendererPriority: 0 191 | m_Materials: 192 | - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} 193 | m_StaticBatchInfo: 194 | firstSubMesh: 0 195 | subMeshCount: 0 196 | m_StaticBatchRoot: {fileID: 0} 197 | m_ProbeAnchor: {fileID: 0} 198 | m_LightProbeVolumeOverride: {fileID: 0} 199 | m_ScaleInLightmap: 1 200 | m_ReceiveGI: 1 201 | m_PreserveUVs: 0 202 | m_IgnoreNormalsForChartDetection: 0 203 | m_ImportantGI: 0 204 | m_StitchLightmapSeams: 1 205 | m_SelectedEditorRenderState: 3 206 | m_MinimumChartSize: 4 207 | m_AutoUVMaxDistance: 0.5 208 | m_AutoUVMaxAngle: 89 209 | m_LightmapParameters: {fileID: 0} 210 | m_SortingLayerID: 0 211 | m_SortingLayer: 0 212 | m_SortingOrder: 0 213 | m_AdditionalVertexStreams: {fileID: 0} 214 | --- !u!33 &19840812 215 | MeshFilter: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | m_GameObject: {fileID: 19840808} 221 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 222 | --- !u!1 &1263825057 223 | GameObject: 224 | m_ObjectHideFlags: 0 225 | m_CorrespondingSourceObject: {fileID: 0} 226 | m_PrefabInstance: {fileID: 0} 227 | m_PrefabAsset: {fileID: 0} 228 | serializedVersion: 6 229 | m_Component: 230 | - component: {fileID: 1263825062} 231 | - component: {fileID: 1263825061} 232 | m_Layer: 0 233 | m_Name: Main Camera 234 | m_TagString: MainCamera 235 | m_Icon: {fileID: 0} 236 | m_NavMeshLayer: 0 237 | m_StaticEditorFlags: 0 238 | m_IsActive: 1 239 | --- !u!20 &1263825061 240 | Camera: 241 | m_ObjectHideFlags: 0 242 | m_CorrespondingSourceObject: {fileID: 0} 243 | m_PrefabInstance: {fileID: 0} 244 | m_PrefabAsset: {fileID: 0} 245 | m_GameObject: {fileID: 1263825057} 246 | m_Enabled: 1 247 | serializedVersion: 2 248 | m_ClearFlags: 2 249 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} 250 | m_projectionMatrixMode: 1 251 | m_GateFitMode: 2 252 | m_FOVAxisMode: 0 253 | m_SensorSize: {x: 36, y: 24} 254 | m_LensShift: {x: 0, y: 0} 255 | m_FocalLength: 50 256 | m_NormalizedViewPortRect: 257 | serializedVersion: 2 258 | x: 0 259 | y: 0 260 | width: 1 261 | height: 1 262 | near clip plane: 0.1 263 | far clip plane: 100 264 | field of view: 45 265 | orthographic: 0 266 | orthographic size: 0.5 267 | m_Depth: -1 268 | m_CullingMask: 269 | serializedVersion: 2 270 | m_Bits: 4294967295 271 | m_RenderingPath: 1 272 | m_TargetTexture: {fileID: 0} 273 | m_TargetDisplay: 0 274 | m_TargetEye: 3 275 | m_HDR: 0 276 | m_AllowMSAA: 0 277 | m_AllowDynamicResolution: 0 278 | m_ForceIntoRT: 0 279 | m_OcclusionCulling: 0 280 | m_StereoConvergence: 10 281 | m_StereoSeparation: 0.022 282 | --- !u!4 &1263825062 283 | Transform: 284 | m_ObjectHideFlags: 0 285 | m_CorrespondingSourceObject: {fileID: 0} 286 | m_PrefabInstance: {fileID: 0} 287 | m_PrefabAsset: {fileID: 0} 288 | m_GameObject: {fileID: 1263825057} 289 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 290 | m_LocalPosition: {x: 0, y: 0, z: -1.8} 291 | m_LocalScale: {x: 1, y: 1, z: 1} 292 | m_ConstrainProportionsScale: 0 293 | m_Children: [] 294 | m_Father: {fileID: 0} 295 | m_RootOrder: 0 296 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 297 | --- !u!1 &1480266596 298 | GameObject: 299 | m_ObjectHideFlags: 0 300 | m_CorrespondingSourceObject: {fileID: 0} 301 | m_PrefabInstance: {fileID: 0} 302 | m_PrefabAsset: {fileID: 0} 303 | serializedVersion: 6 304 | m_Component: 305 | - component: {fileID: 1480266598} 306 | - component: {fileID: 1480266597} 307 | m_Layer: 0 308 | m_Name: Directional Light 309 | m_TagString: Untagged 310 | m_Icon: {fileID: 0} 311 | m_NavMeshLayer: 0 312 | m_StaticEditorFlags: 0 313 | m_IsActive: 1 314 | --- !u!108 &1480266597 315 | Light: 316 | m_ObjectHideFlags: 0 317 | m_CorrespondingSourceObject: {fileID: 0} 318 | m_PrefabInstance: {fileID: 0} 319 | m_PrefabAsset: {fileID: 0} 320 | m_GameObject: {fileID: 1480266596} 321 | m_Enabled: 1 322 | serializedVersion: 10 323 | m_Type: 1 324 | m_Shape: 0 325 | m_Color: {r: 1, g: 1, b: 1, a: 1} 326 | m_Intensity: 1 327 | m_Range: 10 328 | m_SpotAngle: 30 329 | m_InnerSpotAngle: 21.80208 330 | m_CookieSize: 10 331 | m_Shadows: 332 | m_Type: 0 333 | m_Resolution: -1 334 | m_CustomResolution: -1 335 | m_Strength: 1 336 | m_Bias: 0.05 337 | m_NormalBias: 0.4 338 | m_NearPlane: 0.2 339 | m_CullingMatrixOverride: 340 | e00: 1 341 | e01: 0 342 | e02: 0 343 | e03: 0 344 | e10: 0 345 | e11: 1 346 | e12: 0 347 | e13: 0 348 | e20: 0 349 | e21: 0 350 | e22: 1 351 | e23: 0 352 | e30: 0 353 | e31: 0 354 | e32: 0 355 | e33: 1 356 | m_UseCullingMatrixOverride: 0 357 | m_Cookie: {fileID: 0} 358 | m_DrawHalo: 0 359 | m_Flare: {fileID: 0} 360 | m_RenderMode: 0 361 | m_CullingMask: 362 | serializedVersion: 2 363 | m_Bits: 4294967295 364 | m_RenderingLayerMask: 1 365 | m_Lightmapping: 4 366 | m_LightShadowCasterMode: 0 367 | m_AreaSize: {x: 1, y: 1} 368 | m_BounceIntensity: 1 369 | m_ColorTemperature: 6570 370 | m_UseColorTemperature: 0 371 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 372 | m_UseBoundingSphereOverride: 0 373 | m_UseViewFrustumForShadowCasterCull: 1 374 | m_ShadowRadius: 0 375 | m_ShadowAngle: 0 376 | --- !u!4 &1480266598 377 | Transform: 378 | m_ObjectHideFlags: 0 379 | m_CorrespondingSourceObject: {fileID: 0} 380 | m_PrefabInstance: {fileID: 0} 381 | m_PrefabAsset: {fileID: 0} 382 | m_GameObject: {fileID: 1480266596} 383 | m_LocalRotation: {x: 0.36964378, y: 0.23911765, z: -0.09904577, w: 0.8923991} 384 | m_LocalPosition: {x: 0, y: 0, z: 0} 385 | m_LocalScale: {x: 1, y: 1, z: 1} 386 | m_ConstrainProportionsScale: 0 387 | m_Children: [] 388 | m_Father: {fileID: 0} 389 | m_RootOrder: 1 390 | m_LocalEulerAnglesHint: {x: 45, y: 30, z: 0} 391 | -------------------------------------------------------------------------------- /Assets/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0dfae19bdb15a4d4cb2099cee00289fc 3 | timeCreated: 1475303985 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Windows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40da82d40e067ac45a70a9f192617d6b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Windows/mandelbrot.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustPlugin/4128e4b4f5b1ea1e3f0835969353369ed1e39645/Assets/Windows/mandelbrot.dll -------------------------------------------------------------------------------- /Assets/Windows/mandelbrot.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66de5fdf4d9e3844b9a20cdde76bc935 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 0 20 | Exclude Linux64: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 1 23 | Exclude Win64: 0 24 | - first: 25 | Any: 26 | second: 27 | enabled: 0 28 | settings: {} 29 | - first: 30 | Editor: Editor 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: x86_64 35 | DefaultValueInitialized: true 36 | OS: Windows 37 | - first: 38 | Standalone: Linux64 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: AnyCPU 43 | - first: 44 | Standalone: OSXUniversal 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Win 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | - first: 56 | Standalone: Win64 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86_64 61 | userData: 62 | assetBundleName: 63 | assetBundleVariant: 64 | -------------------------------------------------------------------------------- /Assets/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c6f9c86bac2a464c9186fc4d84cc655 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/iOS/libmandelbrot.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustPlugin/4128e4b4f5b1ea1e3f0835969353369ed1e39645/Assets/iOS/libmandelbrot.a -------------------------------------------------------------------------------- /Assets/iOS/libmandelbrot.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c27442443934d4f778ec094e7e6e0672 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: ARM64 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /Assets/macOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e9ea5507c56143f9a00530751c93cd0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/macOS/mandelbrot.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustPlugin/4128e4b4f5b1ea1e3f0835969353369ed1e39645/Assets/macOS/mandelbrot.bundle -------------------------------------------------------------------------------- /Assets/macOS/mandelbrot.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90502e29a714d44bbab7e352d7430f3b 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 0 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | - first: 25 | Any: 26 | second: 27 | enabled: 0 28 | settings: {} 29 | - first: 30 | Editor: Editor 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: AnyCPU 35 | DefaultValueInitialized: true 36 | OS: OSX 37 | - first: 38 | Standalone: Linux64 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | - first: 44 | Standalone: OSXUniversal 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: AnyCPU 49 | - first: 50 | Standalone: Win 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: Win64 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86_64 61 | userData: 62 | assetBundleName: 63 | assetBundleVariant: 64 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": {} 3 | } 4 | -------------------------------------------------------------------------------- /Plugin/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "unity-plugin-test" 3 | version = "1.0.0" 4 | authors = ["Keijiro Takahashi "] 5 | edition = "2021" 6 | 7 | [lib] 8 | name = "mandelbrot" 9 | crate-type = ["cdylib"] 10 | 11 | [dependencies] 12 | num = "0.4.0" 13 | -------------------------------------------------------------------------------- /Plugin/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | LIB="mandelbrot" 6 | OPT="--release" 7 | DST="../Assets" 8 | 9 | UNAME=`uname` 10 | 11 | [ $UNAME = Linux ] && `grep -i -q "microsoft" /proc/version` && IS_WSL="WSL" 12 | 13 | [ -n "$1" ] && [ $1 = android ] && IS_ANDROID="Android" 14 | 15 | if [ -n "$1" ] && [ $1 = ios ]; then 16 | IS_IOS="iOS" 17 | if ! `grep -i -q "staticlib" Cargo.toml`; then 18 | echo '** iOS build error: create-type should be staticlib.' 19 | echo 'Please modify Cargo.toml to change crate-type to "staticlib".' 20 | exit 1 21 | fi 22 | fi 23 | 24 | if [ $IS_IOS ]; then 25 | 26 | TARGET="aarch64-apple-ios" 27 | 28 | set -x 29 | cargo build $OPT --target=$TARGET 30 | cp target/${TARGET}/release/lib${LIB}.a ${DST}/iOS 31 | 32 | elif [ $IS_ANDROID ]; then 33 | 34 | TARGET="aarch64-linux-android" 35 | 36 | if [ -z "$ANDROID_NDK" ]; then 37 | echo '** Android build error: $ANDROID_NDK is not defined.' 38 | exit 1 39 | fi 40 | 41 | export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" 42 | 43 | set -x 44 | cargo build $OPT --target=$TARGET 45 | cp target/${TARGET}/release/lib${LIB}.so ${DST}/Android 46 | 47 | elif [ $IS_WSL ]; then 48 | 49 | TARGET="x86_64-pc-windows-gnu" 50 | 51 | set -x 52 | cargo build $OPT --target=$TARGET 53 | cp target/${TARGET}/release/${LIB}.dll ${DST}/Windows 54 | 55 | elif [ $UNAME = Linux ]; then 56 | 57 | set -x 58 | cargo build $OPT 59 | cp target/release/lib${LIB}.so ${DST}/Linux 60 | 61 | elif [ $UNAME = Darwin ]; then 62 | 63 | TARGET_ARM="aarch64-apple-darwin" 64 | TARGET_X86="x86_64-apple-darwin" 65 | 66 | set -x 67 | 68 | cargo build $OPT --target=$TARGET_ARM 69 | cargo build $OPT --target=$TARGET_X86 70 | 71 | lipo -create -output ${LIB}.bundle \ 72 | target/${TARGET_ARM}/release/lib${LIB}.dylib \ 73 | target/${TARGET_X86}/release/lib${LIB}.dylib 74 | 75 | DST_FILE="${DST}/macOS/${LIB}.bundle" 76 | [ -e $DST_FILE ] && rm $DST_FILE 77 | cp ${LIB}.bundle $DST_FILE 78 | 79 | fi 80 | -------------------------------------------------------------------------------- /Plugin/src/lib.rs: -------------------------------------------------------------------------------- 1 | use num::complex::Complex; 2 | 3 | fn mandelbrot(px: i32, py: i32, width: i32, height: i32) -> i32 { 4 | let x = (px as f32) / (width as f32) * 2.5 - 2.0; 5 | let y = (py as f32) / (height as f32) * 2.0 - 1.0; 6 | 7 | let c = Complex::new(x, y); 8 | let mut z = Complex::new(0.0, 0.0); 9 | let mut i = 0; 10 | 11 | while z.norm_sqr() < 4.0 { 12 | z = z * z + c; 13 | i += 1; 14 | if i == 300 { return 0; } 15 | } 16 | 17 | i 18 | } 19 | 20 | #[no_mangle] 21 | pub unsafe extern "C" fn generate_image(buffer: *mut u8, width: i32, height: i32) { 22 | let data = std::slice::from_raw_parts_mut(buffer, (width * height * 4) as usize); 23 | let mut offs = 0; 24 | for y in 0..height { 25 | for x in 0..width { 26 | let c = mandelbrot(x, y, width, height); 27 | data[offs + 0] = (c * 31) as u8; 28 | data[offs + 1] = (c * 37) as u8; 29 | data[offs + 2] = (c * 41) as u8; 30 | data[offs + 3] = 255; 31 | offs += 4; 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 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_SolverIterationCount: 6 13 | m_QueriesHitTriggers: 1 14 | m_EnableAdaptiveForce: 0 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /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/Test.unity 10 | -------------------------------------------------------------------------------- /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: 11 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 1 9 | m_DefaultBehaviorMode: 0 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_Bc7TextureCompressor: 0 15 | m_EtcTextureCompressorBehavior: 0 16 | m_EtcTextureFastCompressor: 2 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 5 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_EnableTextureStreamingInEditMode: 1 22 | m_EnableTextureStreamingInPlayMode: 1 23 | m_AsyncShaderCompilation: 1 24 | m_CachingShaderPreprocessor: 1 25 | m_PrefabModeAllowAutoSave: 1 26 | m_EnterPlayModeOptionsEnabled: 1 27 | m_EnterPlayModeOptions: 3 28 | m_GameObjectNamingDigits: 1 29 | m_GameObjectNamingScheme: 0 30 | m_AssetNamingUsesSpace: 1 31 | m_UseLegacyProbeSampleCount: 1 32 | m_SerializeInlineMappingsOnOneLine: 0 33 | m_DisableCookiesInLightmapper: 1 34 | m_AssetPipelineMode: 1 35 | m_RefreshImportMode: 0 36 | m_CacheServerMode: 0 37 | m_CacheServerEndpoint: 38 | m_CacheServerNamespacePrefix: default 39 | m_CacheServerEnableDownload: 1 40 | m_CacheServerEnableUpload: 1 41 | m_CacheServerEnableAuth: 0 42 | m_CacheServerEnableTls: 0 43 | -------------------------------------------------------------------------------- /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: 7 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_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_ShaderSettings_Tier1: 42 | useCascadedShadowMaps: 1 43 | standardShaderQuality: 2 44 | useReflectionProbeBoxProjection: 1 45 | useReflectionProbeBlending: 1 46 | m_ShaderSettings_Tier2: 47 | useCascadedShadowMaps: 1 48 | standardShaderQuality: 2 49 | useReflectionProbeBoxProjection: 1 50 | useReflectionProbeBlending: 1 51 | m_ShaderSettings_Tier3: 52 | useCascadedShadowMaps: 1 53 | standardShaderQuality: 2 54 | useReflectionProbeBoxProjection: 1 55 | useReflectionProbeBlending: 1 56 | m_BuildTargetShaderSettings: [] 57 | m_LightmapStripping: 0 58 | m_FogStripping: 0 59 | m_LightmapKeepPlain: 1 60 | m_LightmapKeepDirCombined: 1 61 | m_LightmapKeepDirSeparate: 1 62 | m_LightmapKeepDynamicPlain: 1 63 | m_LightmapKeepDynamicDirCombined: 1 64 | m_LightmapKeepDynamicDirSeparate: 1 65 | m_FogKeepLinear: 1 66 | m_FogKeepExp: 1 67 | m_FogKeepExp2: 1 68 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /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/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 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 | -------------------------------------------------------------------------------- /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: 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: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 1 16 | m_EnablePackageDependencies: 1 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 1 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_UserSelectedRegistryName: 29 | m_UserAddingNewScopedRegistry: 0 30 | m_RegistryInfoDraft: 31 | m_Modified: 0 32 | m_ErrorMessage: 33 | m_UserModificationsInstanceId: -822 34 | m_OriginalInstanceId: -824 35 | m_LoadAssets: 0 36 | -------------------------------------------------------------------------------- /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: 2 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_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 26 | -------------------------------------------------------------------------------- /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 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 23 7 | productGUID: 1d562023ff0e47648a5519118bed1d46 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: RustPluginTest 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.12156863, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 0 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1280 46 | defaultScreenHeight: 720 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 0 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 0 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 0 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 0 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 3 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 1048576 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 0 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 1.0 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 0 143 | xboxOneEnable7thCore: 1 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | useHDRDisplay: 0 149 | D3DHDRBitDepth: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: 156 | Android: com.DefaultCompany.RustPluginTest 157 | Standalone: com.DefaultCompany.RustPluginTest 158 | iPhone: com.Company.ProductName 159 | tvOS: com.Company.ProductName 160 | buildNumber: 161 | Standalone: 0 162 | iPhone: 0 163 | tvOS: 0 164 | overrideDefaultApplicationIdentifier: 0 165 | AndroidBundleVersionCode: 1 166 | AndroidMinSdkVersion: 22 167 | AndroidTargetSdkVersion: 0 168 | AndroidPreferredInstallLocation: 1 169 | aotOptions: 170 | stripEngineCode: 1 171 | iPhoneStrippingLevel: 0 172 | iPhoneScriptCallOptimization: 0 173 | ForceInternetPermission: 0 174 | ForceSDCardPermission: 0 175 | CreateWallpaper: 0 176 | APKExpansionFiles: 0 177 | keepLoadedShadersAlive: 0 178 | StripUnusedMeshComponents: 0 179 | VertexChannelCompressionMask: 214 180 | iPhoneSdkVersion: 988 181 | iOSTargetOSVersionString: 11.0 182 | tvOSSdkVersion: 0 183 | tvOSRequireExtendedGameController: 0 184 | tvOSTargetOSVersionString: 11.0 185 | uIPrerenderedIcon: 0 186 | uIRequiresPersistentWiFi: 0 187 | uIRequiresFullScreen: 1 188 | uIStatusBarHidden: 1 189 | uIExitOnSuspend: 0 190 | uIStatusBarStyle: 0 191 | appleTVSplashScreen: {fileID: 0} 192 | appleTVSplashScreen2x: {fileID: 0} 193 | tvOSSmallIconLayers: [] 194 | tvOSSmallIconLayers2x: [] 195 | tvOSLargeIconLayers: [] 196 | tvOSLargeIconLayers2x: [] 197 | tvOSTopShelfImageLayers: [] 198 | tvOSTopShelfImageLayers2x: [] 199 | tvOSTopShelfImageWideLayers: [] 200 | tvOSTopShelfImageWideLayers2x: [] 201 | iOSLaunchScreenType: 0 202 | iOSLaunchScreenPortrait: {fileID: 0} 203 | iOSLaunchScreenLandscape: {fileID: 0} 204 | iOSLaunchScreenBackgroundColor: 205 | serializedVersion: 2 206 | rgba: 0 207 | iOSLaunchScreenFillPct: 100 208 | iOSLaunchScreenSize: 100 209 | iOSLaunchScreenCustomXibPath: 210 | iOSLaunchScreeniPadType: 0 211 | iOSLaunchScreeniPadImage: {fileID: 0} 212 | iOSLaunchScreeniPadBackgroundColor: 213 | serializedVersion: 2 214 | rgba: 0 215 | iOSLaunchScreeniPadFillPct: 100 216 | iOSLaunchScreeniPadSize: 100 217 | iOSLaunchScreeniPadCustomXibPath: 218 | iOSLaunchScreenCustomStoryboardPath: 219 | iOSLaunchScreeniPadCustomStoryboardPath: 220 | iOSDeviceRequirements: [] 221 | iOSURLSchemes: [] 222 | macOSURLSchemes: [] 223 | iOSBackgroundModes: 0 224 | iOSMetalForceHardShadows: 0 225 | metalEditorSupport: 1 226 | metalAPIValidation: 1 227 | iOSRenderExtraFrameOnPause: 1 228 | iosCopyPluginsCodeInsteadOfSymlink: 0 229 | appleDeveloperTeamID: 230 | iOSManualSigningProvisioningProfileID: 231 | tvOSManualSigningProvisioningProfileID: 232 | iOSManualSigningProvisioningProfileType: 0 233 | tvOSManualSigningProvisioningProfileType: 0 234 | appleEnableAutomaticSigning: 0 235 | iOSRequireARKit: 0 236 | iOSAutomaticallyDetectAndAddCapabilities: 1 237 | appleEnableProMotion: 0 238 | shaderPrecisionModel: 0 239 | clonedFromGUID: 00000000000000000000000000000000 240 | templatePackageId: 241 | templateDefaultScene: 242 | useCustomMainManifest: 0 243 | useCustomLauncherManifest: 0 244 | useCustomMainGradleTemplate: 0 245 | useCustomLauncherGradleManifest: 0 246 | useCustomBaseGradleTemplate: 0 247 | useCustomGradlePropertiesTemplate: 0 248 | useCustomProguardFile: 0 249 | AndroidTargetArchitectures: 2 250 | AndroidTargetDevices: 0 251 | AndroidSplashScreenScale: 0 252 | androidSplashScreen: {fileID: 0} 253 | AndroidKeystoreName: '{inproject}: ' 254 | AndroidKeyaliasName: 255 | AndroidBuildApkPerCpuArchitecture: 0 256 | AndroidTVCompatibility: 1 257 | AndroidIsGame: 1 258 | AndroidEnableTango: 0 259 | androidEnableBanner: 1 260 | androidUseLowAccuracyLocation: 0 261 | androidUseCustomKeystore: 0 262 | m_AndroidBanners: 263 | - width: 320 264 | height: 180 265 | banner: {fileID: 0} 266 | androidGamepadSupportLevel: 0 267 | chromeosInputEmulation: 1 268 | AndroidMinifyWithR8: 0 269 | AndroidMinifyRelease: 0 270 | AndroidMinifyDebug: 0 271 | AndroidValidateAppBundleSize: 1 272 | AndroidAppBundleSizeToValidate: 150 273 | m_BuildTargetIcons: 274 | - m_BuildTarget: 275 | m_Icons: 276 | - serializedVersion: 2 277 | m_Icon: {fileID: 0} 278 | m_Width: 128 279 | m_Height: 128 280 | m_Kind: 0 281 | m_BuildTargetPlatformIcons: 282 | - m_BuildTarget: iPhone 283 | m_Icons: 284 | - m_Textures: [] 285 | m_Width: 180 286 | m_Height: 180 287 | m_Kind: 0 288 | m_SubKind: iPhone 289 | - m_Textures: [] 290 | m_Width: 120 291 | m_Height: 120 292 | m_Kind: 0 293 | m_SubKind: iPhone 294 | - m_Textures: [] 295 | m_Width: 167 296 | m_Height: 167 297 | m_Kind: 0 298 | m_SubKind: iPad 299 | - m_Textures: [] 300 | m_Width: 152 301 | m_Height: 152 302 | m_Kind: 0 303 | m_SubKind: iPad 304 | - m_Textures: [] 305 | m_Width: 76 306 | m_Height: 76 307 | m_Kind: 0 308 | m_SubKind: iPad 309 | - m_Textures: [] 310 | m_Width: 120 311 | m_Height: 120 312 | m_Kind: 3 313 | m_SubKind: iPhone 314 | - m_Textures: [] 315 | m_Width: 80 316 | m_Height: 80 317 | m_Kind: 3 318 | m_SubKind: iPhone 319 | - m_Textures: [] 320 | m_Width: 80 321 | m_Height: 80 322 | m_Kind: 3 323 | m_SubKind: iPad 324 | - m_Textures: [] 325 | m_Width: 40 326 | m_Height: 40 327 | m_Kind: 3 328 | m_SubKind: iPad 329 | - m_Textures: [] 330 | m_Width: 87 331 | m_Height: 87 332 | m_Kind: 1 333 | m_SubKind: iPhone 334 | - m_Textures: [] 335 | m_Width: 58 336 | m_Height: 58 337 | m_Kind: 1 338 | m_SubKind: iPhone 339 | - m_Textures: [] 340 | m_Width: 29 341 | m_Height: 29 342 | m_Kind: 1 343 | m_SubKind: iPhone 344 | - m_Textures: [] 345 | m_Width: 58 346 | m_Height: 58 347 | m_Kind: 1 348 | m_SubKind: iPad 349 | - m_Textures: [] 350 | m_Width: 29 351 | m_Height: 29 352 | m_Kind: 1 353 | m_SubKind: iPad 354 | - m_Textures: [] 355 | m_Width: 60 356 | m_Height: 60 357 | m_Kind: 2 358 | m_SubKind: iPhone 359 | - m_Textures: [] 360 | m_Width: 40 361 | m_Height: 40 362 | m_Kind: 2 363 | m_SubKind: iPhone 364 | - m_Textures: [] 365 | m_Width: 40 366 | m_Height: 40 367 | m_Kind: 2 368 | m_SubKind: iPad 369 | - m_Textures: [] 370 | m_Width: 20 371 | m_Height: 20 372 | m_Kind: 2 373 | m_SubKind: iPad 374 | - m_Textures: [] 375 | m_Width: 1024 376 | m_Height: 1024 377 | m_Kind: 4 378 | m_SubKind: App Store 379 | - m_BuildTarget: Android 380 | m_Icons: 381 | - m_Textures: [] 382 | m_Width: 432 383 | m_Height: 432 384 | m_Kind: 2 385 | m_SubKind: 386 | - m_Textures: [] 387 | m_Width: 324 388 | m_Height: 324 389 | m_Kind: 2 390 | m_SubKind: 391 | - m_Textures: [] 392 | m_Width: 216 393 | m_Height: 216 394 | m_Kind: 2 395 | m_SubKind: 396 | - m_Textures: [] 397 | m_Width: 162 398 | m_Height: 162 399 | m_Kind: 2 400 | m_SubKind: 401 | - m_Textures: [] 402 | m_Width: 108 403 | m_Height: 108 404 | m_Kind: 2 405 | m_SubKind: 406 | - m_Textures: [] 407 | m_Width: 81 408 | m_Height: 81 409 | m_Kind: 2 410 | m_SubKind: 411 | - m_Textures: [] 412 | m_Width: 192 413 | m_Height: 192 414 | m_Kind: 1 415 | m_SubKind: 416 | - m_Textures: [] 417 | m_Width: 144 418 | m_Height: 144 419 | m_Kind: 1 420 | m_SubKind: 421 | - m_Textures: [] 422 | m_Width: 96 423 | m_Height: 96 424 | m_Kind: 1 425 | m_SubKind: 426 | - m_Textures: [] 427 | m_Width: 72 428 | m_Height: 72 429 | m_Kind: 1 430 | m_SubKind: 431 | - m_Textures: [] 432 | m_Width: 48 433 | m_Height: 48 434 | m_Kind: 1 435 | m_SubKind: 436 | - m_Textures: [] 437 | m_Width: 36 438 | m_Height: 36 439 | m_Kind: 1 440 | m_SubKind: 441 | - m_Textures: [] 442 | m_Width: 192 443 | m_Height: 192 444 | m_Kind: 0 445 | m_SubKind: 446 | - m_Textures: [] 447 | m_Width: 144 448 | m_Height: 144 449 | m_Kind: 0 450 | m_SubKind: 451 | - m_Textures: [] 452 | m_Width: 96 453 | m_Height: 96 454 | m_Kind: 0 455 | m_SubKind: 456 | - m_Textures: [] 457 | m_Width: 72 458 | m_Height: 72 459 | m_Kind: 0 460 | m_SubKind: 461 | - m_Textures: [] 462 | m_Width: 48 463 | m_Height: 48 464 | m_Kind: 0 465 | m_SubKind: 466 | - m_Textures: [] 467 | m_Width: 36 468 | m_Height: 36 469 | m_Kind: 0 470 | m_SubKind: 471 | m_BuildTargetBatching: [] 472 | m_BuildTargetGraphicsJobs: 473 | - m_BuildTarget: WindowsStandaloneSupport 474 | m_GraphicsJobs: 0 475 | - m_BuildTarget: MacStandaloneSupport 476 | m_GraphicsJobs: 0 477 | - m_BuildTarget: LinuxStandaloneSupport 478 | m_GraphicsJobs: 0 479 | - m_BuildTarget: AndroidPlayer 480 | m_GraphicsJobs: 0 481 | - m_BuildTarget: iOSSupport 482 | m_GraphicsJobs: 0 483 | - m_BuildTarget: PS4Player 484 | m_GraphicsJobs: 0 485 | - m_BuildTarget: PS5Player 486 | m_GraphicsJobs: 0 487 | - m_BuildTarget: XboxOnePlayer 488 | m_GraphicsJobs: 0 489 | - m_BuildTarget: GameCoreXboxOneSupport 490 | m_GraphicsJobs: 0 491 | - m_BuildTarget: GameCoreScarlettSupport 492 | m_GraphicsJobs: 0 493 | - m_BuildTarget: Switch 494 | m_GraphicsJobs: 0 495 | - m_BuildTarget: WebGLSupport 496 | m_GraphicsJobs: 0 497 | - m_BuildTarget: MetroSupport 498 | m_GraphicsJobs: 0 499 | - m_BuildTarget: AppleTVSupport 500 | m_GraphicsJobs: 0 501 | - m_BuildTarget: BJMSupport 502 | m_GraphicsJobs: 0 503 | - m_BuildTarget: LuminSupport 504 | m_GraphicsJobs: 0 505 | - m_BuildTarget: CloudRendering 506 | m_GraphicsJobs: 0 507 | - m_BuildTarget: EmbeddedLinux 508 | m_GraphicsJobs: 0 509 | m_BuildTargetGraphicsJobMode: 510 | - m_BuildTarget: PS4Player 511 | m_GraphicsJobMode: -918683400 512 | - m_BuildTarget: XboxOnePlayer 513 | m_GraphicsJobMode: -918683400 514 | m_BuildTargetGraphicsAPIs: 515 | - m_BuildTarget: iOSSupport 516 | m_APIs: 10000000 517 | m_Automatic: 1 518 | - m_BuildTarget: AndroidPlayer 519 | m_APIs: 0b00000008000000 520 | m_Automatic: 0 521 | m_BuildTargetVRSettings: 522 | - m_BuildTarget: Android 523 | m_Enabled: 0 524 | m_Devices: 525 | - Oculus 526 | - m_BuildTarget: Metro 527 | m_Enabled: 0 528 | m_Devices: [] 529 | - m_BuildTarget: N3DS 530 | m_Enabled: 0 531 | m_Devices: [] 532 | - m_BuildTarget: PS3 533 | m_Enabled: 0 534 | m_Devices: [] 535 | - m_BuildTarget: PS4 536 | m_Enabled: 0 537 | m_Devices: 538 | - PlayStationVR 539 | - m_BuildTarget: PSM 540 | m_Enabled: 0 541 | m_Devices: [] 542 | - m_BuildTarget: PSP2 543 | m_Enabled: 0 544 | m_Devices: [] 545 | - m_BuildTarget: SamsungTV 546 | m_Enabled: 0 547 | m_Devices: [] 548 | - m_BuildTarget: Standalone 549 | m_Enabled: 0 550 | m_Devices: 551 | - Oculus 552 | - m_BuildTarget: Tizen 553 | m_Enabled: 0 554 | m_Devices: [] 555 | - m_BuildTarget: WebGL 556 | m_Enabled: 0 557 | m_Devices: [] 558 | - m_BuildTarget: WebPlayer 559 | m_Enabled: 0 560 | m_Devices: [] 561 | - m_BuildTarget: WiiU 562 | m_Enabled: 0 563 | m_Devices: [] 564 | - m_BuildTarget: Xbox360 565 | m_Enabled: 0 566 | m_Devices: [] 567 | - m_BuildTarget: XboxOne 568 | m_Enabled: 0 569 | m_Devices: [] 570 | - m_BuildTarget: iOS 571 | m_Enabled: 0 572 | m_Devices: [] 573 | - m_BuildTarget: tvOS 574 | m_Enabled: 0 575 | m_Devices: [] 576 | openGLRequireES31: 0 577 | openGLRequireES31AEP: 0 578 | openGLRequireES32: 0 579 | m_TemplateCustomTags: {} 580 | mobileMTRendering: 581 | iPhone: 1 582 | tvOS: 1 583 | m_BuildTargetGroupLightmapEncodingQuality: 584 | - m_BuildTarget: Standalone 585 | m_EncodingQuality: 1 586 | - m_BuildTarget: XboxOne 587 | m_EncodingQuality: 1 588 | - m_BuildTarget: PS4 589 | m_EncodingQuality: 1 590 | - m_BuildTarget: GameCoreScarlett 591 | m_EncodingQuality: 1 592 | - m_BuildTarget: GameCoreXboxOne 593 | m_EncodingQuality: 1 594 | m_BuildTargetGroupLightmapSettings: [] 595 | m_BuildTargetNormalMapEncoding: [] 596 | m_BuildTargetDefaultTextureCompressionFormat: [] 597 | playModeTestRunnerEnabled: 0 598 | runPlayModeTestAsEditModeTest: 0 599 | actionOnDotNetUnhandledException: 1 600 | enableInternalProfiler: 0 601 | logObjCUncaughtExceptions: 1 602 | enableCrashReportAPI: 0 603 | cameraUsageDescription: 604 | locationUsageDescription: 605 | microphoneUsageDescription: 606 | bluetoothUsageDescription: 607 | switchNMETAOverride: 608 | switchNetLibKey: 609 | switchSocketMemoryPoolSize: 6144 610 | switchSocketAllocatorPoolSize: 128 611 | switchSocketConcurrencyLimit: 14 612 | switchScreenResolutionBehavior: 2 613 | switchUseCPUProfiler: 0 614 | switchUseGOLDLinker: 0 615 | switchLTOSetting: 0 616 | switchApplicationID: 0x01004b9000490000 617 | switchNSODependencies: 618 | switchTitleNames_0: 619 | switchTitleNames_1: 620 | switchTitleNames_2: 621 | switchTitleNames_3: 622 | switchTitleNames_4: 623 | switchTitleNames_5: 624 | switchTitleNames_6: 625 | switchTitleNames_7: 626 | switchTitleNames_8: 627 | switchTitleNames_9: 628 | switchTitleNames_10: 629 | switchTitleNames_11: 630 | switchTitleNames_12: 631 | switchTitleNames_13: 632 | switchTitleNames_14: 633 | switchTitleNames_15: 634 | switchPublisherNames_0: 635 | switchPublisherNames_1: 636 | switchPublisherNames_2: 637 | switchPublisherNames_3: 638 | switchPublisherNames_4: 639 | switchPublisherNames_5: 640 | switchPublisherNames_6: 641 | switchPublisherNames_7: 642 | switchPublisherNames_8: 643 | switchPublisherNames_9: 644 | switchPublisherNames_10: 645 | switchPublisherNames_11: 646 | switchPublisherNames_12: 647 | switchPublisherNames_13: 648 | switchPublisherNames_14: 649 | switchPublisherNames_15: 650 | switchIcons_0: {fileID: 0} 651 | switchIcons_1: {fileID: 0} 652 | switchIcons_2: {fileID: 0} 653 | switchIcons_3: {fileID: 0} 654 | switchIcons_4: {fileID: 0} 655 | switchIcons_5: {fileID: 0} 656 | switchIcons_6: {fileID: 0} 657 | switchIcons_7: {fileID: 0} 658 | switchIcons_8: {fileID: 0} 659 | switchIcons_9: {fileID: 0} 660 | switchIcons_10: {fileID: 0} 661 | switchIcons_11: {fileID: 0} 662 | switchIcons_12: {fileID: 0} 663 | switchIcons_13: {fileID: 0} 664 | switchIcons_14: {fileID: 0} 665 | switchIcons_15: {fileID: 0} 666 | switchSmallIcons_0: {fileID: 0} 667 | switchSmallIcons_1: {fileID: 0} 668 | switchSmallIcons_2: {fileID: 0} 669 | switchSmallIcons_3: {fileID: 0} 670 | switchSmallIcons_4: {fileID: 0} 671 | switchSmallIcons_5: {fileID: 0} 672 | switchSmallIcons_6: {fileID: 0} 673 | switchSmallIcons_7: {fileID: 0} 674 | switchSmallIcons_8: {fileID: 0} 675 | switchSmallIcons_9: {fileID: 0} 676 | switchSmallIcons_10: {fileID: 0} 677 | switchSmallIcons_11: {fileID: 0} 678 | switchSmallIcons_12: {fileID: 0} 679 | switchSmallIcons_13: {fileID: 0} 680 | switchSmallIcons_14: {fileID: 0} 681 | switchSmallIcons_15: {fileID: 0} 682 | switchManualHTML: 683 | switchAccessibleURLs: 684 | switchLegalInformation: 685 | switchMainThreadStackSize: 1048576 686 | switchPresenceGroupId: 687 | switchLogoHandling: 0 688 | switchReleaseVersion: 0 689 | switchDisplayVersion: 1.0.0 690 | switchStartupUserAccount: 0 691 | switchTouchScreenUsage: 0 692 | switchSupportedLanguagesMask: 0 693 | switchLogoType: 0 694 | switchApplicationErrorCodeCategory: 695 | switchUserAccountSaveDataSize: 0 696 | switchUserAccountSaveDataJournalSize: 0 697 | switchApplicationAttribute: 0 698 | switchCardSpecSize: -1 699 | switchCardSpecClock: -1 700 | switchRatingsMask: 0 701 | switchRatingsInt_0: 0 702 | switchRatingsInt_1: 0 703 | switchRatingsInt_2: 0 704 | switchRatingsInt_3: 0 705 | switchRatingsInt_4: 0 706 | switchRatingsInt_5: 0 707 | switchRatingsInt_6: 0 708 | switchRatingsInt_7: 0 709 | switchRatingsInt_8: 0 710 | switchRatingsInt_9: 0 711 | switchRatingsInt_10: 0 712 | switchRatingsInt_11: 0 713 | switchRatingsInt_12: 0 714 | switchLocalCommunicationIds_0: 715 | switchLocalCommunicationIds_1: 716 | switchLocalCommunicationIds_2: 717 | switchLocalCommunicationIds_3: 718 | switchLocalCommunicationIds_4: 719 | switchLocalCommunicationIds_5: 720 | switchLocalCommunicationIds_6: 721 | switchLocalCommunicationIds_7: 722 | switchParentalControl: 0 723 | switchAllowsScreenshot: 1 724 | switchAllowsVideoCapturing: 1 725 | switchAllowsRuntimeAddOnContentInstall: 0 726 | switchDataLossConfirmation: 0 727 | switchUserAccountLockEnabled: 0 728 | switchSystemResourceMemory: 16777216 729 | switchSupportedNpadStyles: 22 730 | switchNativeFsCacheSize: 32 731 | switchIsHoldTypeHorizontal: 0 732 | switchSupportedNpadCount: 8 733 | switchSocketConfigEnabled: 0 734 | switchTcpInitialSendBufferSize: 32 735 | switchTcpInitialReceiveBufferSize: 64 736 | switchTcpAutoSendBufferSizeMax: 256 737 | switchTcpAutoReceiveBufferSizeMax: 256 738 | switchUdpSendBufferSize: 9 739 | switchUdpReceiveBufferSize: 42 740 | switchSocketBufferEfficiency: 4 741 | switchSocketInitializeEnabled: 1 742 | switchNetworkInterfaceManagerInitializeEnabled: 1 743 | switchPlayerConnectionEnabled: 1 744 | switchUseNewStyleFilepaths: 0 745 | switchUseMicroSleepForYield: 1 746 | switchEnableRamDiskSupport: 0 747 | switchMicroSleepForYieldTime: 25 748 | switchRamDiskSpaceSize: 12 749 | ps4NPAgeRating: 12 750 | ps4NPTitleSecret: 751 | ps4NPTrophyPackPath: 752 | ps4ParentalLevel: 1 753 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 754 | ps4Category: 0 755 | ps4MasterVersion: 01.00 756 | ps4AppVersion: 01.00 757 | ps4AppType: 0 758 | ps4ParamSfxPath: 759 | ps4VideoOutPixelFormat: 0 760 | ps4VideoOutInitialWidth: 1920 761 | ps4VideoOutBaseModeInitialWidth: 1920 762 | ps4VideoOutReprojectionRate: 60 763 | ps4PronunciationXMLPath: 764 | ps4PronunciationSIGPath: 765 | ps4BackgroundImagePath: 766 | ps4StartupImagePath: 767 | ps4StartupImagesFolder: 768 | ps4IconImagesFolder: 769 | ps4SaveDataImagePath: 770 | ps4SdkOverride: 771 | ps4BGMPath: 772 | ps4ShareFilePath: 773 | ps4ShareOverlayImagePath: 774 | ps4PrivacyGuardImagePath: 775 | ps4ExtraSceSysFile: 776 | ps4NPtitleDatPath: 777 | ps4RemotePlayKeyAssignment: -1 778 | ps4RemotePlayKeyMappingDir: 779 | ps4PlayTogetherPlayerCount: 0 780 | ps4EnterButtonAssignment: 1 781 | ps4ApplicationParam1: 0 782 | ps4ApplicationParam2: 0 783 | ps4ApplicationParam3: 0 784 | ps4ApplicationParam4: 0 785 | ps4DownloadDataSize: 0 786 | ps4GarlicHeapSize: 2048 787 | ps4ProGarlicHeapSize: 2560 788 | playerPrefsMaxSize: 32768 789 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 790 | ps4pnSessions: 1 791 | ps4pnPresence: 1 792 | ps4pnFriends: 1 793 | ps4pnGameCustomData: 1 794 | playerPrefsSupport: 0 795 | enableApplicationExit: 0 796 | resetTempFolder: 1 797 | restrictedAudioUsageRights: 0 798 | ps4UseResolutionFallback: 0 799 | ps4ReprojectionSupport: 0 800 | ps4UseAudio3dBackend: 0 801 | ps4UseLowGarlicFragmentationMode: 1 802 | ps4SocialScreenEnabled: 0 803 | ps4ScriptOptimizationLevel: 2 804 | ps4Audio3dVirtualSpeakerCount: 14 805 | ps4attribCpuUsage: 0 806 | ps4PatchPkgPath: 807 | ps4PatchLatestPkgPath: 808 | ps4PatchChangeinfoPath: 809 | ps4PatchDayOne: 0 810 | ps4attribUserManagement: 0 811 | ps4attribMoveSupport: 0 812 | ps4attrib3DSupport: 0 813 | ps4attribShareSupport: 0 814 | ps4attribExclusiveVR: 0 815 | ps4disableAutoHideSplash: 0 816 | ps4videoRecordingFeaturesUsed: 0 817 | ps4contentSearchFeaturesUsed: 0 818 | ps4CompatibilityPS5: 0 819 | ps4GPU800MHz: 1 820 | ps4attribEyeToEyeDistanceSettingVR: 0 821 | ps4IncludedModules: [] 822 | ps4attribVROutputEnabled: 0 823 | monoEnv: 824 | splashScreenBackgroundSourceLandscape: {fileID: 0} 825 | splashScreenBackgroundSourcePortrait: {fileID: 0} 826 | blurSplashScreenBackground: 1 827 | spritePackerPolicy: 828 | webGLMemorySize: 32 829 | webGLExceptionSupport: 1 830 | webGLNameFilesAsHashes: 0 831 | webGLDataCaching: 1 832 | webGLDebugSymbols: 0 833 | webGLEmscriptenArgs: 834 | webGLModulesDirectory: 835 | webGLTemplate: APPLICATION:Default 836 | webGLAnalyzeBuildSize: 0 837 | webGLUseEmbeddedResources: 0 838 | webGLCompressionFormat: 0 839 | webGLWasmArithmeticExceptions: 0 840 | webGLLinkerTarget: 1 841 | webGLThreadsSupport: 0 842 | webGLDecompressionFallback: 0 843 | scriptingDefineSymbols: 844 | Standalone: 845 | additionalCompilerArguments: {} 846 | platformArchitecture: 847 | iOS: 2 848 | scriptingBackend: 849 | Android: 1 850 | Standalone: 0 851 | WebPlayer: 0 852 | iOS: 1 853 | il2cppCompilerConfiguration: {} 854 | managedStrippingLevel: {} 855 | incrementalIl2cppBuild: {} 856 | suppressCommonWarnings: 0 857 | allowUnsafeCode: 0 858 | useDeterministicCompilation: 1 859 | enableRoslynAnalyzers: 1 860 | additionalIl2CppArgs: 861 | scriptingRuntimeVersion: 1 862 | gcIncremental: 1 863 | assemblyVersionValidation: 1 864 | gcWBarrierValidation: 0 865 | apiCompatibilityLevelPerPlatform: {} 866 | m_RenderingPath: 1 867 | m_MobileRenderingPath: 1 868 | metroPackageName: RustPluginTest 869 | metroPackageVersion: 870 | metroCertificatePath: 871 | metroCertificatePassword: 872 | metroCertificateSubject: 873 | metroCertificateIssuer: 874 | metroCertificateNotAfter: 0000000000000000 875 | metroApplicationDescription: RustPluginTest 876 | wsaImages: {} 877 | metroTileShortName: 878 | metroTileShowName: 0 879 | metroMediumTileShowName: 0 880 | metroLargeTileShowName: 0 881 | metroWideTileShowName: 0 882 | metroSupportStreamingInstall: 0 883 | metroLastRequiredScene: 0 884 | metroDefaultTileSize: 1 885 | metroTileForegroundText: 1 886 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 887 | metroSplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, 888 | a: 1} 889 | metroSplashScreenUseBackgroundColor: 1 890 | platformCapabilities: {} 891 | metroTargetDeviceFamilies: {} 892 | metroFTAName: 893 | metroFTAFileTypes: [] 894 | metroProtocolName: 895 | XboxOneProductId: 896 | XboxOneUpdateKey: 897 | XboxOneSandboxId: 898 | XboxOneContentId: 899 | XboxOneTitleId: 900 | XboxOneSCId: 901 | XboxOneGameOsOverridePath: 902 | XboxOnePackagingOverridePath: 903 | XboxOneAppManifestOverridePath: 904 | XboxOneVersion: 1.0.0.0 905 | XboxOnePackageEncryption: 0 906 | XboxOnePackageUpdateGranularity: 2 907 | XboxOneDescription: 908 | XboxOneLanguage: 909 | - enus 910 | XboxOneCapability: [] 911 | XboxOneGameRating: {} 912 | XboxOneIsContentPackage: 0 913 | XboxOneEnhancedXboxCompatibilityMode: 0 914 | XboxOneEnableGPUVariability: 0 915 | XboxOneSockets: {} 916 | XboxOneSplashScreen: {fileID: 0} 917 | XboxOneAllowedProductIds: [] 918 | XboxOnePersistentLocalStorageSize: 0 919 | XboxOneXTitleMemory: 8 920 | XboxOneOverrideIdentityName: 921 | XboxOneOverrideIdentityPublisher: 922 | vrEditorSettings: {} 923 | cloudServicesEnabled: 924 | Analytics: 0 925 | Build: 0 926 | Collab: 0 927 | ErrorHub: 0 928 | Game_Performance: 0 929 | Hub: 0 930 | Purchasing: 0 931 | UNet: 0 932 | Unity_Ads: 0 933 | luminIcon: 934 | m_Name: 935 | m_ModelFolderPath: 936 | m_PortalFolderPath: 937 | luminCert: 938 | m_CertPath: 939 | m_SignPackage: 1 940 | luminIsChannelApp: 0 941 | luminVersion: 942 | m_VersionCode: 1 943 | m_VersionName: 944 | apiCompatibilityLevel: 6 945 | activeInputHandler: 0 946 | cloudProjectId: 947 | framebufferDepthMemorylessMode: 0 948 | qualitySettingsNames: [] 949 | projectName: 950 | organizationId: 951 | cloudEnabled: 0 952 | legacyClampBlendShapeWeights: 1 953 | playerDataPath: 954 | forceSRGBBlit: 1 955 | virtualTexturingSupportEnabled: 0 956 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.2.8f1 2 | m_EditorVersionWithRevision: 2021.2.8f1 (d0e5f0a7b06a) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Good 11 | pixelLightCount: 2 12 | shadows: 2 13 | shadowResolution: 1 14 | shadowProjection: 1 15 | shadowCascades: 2 16 | shadowDistance: 40 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 1 21 | skinWeights: 2 22 | textureQuality: 0 23 | anisotropicTextures: 1 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 1 27 | realtimeReflectionProbes: 1 28 | billboardsFaceCameraPosition: 1 29 | vSyncCount: 1 30 | lodBias: 1 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 256 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 4 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | m_PerPlatformDefaultQuality: 46 | Android: 0 47 | BlackBerry: 0 48 | GLES Emulation: 0 49 | Nintendo 3DS: 0 50 | PS3: 0 51 | PS4: 0 52 | PSM: 0 53 | PSP2: 0 54 | Samsung TV: 0 55 | Server: 0 56 | Standalone: 0 57 | Tizen: 0 58 | WP8: 0 59 | Web: 0 60 | WebGL: 0 61 | WiiU: 0 62 | Windows Store Apps: 0 63 | XBOX360: 0 64 | XboxOne: 0 65 | iPhone: 0 66 | tvOS: 0 67 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /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 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /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_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | m_CompiledVersion: 0 14 | m_RuntimeVersion: 0 15 | m_RuntimeResources: {fileID: 0} 16 | -------------------------------------------------------------------------------- /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/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustPlugin/4128e4b4f5b1ea1e3f0835969353369ed1e39645/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | UnityRustPlugin 2 | =============== 3 | 4 | ![Mandelbrot](http://66.media.tumblr.com/365885c6c0ef6c5a8fe2679969f2f46a/tumblr_oedb20nNKU1qio469o1_640.png) 5 | 6 | This Unity sample project shows how to write a native plugin in the 7 | [Rust language]. 8 | 9 | The sample plugin constructs the Mandelbrot set in a big array (1024x1024x4 10 | byte) shared from a C# script. Then the C# script converts it into a 2D texture 11 | to draw on the screen. See the [plugin code] and the [caller script] for 12 | further details. 13 | 14 | This project was inspired by [Jim Flemming's article]. It's recommended to 15 | check the article if interested in the topic. 16 | 17 | [Rust language]: https://www.rust-lang.org 18 | [plugin code]: Plugin/src/lib.rs 19 | [caller script]: Assets/Test.cs 20 | [Jim Flemming's article]: 21 | https://medium.com/jim-fleming/rust-lang-in-unity3d-eeaeb47f3a77 22 | 23 | How to build the plugin 24 | ----------------------- 25 | 26 | The source code for the plugin is contained in the `Plugin` directory. 27 | 28 | ### macOS/Linux 29 | 30 | You can simply run `build.sh` to build the plugin. 31 | 32 | ### Windows 33 | 34 | There are some different approaches for Windows. I prefer using WSL2 and the 35 | cross-compilation target. 36 | 37 | For cross-compilation from WSL2 to Windows, you have to install MinGW-w64 and 38 | the `x86_64-pc-windows-gnu` target. 39 | 40 | ``` 41 | sudo apt install gcc-mingw-w64-x86-64 42 | rustup target add x86_64-pc-windows-gnu 43 | ``` 44 | 45 | Now you can run `build.sh`. 46 | 47 | ### iOS 48 | 49 | Install the `aarch64-apple-ios` target. 50 | 51 | ``` 52 | rustup target add aarch64-apple-ios 53 | ``` 54 | 55 | Run `build.sh` with passing `ios` to build the plugin. 56 | 57 | ``` 58 | ./build.sh ios 59 | ``` 60 | 61 | ### Android 62 | 63 | You have to install NDK and set the `ANDROID_NDK` environment variable to 64 | specify the installation directory. 65 | 66 | Then, install the `aarch64-linux-android` target. 67 | 68 | ``` 69 | rustup target add aarch64-linux-android 70 | ``` 71 | 72 | Run `build.sh` with passing `android` to build the plugin. 73 | 74 | ``` 75 | ./build.sh android 76 | ``` 77 | --------------------------------------------------------------------------------