├── .gitignore ├── Example ├── Assets │ ├── Example.cs │ ├── Example.cs.meta │ ├── Example.mm │ ├── Example.mm.meta │ ├── Example.swift │ ├── Example.swift.meta │ ├── ExampleCallbackHandler.cs │ ├── ExampleCallbackHandler.cs.meta │ ├── Main.meta │ ├── Main │ │ ├── Cube.cs │ │ ├── Cube.cs.meta │ │ ├── Cube.physicMaterial │ │ ├── Cube.physicMaterial.meta │ │ ├── Cube.prefab │ │ ├── Cube.prefab.meta │ │ ├── CubeGenerator.cs │ │ ├── CubeGenerator.cs.meta │ │ ├── Ground.physicMaterial │ │ ├── Ground.physicMaterial.meta │ │ ├── Ground.prefab │ │ ├── Ground.prefab.meta │ │ ├── Main.unity │ │ ├── Main.unity.meta │ │ ├── Rotator.cs │ │ └── Rotator.cs.meta │ ├── Objects.meta │ ├── Objects │ │ ├── Cube.fbx │ │ ├── Cube.fbx.meta │ │ ├── Ground.mat │ │ ├── Ground.mat.meta │ │ ├── Ground.png │ │ ├── Ground.png.meta │ │ ├── Materials.meta │ │ └── Materials │ │ │ ├── CubeMat.mat │ │ │ └── CubeMat.mat.meta │ ├── UIController.cs │ ├── UIController.cs.meta │ ├── UnitySwift.meta │ └── UnitySwift │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── PostProcessor.cs │ │ └── PostProcessor.cs.meta │ │ ├── UnitySwift-Bridging-Header.h │ │ └── UnitySwift-Bridging-Header.h.meta └── ProjectSettings │ ├── AudioManager.asset │ ├── ClusterInputManager.asset │ ├── DynamicsManager.asset │ ├── EditorBuildSettings.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── InputManager.asset │ ├── NavMeshAreas.asset │ ├── NetworkManager.asset │ ├── Physics2DSettings.asset │ ├── ProjectSettings.asset │ ├── ProjectVersion.txt │ ├── QualitySettings.asset │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── UnityAdsSettings.asset │ └── UnityConnectSettings.asset ├── README.md └── unity-swift.unitypackage /.gitignore: -------------------------------------------------------------------------------- 1 | /Example/[Ll]ibrary/ 2 | /Example/[Tt]emp/ 3 | /Example/[Oo]bj/ 4 | /Example/[Bb]uild*/ 5 | /Example/[Bb]uilds/ 6 | /Example/Assets/AssetStoreTools* 7 | 8 | # Autogenerated VS/MD solution and project files 9 | ExportedObj/ 10 | *.csproj 11 | *.unityproj 12 | *.sln 13 | *.suo 14 | *.tmp 15 | *.user 16 | *.userprefs 17 | *.pidb 18 | *.booproj 19 | *.svd 20 | 21 | # Unity3D generated meta files 22 | *.pidb.meta 23 | 24 | # Unity3D Generated File On Crash Reports 25 | sysinfo.txt 26 | 27 | # Builds 28 | *.apk 29 | 30 | *.sublime-project 31 | *.sublime-workspace 32 | -------------------------------------------------------------------------------- /Example/Assets/Example.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | 3 | public class Example { 4 | #if UNITY_IOS && !UNITY_EDITOR 5 | [DllImport("__Internal")] 6 | private static extern void _ex_callSwiftMethod(string message); 7 | #endif 8 | 9 | // Use this method to call Example.swiftMethod() in Example.swift 10 | // from other C# classes. 11 | public static void CallSwiftMethod(string message) { 12 | #if UNITY_IOS && !UNITY_EDITOR 13 | _ex_callSwiftMethod(message); 14 | #endif 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Example/Assets/Example.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6e3bfb55659d4c82b006709f67b4e17 3 | timeCreated: 1468132373 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Example/Assets/Example.mm: -------------------------------------------------------------------------------- 1 | // 2 | // Example.mm 3 | // Unity-iPhone 4 | // 5 | // Created by Masayuki Iwai on 7/10/16. 6 | // 7 | // 8 | 9 | #import 10 | #import "unityswift-Swift.h" 11 | 12 | extern "C" { 13 | void _ex_callSwiftMethod(const char *message) { 14 | // You can access Swift classes directly here. 15 | [Example swiftMethod:[NSString stringWithUTF8String:message]]; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/Assets/Example.mm.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05e7b13a132bc4a26af25fbbe4a76a2f 3 | timeCreated: 1468131882 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | userData: 15 | assetBundleName: 16 | assetBundleVariant: 17 | -------------------------------------------------------------------------------- /Example/Assets/Example.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Example.swift 3 | // Unity-iPhone 4 | // 5 | // Created by Masayuki Iwai on 7/10/16. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | class Example : NSObject { 12 | static func callUnityMethod(_ message: String) { 13 | // Call a method on a specified GameObject. 14 | UnitySendMessage("CallbackTarget", "OnCallFromSwift", message) 15 | } 16 | 17 | static func swiftMethod(_ message: String) { 18 | print("\(#function) is called with message: \(message)") 19 | 20 | self.callUnityMethod("Hello, Unity!") 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Example/Assets/Example.swift.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 568f6ccd5f74747bc9d7073009664612 3 | timeCreated: 1468131882 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | userData: 15 | assetBundleName: 16 | assetBundleVariant: 17 | -------------------------------------------------------------------------------- /Example/Assets/ExampleCallbackHandler.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using System.Collections; 4 | 5 | public class ExampleCallbackHandler : MonoBehaviour { 6 | [SerializeField] private Text textLabel; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | 16 | } 17 | 18 | public void OnCallFromSwift(string message) { 19 | Debug.Log("OnCallFromSwift is called with message: " + message); 20 | textLabel.text = message; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Example/Assets/ExampleCallbackHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0959ee299a1fb4839945370024b4b6df 3 | timeCreated: 1468132574 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Example/Assets/Main.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a074d7fa4c72f4cf8b0951b049e75cc5 3 | folderAsset: yes 4 | timeCreated: 1466098290 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example/Assets/Main/Cube.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class Cube : MonoBehaviour { 5 | 6 | [SerializeField] private float minimumY; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | 16 | if(transform.localPosition.y < minimumY) 17 | { 18 | Destroy(gameObject); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/Assets/Main/Cube.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6e4a7988e3de4ce9aa86290de21ee7a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Example/Assets/Main/Cube.physicMaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Cube 9 | dynamicFriction: 1 10 | staticFriction: 1 11 | bounciness: 0.5 12 | frictionCombine: 3 13 | bounceCombine: 1 14 | -------------------------------------------------------------------------------- /Example/Assets/Main/Cube.physicMaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76c578d2d139941f79573e4ca1f4c074 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/Main/Cube.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 33: {fileID: 3300000} 12 | - 23: {fileID: 2300000} 13 | - 65: {fileID: 6500000} 14 | - 54: {fileID: 5400000} 15 | - 114: {fileID: 11400000} 16 | m_Layer: 0 17 | m_Name: Cube 18 | m_TagString: Untagged 19 | m_Icon: {fileID: 0} 20 | m_NavMeshLayer: 0 21 | m_StaticEditorFlags: 0 22 | m_IsActive: 1 23 | --- !u!4 &400000 24 | Transform: 25 | m_ObjectHideFlags: 1 26 | m_PrefabParentObject: {fileID: 0} 27 | m_PrefabInternal: {fileID: 100100000} 28 | m_GameObject: {fileID: 100000} 29 | m_LocalRotation: {x: 0, y: -0, z: 0, w: 1} 30 | m_LocalPosition: {x: 0, y: 0, z: 0} 31 | m_LocalScale: {x: 1.5, y: 1.5, z: 1.5} 32 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 33 | m_Children: [] 34 | m_Father: {fileID: 0} 35 | m_RootOrder: 0 36 | --- !u!23 &2300000 37 | MeshRenderer: 38 | m_ObjectHideFlags: 1 39 | m_PrefabParentObject: {fileID: 0} 40 | m_PrefabInternal: {fileID: 100100000} 41 | m_GameObject: {fileID: 100000} 42 | m_Enabled: 1 43 | m_CastShadows: 1 44 | m_ReceiveShadows: 1 45 | m_Materials: 46 | - {fileID: 2100000, guid: 28f5d80159b894236b743fbef4450e07, type: 2} 47 | m_SubsetIndices: 48 | m_StaticBatchRoot: {fileID: 0} 49 | m_UseLightProbes: 0 50 | m_ReflectionProbeUsage: 1 51 | m_ProbeAnchor: {fileID: 0} 52 | m_ScaleInLightmap: 1 53 | m_PreserveUVs: 0 54 | m_IgnoreNormalsForChartDetection: 0 55 | m_ImportantGI: 0 56 | m_MinimumChartSize: 4 57 | m_AutoUVMaxDistance: 0.5 58 | m_AutoUVMaxAngle: 89 59 | m_LightmapParameters: {fileID: 0} 60 | m_SortingLayerID: 0 61 | m_SortingOrder: 0 62 | --- !u!33 &3300000 63 | MeshFilter: 64 | m_ObjectHideFlags: 1 65 | m_PrefabParentObject: {fileID: 0} 66 | m_PrefabInternal: {fileID: 100100000} 67 | m_GameObject: {fileID: 100000} 68 | m_Mesh: {fileID: 4300000, guid: 9164d45b2c5974ab48fb582a60937976, type: 3} 69 | --- !u!54 &5400000 70 | Rigidbody: 71 | m_ObjectHideFlags: 1 72 | m_PrefabParentObject: {fileID: 0} 73 | m_PrefabInternal: {fileID: 100100000} 74 | m_GameObject: {fileID: 100000} 75 | serializedVersion: 2 76 | m_Mass: 100 77 | m_Drag: 0 78 | m_AngularDrag: 0.005 79 | m_UseGravity: 1 80 | m_IsKinematic: 0 81 | m_Interpolate: 0 82 | m_Constraints: 0 83 | m_CollisionDetection: 0 84 | --- !u!65 &6500000 85 | BoxCollider: 86 | m_ObjectHideFlags: 1 87 | m_PrefabParentObject: {fileID: 0} 88 | m_PrefabInternal: {fileID: 100100000} 89 | m_GameObject: {fileID: 100000} 90 | m_Material: {fileID: 13400000, guid: 76c578d2d139941f79573e4ca1f4c074, type: 2} 91 | m_IsTrigger: 0 92 | m_Enabled: 1 93 | serializedVersion: 2 94 | m_Size: {x: 1, y: 1, z: 1} 95 | m_Center: {x: 0, y: 0, z: 0} 96 | --- !u!114 &11400000 97 | MonoBehaviour: 98 | m_ObjectHideFlags: 1 99 | m_PrefabParentObject: {fileID: 0} 100 | m_PrefabInternal: {fileID: 100100000} 101 | m_GameObject: {fileID: 100000} 102 | m_Enabled: 1 103 | m_EditorHideFlags: 0 104 | m_Script: {fileID: 11500000, guid: c6e4a7988e3de4ce9aa86290de21ee7a, type: 3} 105 | m_Name: 106 | m_EditorClassIdentifier: 107 | minimumY: -1000 108 | --- !u!1001 &100100000 109 | Prefab: 110 | m_ObjectHideFlags: 1 111 | serializedVersion: 2 112 | m_Modification: 113 | m_TransformParent: {fileID: 0} 114 | m_Modifications: [] 115 | m_RemovedComponents: [] 116 | m_ParentPrefab: {fileID: 0} 117 | m_RootGameObject: {fileID: 100000} 118 | m_IsPrefabParent: 1 119 | -------------------------------------------------------------------------------- /Example/Assets/Main/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ffa70fbea3774da7afa19a0bd99dd2a 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/Main/CubeGenerator.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class CubeGenerator : MonoBehaviour { 5 | 6 | [SerializeField] private GameObject cubePrefab; 7 | [SerializeField] private float generateInterval; 8 | private float lastGeneratedTime; 9 | 10 | // Use this for initialization 11 | void Start () { 12 | 13 | Generate(); 14 | } 15 | 16 | // Update is called once per frame 17 | void Update () { 18 | 19 | if(Time.time - lastGeneratedTime >= generateInterval) 20 | { 21 | Generate(); 22 | } 23 | } 24 | 25 | public void Generate() 26 | { 27 | GameObject obj = Instantiate(cubePrefab) as GameObject; 28 | obj.transform.parent = transform; 29 | obj.transform.localScale = cubePrefab.transform.localScale; 30 | obj.transform.position = transform.position; 31 | obj.transform.rotation = Random.rotation; 32 | 33 | lastGeneratedTime = Time.time; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Example/Assets/Main/CubeGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49ff4d964d64b42949cd6585f21e4e9e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Example/Assets/Main/Ground.physicMaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Ground 9 | dynamicFriction: 1 10 | staticFriction: 1 11 | bounciness: 0.25 12 | frictionCombine: 3 13 | bounceCombine: 1 14 | -------------------------------------------------------------------------------- /Example/Assets/Main/Ground.physicMaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8905745eacbe475082aae69329d35da 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/Main/Ground.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &187822 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 487822} 11 | - 33: {fileID: 3327382} 12 | - 23: {fileID: 2327624} 13 | - 65: {fileID: 6587822} 14 | - 54: {fileID: 5491232} 15 | m_Layer: 0 16 | m_Name: Ground 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &487822 23 | Transform: 24 | m_ObjectHideFlags: 1 25 | m_PrefabParentObject: {fileID: 0} 26 | m_PrefabInternal: {fileID: 100100000} 27 | m_GameObject: {fileID: 187822} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: -0, y: 0, z: 0} 30 | m_LocalScale: {x: 8, y: 8, z: 8} 31 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | --- !u!23 &2327624 36 | MeshRenderer: 37 | m_ObjectHideFlags: 1 38 | m_PrefabParentObject: {fileID: 0} 39 | m_PrefabInternal: {fileID: 100100000} 40 | m_GameObject: {fileID: 187822} 41 | m_Enabled: 1 42 | m_CastShadows: 1 43 | m_ReceiveShadows: 1 44 | m_Materials: 45 | - {fileID: 2100000, guid: b23bb6da9100f493db9cdc3763b9f52e, type: 2} 46 | m_SubsetIndices: 47 | m_StaticBatchRoot: {fileID: 0} 48 | m_UseLightProbes: 0 49 | m_ReflectionProbeUsage: 1 50 | m_ProbeAnchor: {fileID: 0} 51 | m_ScaleInLightmap: 1 52 | m_PreserveUVs: 0 53 | m_IgnoreNormalsForChartDetection: 0 54 | m_ImportantGI: 0 55 | m_MinimumChartSize: 4 56 | m_AutoUVMaxDistance: 0.5 57 | m_AutoUVMaxAngle: 89 58 | m_LightmapParameters: {fileID: 0} 59 | m_SortingLayerID: 0 60 | m_SortingOrder: 0 61 | --- !u!33 &3327382 62 | MeshFilter: 63 | m_ObjectHideFlags: 1 64 | m_PrefabParentObject: {fileID: 0} 65 | m_PrefabInternal: {fileID: 100100000} 66 | m_GameObject: {fileID: 187822} 67 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 68 | --- !u!54 &5491232 69 | Rigidbody: 70 | m_ObjectHideFlags: 1 71 | m_PrefabParentObject: {fileID: 0} 72 | m_PrefabInternal: {fileID: 100100000} 73 | m_GameObject: {fileID: 187822} 74 | serializedVersion: 2 75 | m_Mass: 1 76 | m_Drag: 0 77 | m_AngularDrag: 0.005 78 | m_UseGravity: 1 79 | m_IsKinematic: 1 80 | m_Interpolate: 0 81 | m_Constraints: 0 82 | m_CollisionDetection: 1 83 | --- !u!65 &6587822 84 | BoxCollider: 85 | m_ObjectHideFlags: 1 86 | m_PrefabParentObject: {fileID: 0} 87 | m_PrefabInternal: {fileID: 100100000} 88 | m_GameObject: {fileID: 187822} 89 | m_Material: {fileID: 13400000, guid: f8905745eacbe475082aae69329d35da, type: 2} 90 | m_IsTrigger: 0 91 | m_Enabled: 1 92 | serializedVersion: 2 93 | m_Size: {x: 1, y: 1, z: 1} 94 | m_Center: {x: 0, y: 0, z: 0} 95 | --- !u!1001 &100100000 96 | Prefab: 97 | m_ObjectHideFlags: 1 98 | serializedVersion: 2 99 | m_Modification: 100 | m_TransformParent: {fileID: 0} 101 | m_Modifications: [] 102 | m_RemovedComponents: [] 103 | m_ParentPrefab: {fileID: 0} 104 | m_RootGameObject: {fileID: 187822} 105 | m_IsPrefabParent: 1 106 | -------------------------------------------------------------------------------- /Example/Assets/Main/Ground.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b24595f25cc564ccfb07eade73a1052f 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/Main/Main.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: 0.25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 6 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.2, g: 0.2, b: 0.2, a: 1} 24 | m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} 25 | m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SkyboxMaterial: {fileID: 0} 29 | m_HaloStrength: 0.5 30 | m_FlareStrength: 1 31 | m_FlareFadeSpeed: 3 32 | m_HaloTexture: {fileID: 0} 33 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 34 | m_DefaultReflectionMode: 0 35 | m_DefaultReflectionResolution: 128 36 | m_ReflectionBounces: 1 37 | m_ReflectionIntensity: 1 38 | m_CustomReflection: {fileID: 0} 39 | m_Sun: {fileID: 0} 40 | --- !u!157 &4 41 | LightmapSettings: 42 | m_ObjectHideFlags: 0 43 | serializedVersion: 6 44 | m_GIWorkflowMode: 1 45 | m_LightmapsMode: 1 46 | m_GISettings: 47 | serializedVersion: 2 48 | m_BounceScale: 1 49 | m_IndirectOutputScale: 1 50 | m_AlbedoBoost: 1 51 | m_TemporalCoherenceThreshold: 1 52 | m_EnvironmentLightingMode: 0 53 | m_EnableBakedLightmaps: 1 54 | m_EnableRealtimeLightmaps: 0 55 | m_LightmapEditorSettings: 56 | serializedVersion: 3 57 | m_Resolution: 1 58 | m_BakeResolution: 50 59 | m_TextureWidth: 1024 60 | m_TextureHeight: 1024 61 | m_AOMaxDistance: 1 62 | m_Padding: 2 63 | m_CompAOExponent: 0 64 | m_LightmapParameters: {fileID: 0} 65 | m_TextureCompression: 0 66 | m_FinalGather: 0 67 | m_FinalGatherRayCount: 1024 68 | m_ReflectionCompression: 2 69 | m_LightingDataAsset: {fileID: 0} 70 | m_RuntimeCPUUsage: 25 71 | --- !u!196 &5 72 | NavMeshSettings: 73 | serializedVersion: 2 74 | m_ObjectHideFlags: 0 75 | m_BuildSettings: 76 | serializedVersion: 2 77 | agentRadius: 0.5 78 | agentHeight: 2 79 | agentSlope: 45 80 | agentClimb: 0.4 81 | ledgeDropHeight: 0 82 | maxJumpAcrossDistance: 0 83 | accuratePlacement: 0 84 | minRegionArea: 2 85 | cellSize: 0.16666666 86 | manualCellSize: 0 87 | m_NavMeshData: {fileID: 0} 88 | --- !u!1001 &18423451 89 | Prefab: 90 | m_ObjectHideFlags: 0 91 | serializedVersion: 2 92 | m_Modification: 93 | m_TransformParent: {fileID: 942142586} 94 | m_Modifications: 95 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 96 | propertyPath: m_LocalPosition.x 97 | value: 8 98 | objectReference: {fileID: 0} 99 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 100 | propertyPath: m_LocalPosition.y 101 | value: -4 102 | objectReference: {fileID: 0} 103 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 104 | propertyPath: m_LocalPosition.z 105 | value: -8 106 | objectReference: {fileID: 0} 107 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 108 | propertyPath: m_LocalRotation.x 109 | value: 0 110 | objectReference: {fileID: 0} 111 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 112 | propertyPath: m_LocalRotation.y 113 | value: 0 114 | objectReference: {fileID: 0} 115 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 116 | propertyPath: m_LocalRotation.z 117 | value: 0 118 | objectReference: {fileID: 0} 119 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 120 | propertyPath: m_LocalRotation.w 121 | value: 1 122 | objectReference: {fileID: 0} 123 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 124 | propertyPath: m_RootOrder 125 | value: 8 126 | objectReference: {fileID: 0} 127 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 128 | propertyPath: m_LocalScale.x 129 | value: 8 130 | objectReference: {fileID: 0} 131 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 132 | propertyPath: m_LocalScale.y 133 | value: 8 134 | objectReference: {fileID: 0} 135 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 136 | propertyPath: m_LocalScale.z 137 | value: 8 138 | objectReference: {fileID: 0} 139 | m_RemovedComponents: [] 140 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 141 | m_IsPrefabParent: 0 142 | --- !u!1001 &92825394 143 | Prefab: 144 | m_ObjectHideFlags: 0 145 | serializedVersion: 2 146 | m_Modification: 147 | m_TransformParent: {fileID: 942142586} 148 | m_Modifications: 149 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 150 | propertyPath: m_LocalPosition.x 151 | value: 0 152 | objectReference: {fileID: 0} 153 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 154 | propertyPath: m_LocalPosition.y 155 | value: -1 156 | objectReference: {fileID: 0} 157 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 158 | propertyPath: m_LocalPosition.z 159 | value: -8 160 | objectReference: {fileID: 0} 161 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 162 | propertyPath: m_LocalRotation.x 163 | value: 0 164 | objectReference: {fileID: 0} 165 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 166 | propertyPath: m_LocalRotation.y 167 | value: 0 168 | objectReference: {fileID: 0} 169 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 170 | propertyPath: m_LocalRotation.z 171 | value: 0 172 | objectReference: {fileID: 0} 173 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 174 | propertyPath: m_LocalRotation.w 175 | value: 1 176 | objectReference: {fileID: 0} 177 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 178 | propertyPath: m_RootOrder 179 | value: 7 180 | objectReference: {fileID: 0} 181 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 182 | propertyPath: m_LocalScale.x 183 | value: 8 184 | objectReference: {fileID: 0} 185 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 186 | propertyPath: m_LocalScale.y 187 | value: 8 188 | objectReference: {fileID: 0} 189 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 190 | propertyPath: m_LocalScale.z 191 | value: 8 192 | objectReference: {fileID: 0} 193 | m_RemovedComponents: [] 194 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 195 | m_IsPrefabParent: 0 196 | --- !u!1 &160424577 197 | GameObject: 198 | m_ObjectHideFlags: 0 199 | m_PrefabParentObject: {fileID: 0} 200 | m_PrefabInternal: {fileID: 0} 201 | serializedVersion: 4 202 | m_Component: 203 | - 224: {fileID: 160424580} 204 | - 222: {fileID: 160424579} 205 | - 114: {fileID: 160424578} 206 | m_Layer: 5 207 | m_Name: TextLabel 208 | m_TagString: Untagged 209 | m_Icon: {fileID: 0} 210 | m_NavMeshLayer: 0 211 | m_StaticEditorFlags: 0 212 | m_IsActive: 1 213 | --- !u!114 &160424578 214 | MonoBehaviour: 215 | m_ObjectHideFlags: 0 216 | m_PrefabParentObject: {fileID: 0} 217 | m_PrefabInternal: {fileID: 0} 218 | m_GameObject: {fileID: 160424577} 219 | m_Enabled: 1 220 | m_EditorHideFlags: 0 221 | m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 222 | m_Name: 223 | m_EditorClassIdentifier: 224 | m_Material: {fileID: 0} 225 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 226 | m_RaycastTarget: 1 227 | m_OnCullStateChanged: 228 | m_PersistentCalls: 229 | m_Calls: [] 230 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 231 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 232 | m_FontData: 233 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 234 | m_FontSize: 28 235 | m_FontStyle: 0 236 | m_BestFit: 0 237 | m_MinSize: 2 238 | m_MaxSize: 40 239 | m_Alignment: 0 240 | m_AlignByGeometry: 0 241 | m_RichText: 1 242 | m_HorizontalOverflow: 0 243 | m_VerticalOverflow: 0 244 | m_LineSpacing: 1 245 | m_Text: 246 | --- !u!222 &160424579 247 | CanvasRenderer: 248 | m_ObjectHideFlags: 0 249 | m_PrefabParentObject: {fileID: 0} 250 | m_PrefabInternal: {fileID: 0} 251 | m_GameObject: {fileID: 160424577} 252 | --- !u!224 &160424580 253 | RectTransform: 254 | m_ObjectHideFlags: 0 255 | m_PrefabParentObject: {fileID: 0} 256 | m_PrefabInternal: {fileID: 0} 257 | m_GameObject: {fileID: 160424577} 258 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 259 | m_LocalPosition: {x: 0, y: 0, z: 0} 260 | m_LocalScale: {x: 1, y: 1, z: 1} 261 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 262 | m_Children: [] 263 | m_Father: {fileID: 1293608199} 264 | m_RootOrder: 0 265 | m_AnchorMin: {x: 0, y: 1} 266 | m_AnchorMax: {x: 1, y: 1} 267 | m_AnchoredPosition: {x: 0, y: 0} 268 | m_SizeDelta: {x: 0, y: 60} 269 | m_Pivot: {x: 0.5, y: 1} 270 | --- !u!4 &194587199 stripped 271 | Transform: 272 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 273 | m_PrefabInternal: {fileID: 92825394} 274 | --- !u!4 &236779076 stripped 275 | Transform: 276 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 277 | m_PrefabInternal: {fileID: 852442505} 278 | --- !u!4 &254215500 stripped 279 | Transform: 280 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 281 | m_PrefabInternal: {fileID: 18423451} 282 | --- !u!4 &290480183 stripped 283 | Transform: 284 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 285 | m_PrefabInternal: {fileID: 1379383946} 286 | --- !u!1001 &339803847 287 | Prefab: 288 | m_ObjectHideFlags: 0 289 | serializedVersion: 2 290 | m_Modification: 291 | m_TransformParent: {fileID: 942142586} 292 | m_Modifications: 293 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 294 | propertyPath: m_LocalPosition.x 295 | value: 0 296 | objectReference: {fileID: 0} 297 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 298 | propertyPath: m_LocalPosition.y 299 | value: 0 300 | objectReference: {fileID: 0} 301 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 302 | propertyPath: m_LocalPosition.z 303 | value: 0 304 | objectReference: {fileID: 0} 305 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 306 | propertyPath: m_LocalRotation.x 307 | value: 0 308 | objectReference: {fileID: 0} 309 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 310 | propertyPath: m_LocalRotation.y 311 | value: 0 312 | objectReference: {fileID: 0} 313 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 314 | propertyPath: m_LocalRotation.z 315 | value: 0 316 | objectReference: {fileID: 0} 317 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 318 | propertyPath: m_LocalRotation.w 319 | value: 1 320 | objectReference: {fileID: 0} 321 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 322 | propertyPath: m_RootOrder 323 | value: 4 324 | objectReference: {fileID: 0} 325 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 326 | propertyPath: m_LocalScale.x 327 | value: 8 328 | objectReference: {fileID: 0} 329 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 330 | propertyPath: m_LocalScale.y 331 | value: 8 332 | objectReference: {fileID: 0} 333 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 334 | propertyPath: m_LocalScale.z 335 | value: 8 336 | objectReference: {fileID: 0} 337 | m_RemovedComponents: [] 338 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 339 | m_IsPrefabParent: 0 340 | --- !u!4 &442718987 stripped 341 | Transform: 342 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 343 | m_PrefabInternal: {fileID: 339803847} 344 | --- !u!1 &690875027 345 | GameObject: 346 | m_ObjectHideFlags: 0 347 | m_PrefabParentObject: {fileID: 0} 348 | m_PrefabInternal: {fileID: 0} 349 | serializedVersion: 4 350 | m_Component: 351 | - 4: {fileID: 690875028} 352 | - 114: {fileID: 690875029} 353 | m_Layer: 0 354 | m_Name: Rotator 355 | m_TagString: Untagged 356 | m_Icon: {fileID: 0} 357 | m_NavMeshLayer: 0 358 | m_StaticEditorFlags: 0 359 | m_IsActive: 1 360 | --- !u!4 &690875028 361 | Transform: 362 | m_ObjectHideFlags: 0 363 | m_PrefabParentObject: {fileID: 0} 364 | m_PrefabInternal: {fileID: 0} 365 | m_GameObject: {fileID: 690875027} 366 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 367 | m_LocalPosition: {x: 0, y: 0, z: 0} 368 | m_LocalScale: {x: 1, y: 1, z: 1} 369 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 370 | m_Children: 371 | - {fileID: 1066170111} 372 | - {fileID: 942142586} 373 | m_Father: {fileID: 0} 374 | m_RootOrder: 3 375 | --- !u!114 &690875029 376 | MonoBehaviour: 377 | m_ObjectHideFlags: 0 378 | m_PrefabParentObject: {fileID: 0} 379 | m_PrefabInternal: {fileID: 0} 380 | m_GameObject: {fileID: 690875027} 381 | m_Enabled: 1 382 | m_EditorHideFlags: 0 383 | m_Script: {fileID: 11500000, guid: fab8ce683b1f441589b2552b21e01ab6, type: 3} 384 | m_Name: 385 | m_EditorClassIdentifier: 386 | rotationSpeed: 10 387 | --- !u!4 &691133263 stripped 388 | Transform: 389 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 390 | m_PrefabInternal: {fileID: 1575280166} 391 | --- !u!1 &846509624 392 | GameObject: 393 | m_ObjectHideFlags: 0 394 | m_PrefabParentObject: {fileID: 0} 395 | m_PrefabInternal: {fileID: 0} 396 | serializedVersion: 4 397 | m_Component: 398 | - 4: {fileID: 846509626} 399 | - 108: {fileID: 846509625} 400 | m_Layer: 0 401 | m_Name: Directional light 402 | m_TagString: Untagged 403 | m_Icon: {fileID: 0} 404 | m_NavMeshLayer: 0 405 | m_StaticEditorFlags: 0 406 | m_IsActive: 1 407 | --- !u!108 &846509625 408 | Light: 409 | m_ObjectHideFlags: 0 410 | m_PrefabParentObject: {fileID: 0} 411 | m_PrefabInternal: {fileID: 0} 412 | m_GameObject: {fileID: 846509624} 413 | m_Enabled: 1 414 | serializedVersion: 6 415 | m_Type: 1 416 | m_Color: {r: 1, g: 1, b: 1, a: 1} 417 | m_Intensity: 2 418 | m_Range: 10 419 | m_SpotAngle: 30 420 | m_CookieSize: 10 421 | m_Shadows: 422 | m_Type: 1 423 | m_Resolution: -1 424 | m_Strength: 0.5 425 | m_Bias: 0.05 426 | m_NormalBias: 0.4 427 | m_NearPlane: 0.2 428 | m_Cookie: {fileID: 0} 429 | m_DrawHalo: 0 430 | m_Flare: {fileID: 0} 431 | m_RenderMode: 0 432 | m_CullingMask: 433 | serializedVersion: 2 434 | m_Bits: 4294967295 435 | m_Lightmapping: 1 436 | m_BounceIntensity: 1 437 | m_ShadowRadius: 0 438 | m_ShadowAngle: 0 439 | m_AreaSize: {x: 1, y: 1} 440 | --- !u!4 &846509626 441 | Transform: 442 | m_ObjectHideFlags: 0 443 | m_PrefabParentObject: {fileID: 0} 444 | m_PrefabInternal: {fileID: 0} 445 | m_GameObject: {fileID: 846509624} 446 | m_LocalRotation: {x: 0.43301275, y: 0.43301275, z: -0.25000006, w: 0.75} 447 | m_LocalPosition: {x: -100, y: 100, z: -100} 448 | m_LocalScale: {x: 1, y: 1, z: 1} 449 | m_LocalEulerAnglesHint: {x: 60, y: 60, z: 0} 450 | m_Children: [] 451 | m_Father: {fileID: 0} 452 | m_RootOrder: 2 453 | --- !u!1001 &852442505 454 | Prefab: 455 | m_ObjectHideFlags: 0 456 | serializedVersion: 2 457 | m_Modification: 458 | m_TransformParent: {fileID: 942142586} 459 | m_Modifications: 460 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 461 | propertyPath: m_LocalPosition.x 462 | value: -8 463 | objectReference: {fileID: 0} 464 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 465 | propertyPath: m_LocalPosition.y 466 | value: -4 467 | objectReference: {fileID: 0} 468 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 469 | propertyPath: m_LocalPosition.z 470 | value: 8 471 | objectReference: {fileID: 0} 472 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 473 | propertyPath: m_LocalRotation.x 474 | value: 0 475 | objectReference: {fileID: 0} 476 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 477 | propertyPath: m_LocalRotation.y 478 | value: 0 479 | objectReference: {fileID: 0} 480 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 481 | propertyPath: m_LocalRotation.z 482 | value: 0 483 | objectReference: {fileID: 0} 484 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 485 | propertyPath: m_LocalRotation.w 486 | value: 1 487 | objectReference: {fileID: 0} 488 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 489 | propertyPath: m_RootOrder 490 | value: 0 491 | objectReference: {fileID: 0} 492 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 493 | propertyPath: m_LocalScale.x 494 | value: 8 495 | objectReference: {fileID: 0} 496 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 497 | propertyPath: m_LocalScale.y 498 | value: 8 499 | objectReference: {fileID: 0} 500 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 501 | propertyPath: m_LocalScale.z 502 | value: 8 503 | objectReference: {fileID: 0} 504 | m_RemovedComponents: [] 505 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 506 | m_IsPrefabParent: 0 507 | --- !u!1 &942142585 508 | GameObject: 509 | m_ObjectHideFlags: 0 510 | m_PrefabParentObject: {fileID: 161008, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 511 | m_PrefabInternal: {fileID: 0} 512 | serializedVersion: 4 513 | m_Component: 514 | - 4: {fileID: 942142586} 515 | m_Layer: 0 516 | m_Name: Ground 517 | m_TagString: Untagged 518 | m_Icon: {fileID: 0} 519 | m_NavMeshLayer: 0 520 | m_StaticEditorFlags: 0 521 | m_IsActive: 1 522 | --- !u!4 &942142586 523 | Transform: 524 | m_ObjectHideFlags: 0 525 | m_PrefabParentObject: {fileID: 461008, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 526 | m_PrefabInternal: {fileID: 0} 527 | m_GameObject: {fileID: 942142585} 528 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 529 | m_LocalPosition: {x: 0, y: 0, z: 0} 530 | m_LocalScale: {x: 1, y: 1, z: 1} 531 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 532 | m_Children: 533 | - {fileID: 236779076} 534 | - {fileID: 1439428725} 535 | - {fileID: 1403902724} 536 | - {fileID: 290480183} 537 | - {fileID: 442718987} 538 | - {fileID: 691133263} 539 | - {fileID: 1378239407} 540 | - {fileID: 194587199} 541 | - {fileID: 254215500} 542 | m_Father: {fileID: 690875028} 543 | m_RootOrder: 1 544 | --- !u!1001 &1008850406 545 | Prefab: 546 | m_ObjectHideFlags: 0 547 | serializedVersion: 2 548 | m_Modification: 549 | m_TransformParent: {fileID: 942142586} 550 | m_Modifications: 551 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 552 | propertyPath: m_LocalPosition.x 553 | value: 8 554 | objectReference: {fileID: 0} 555 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 556 | propertyPath: m_LocalPosition.y 557 | value: -2 558 | objectReference: {fileID: 0} 559 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 560 | propertyPath: m_LocalPosition.z 561 | value: 8 562 | objectReference: {fileID: 0} 563 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 564 | propertyPath: m_LocalRotation.x 565 | value: 0 566 | objectReference: {fileID: 0} 567 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 568 | propertyPath: m_LocalRotation.y 569 | value: 0 570 | objectReference: {fileID: 0} 571 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 572 | propertyPath: m_LocalRotation.z 573 | value: 0 574 | objectReference: {fileID: 0} 575 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 576 | propertyPath: m_LocalRotation.w 577 | value: 1 578 | objectReference: {fileID: 0} 579 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 580 | propertyPath: m_RootOrder 581 | value: 2 582 | objectReference: {fileID: 0} 583 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 584 | propertyPath: m_LocalScale.x 585 | value: 8 586 | objectReference: {fileID: 0} 587 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 588 | propertyPath: m_LocalScale.y 589 | value: 8 590 | objectReference: {fileID: 0} 591 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 592 | propertyPath: m_LocalScale.z 593 | value: 8 594 | objectReference: {fileID: 0} 595 | m_RemovedComponents: [] 596 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 597 | m_IsPrefabParent: 0 598 | --- !u!1 &1066170109 599 | GameObject: 600 | m_ObjectHideFlags: 0 601 | m_PrefabParentObject: {fileID: 0} 602 | m_PrefabInternal: {fileID: 0} 603 | serializedVersion: 4 604 | m_Component: 605 | - 4: {fileID: 1066170111} 606 | - 114: {fileID: 1066170110} 607 | m_Layer: 0 608 | m_Name: Cube Generator 609 | m_TagString: Untagged 610 | m_Icon: {fileID: 0} 611 | m_NavMeshLayer: 0 612 | m_StaticEditorFlags: 0 613 | m_IsActive: 1 614 | --- !u!114 &1066170110 615 | MonoBehaviour: 616 | m_ObjectHideFlags: 0 617 | m_PrefabParentObject: {fileID: 0} 618 | m_PrefabInternal: {fileID: 0} 619 | m_GameObject: {fileID: 1066170109} 620 | m_Enabled: 1 621 | m_EditorHideFlags: 0 622 | m_Script: {fileID: 11500000, guid: 49ff4d964d64b42949cd6585f21e4e9e, type: 3} 623 | m_Name: 624 | m_EditorClassIdentifier: 625 | cubePrefab: {fileID: 100000, guid: 2ffa70fbea3774da7afa19a0bd99dd2a, type: 2} 626 | generateInterval: 6 627 | --- !u!4 &1066170111 628 | Transform: 629 | m_ObjectHideFlags: 0 630 | m_PrefabParentObject: {fileID: 0} 631 | m_PrefabInternal: {fileID: 0} 632 | m_GameObject: {fileID: 1066170109} 633 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 634 | m_LocalPosition: {x: 0, y: 16, z: 0} 635 | m_LocalScale: {x: 1, y: 1, z: 1} 636 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 637 | m_Children: [] 638 | m_Father: {fileID: 690875028} 639 | m_RootOrder: 0 640 | --- !u!1 &1293608194 641 | GameObject: 642 | m_ObjectHideFlags: 0 643 | m_PrefabParentObject: {fileID: 0} 644 | m_PrefabInternal: {fileID: 0} 645 | serializedVersion: 4 646 | m_Component: 647 | - 224: {fileID: 1293608199} 648 | - 223: {fileID: 1293608198} 649 | - 114: {fileID: 1293608197} 650 | - 114: {fileID: 1293608196} 651 | - 114: {fileID: 1293608195} 652 | m_Layer: 5 653 | m_Name: Canvas 654 | m_TagString: Untagged 655 | m_Icon: {fileID: 0} 656 | m_NavMeshLayer: 0 657 | m_StaticEditorFlags: 0 658 | m_IsActive: 1 659 | --- !u!114 &1293608195 660 | MonoBehaviour: 661 | m_ObjectHideFlags: 0 662 | m_PrefabParentObject: {fileID: 0} 663 | m_PrefabInternal: {fileID: 0} 664 | m_GameObject: {fileID: 1293608194} 665 | m_Enabled: 1 666 | m_EditorHideFlags: 0 667 | m_Script: {fileID: 11500000, guid: 6f5c7d00867a14bbb8c0fa004bab8056, type: 3} 668 | m_Name: 669 | m_EditorClassIdentifier: 670 | --- !u!114 &1293608196 671 | MonoBehaviour: 672 | m_ObjectHideFlags: 0 673 | m_PrefabParentObject: {fileID: 0} 674 | m_PrefabInternal: {fileID: 0} 675 | m_GameObject: {fileID: 1293608194} 676 | m_Enabled: 1 677 | m_EditorHideFlags: 0 678 | m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 679 | m_Name: 680 | m_EditorClassIdentifier: 681 | m_IgnoreReversedGraphics: 1 682 | m_BlockingObjects: 0 683 | m_BlockingMask: 684 | serializedVersion: 2 685 | m_Bits: 4294967295 686 | --- !u!114 &1293608197 687 | MonoBehaviour: 688 | m_ObjectHideFlags: 0 689 | m_PrefabParentObject: {fileID: 0} 690 | m_PrefabInternal: {fileID: 0} 691 | m_GameObject: {fileID: 1293608194} 692 | m_Enabled: 1 693 | m_EditorHideFlags: 0 694 | m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 695 | m_Name: 696 | m_EditorClassIdentifier: 697 | m_UiScaleMode: 0 698 | m_ReferencePixelsPerUnit: 100 699 | m_ScaleFactor: 1 700 | m_ReferenceResolution: {x: 800, y: 600} 701 | m_ScreenMatchMode: 0 702 | m_MatchWidthOrHeight: 0 703 | m_PhysicalUnit: 3 704 | m_FallbackScreenDPI: 96 705 | m_DefaultSpriteDPI: 96 706 | m_DynamicPixelsPerUnit: 1 707 | --- !u!223 &1293608198 708 | Canvas: 709 | m_ObjectHideFlags: 0 710 | m_PrefabParentObject: {fileID: 0} 711 | m_PrefabInternal: {fileID: 0} 712 | m_GameObject: {fileID: 1293608194} 713 | m_Enabled: 1 714 | serializedVersion: 2 715 | m_RenderMode: 0 716 | m_Camera: {fileID: 0} 717 | m_PlaneDistance: 100 718 | m_PixelPerfect: 0 719 | m_ReceivesEvents: 1 720 | m_OverrideSorting: 0 721 | m_OverridePixelPerfect: 0 722 | m_SortingBucketNormalizedSize: 0 723 | m_SortingLayerID: 0 724 | m_SortingOrder: 0 725 | m_TargetDisplay: 0 726 | --- !u!224 &1293608199 727 | RectTransform: 728 | m_ObjectHideFlags: 0 729 | m_PrefabParentObject: {fileID: 0} 730 | m_PrefabInternal: {fileID: 0} 731 | m_GameObject: {fileID: 1293608194} 732 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 733 | m_LocalPosition: {x: 0, y: 0, z: 0} 734 | m_LocalScale: {x: 0, y: 0, z: 0} 735 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 736 | m_Children: 737 | - {fileID: 160424580} 738 | - {fileID: 1786175355} 739 | m_Father: {fileID: 0} 740 | m_RootOrder: 4 741 | m_AnchorMin: {x: 0, y: 0} 742 | m_AnchorMax: {x: 0, y: 0} 743 | m_AnchoredPosition: {x: 0, y: 0} 744 | m_SizeDelta: {x: 0, y: 0} 745 | m_Pivot: {x: 0, y: 0} 746 | --- !u!1001 &1376422436 747 | Prefab: 748 | m_ObjectHideFlags: 0 749 | serializedVersion: 2 750 | m_Modification: 751 | m_TransformParent: {fileID: 942142586} 752 | m_Modifications: 753 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 754 | propertyPath: m_LocalPosition.x 755 | value: -8 756 | objectReference: {fileID: 0} 757 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 758 | propertyPath: m_LocalPosition.y 759 | value: -2 760 | objectReference: {fileID: 0} 761 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 762 | propertyPath: m_LocalPosition.z 763 | value: -8 764 | objectReference: {fileID: 0} 765 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 766 | propertyPath: m_LocalRotation.x 767 | value: 0 768 | objectReference: {fileID: 0} 769 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 770 | propertyPath: m_LocalRotation.y 771 | value: 0 772 | objectReference: {fileID: 0} 773 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 774 | propertyPath: m_LocalRotation.z 775 | value: 0 776 | objectReference: {fileID: 0} 777 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 778 | propertyPath: m_LocalRotation.w 779 | value: 1 780 | objectReference: {fileID: 0} 781 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 782 | propertyPath: m_RootOrder 783 | value: 6 784 | objectReference: {fileID: 0} 785 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 786 | propertyPath: m_LocalScale.x 787 | value: 8 788 | objectReference: {fileID: 0} 789 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 790 | propertyPath: m_LocalScale.y 791 | value: 8 792 | objectReference: {fileID: 0} 793 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 794 | propertyPath: m_LocalScale.z 795 | value: 8 796 | objectReference: {fileID: 0} 797 | m_RemovedComponents: [] 798 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 799 | m_IsPrefabParent: 0 800 | --- !u!4 &1378239407 stripped 801 | Transform: 802 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 803 | m_PrefabInternal: {fileID: 1376422436} 804 | --- !u!1001 &1379383946 805 | Prefab: 806 | m_ObjectHideFlags: 0 807 | serializedVersion: 2 808 | m_Modification: 809 | m_TransformParent: {fileID: 942142586} 810 | m_Modifications: 811 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 812 | propertyPath: m_LocalPosition.x 813 | value: -8 814 | objectReference: {fileID: 0} 815 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 816 | propertyPath: m_LocalPosition.y 817 | value: -3 818 | objectReference: {fileID: 0} 819 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 820 | propertyPath: m_LocalPosition.z 821 | value: 0 822 | objectReference: {fileID: 0} 823 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 824 | propertyPath: m_LocalRotation.x 825 | value: 0 826 | objectReference: {fileID: 0} 827 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 828 | propertyPath: m_LocalRotation.y 829 | value: 0 830 | objectReference: {fileID: 0} 831 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 832 | propertyPath: m_LocalRotation.z 833 | value: 0 834 | objectReference: {fileID: 0} 835 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 836 | propertyPath: m_LocalRotation.w 837 | value: 1 838 | objectReference: {fileID: 0} 839 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 840 | propertyPath: m_RootOrder 841 | value: 3 842 | objectReference: {fileID: 0} 843 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 844 | propertyPath: m_LocalScale.x 845 | value: 8 846 | objectReference: {fileID: 0} 847 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 848 | propertyPath: m_LocalScale.y 849 | value: 8 850 | objectReference: {fileID: 0} 851 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 852 | propertyPath: m_LocalScale.z 853 | value: 8 854 | objectReference: {fileID: 0} 855 | m_RemovedComponents: [] 856 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 857 | m_IsPrefabParent: 0 858 | --- !u!1 &1382398722 859 | GameObject: 860 | m_ObjectHideFlags: 0 861 | m_PrefabParentObject: {fileID: 0} 862 | m_PrefabInternal: {fileID: 0} 863 | serializedVersion: 4 864 | m_Component: 865 | - 4: {fileID: 1382398726} 866 | - 114: {fileID: 1382398725} 867 | - 114: {fileID: 1382398724} 868 | - 114: {fileID: 1382398723} 869 | m_Layer: 0 870 | m_Name: EventSystem 871 | m_TagString: Untagged 872 | m_Icon: {fileID: 0} 873 | m_NavMeshLayer: 0 874 | m_StaticEditorFlags: 0 875 | m_IsActive: 1 876 | --- !u!114 &1382398723 877 | MonoBehaviour: 878 | m_ObjectHideFlags: 0 879 | m_PrefabParentObject: {fileID: 0} 880 | m_PrefabInternal: {fileID: 0} 881 | m_GameObject: {fileID: 1382398722} 882 | m_Enabled: 1 883 | m_EditorHideFlags: 0 884 | m_Script: {fileID: 1997211142, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 885 | m_Name: 886 | m_EditorClassIdentifier: 887 | m_ForceModuleActive: 0 888 | --- !u!114 &1382398724 889 | MonoBehaviour: 890 | m_ObjectHideFlags: 0 891 | m_PrefabParentObject: {fileID: 0} 892 | m_PrefabInternal: {fileID: 0} 893 | m_GameObject: {fileID: 1382398722} 894 | m_Enabled: 1 895 | m_EditorHideFlags: 0 896 | m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 897 | m_Name: 898 | m_EditorClassIdentifier: 899 | m_HorizontalAxis: Horizontal 900 | m_VerticalAxis: Vertical 901 | m_SubmitButton: Submit 902 | m_CancelButton: Cancel 903 | m_InputActionsPerSecond: 10 904 | m_RepeatDelay: 0.5 905 | m_ForceModuleActive: 0 906 | --- !u!114 &1382398725 907 | MonoBehaviour: 908 | m_ObjectHideFlags: 0 909 | m_PrefabParentObject: {fileID: 0} 910 | m_PrefabInternal: {fileID: 0} 911 | m_GameObject: {fileID: 1382398722} 912 | m_Enabled: 1 913 | m_EditorHideFlags: 0 914 | m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 915 | m_Name: 916 | m_EditorClassIdentifier: 917 | m_FirstSelected: {fileID: 0} 918 | m_sendNavigationEvents: 1 919 | m_DragThreshold: 5 920 | --- !u!4 &1382398726 921 | Transform: 922 | m_ObjectHideFlags: 0 923 | m_PrefabParentObject: {fileID: 0} 924 | m_PrefabInternal: {fileID: 0} 925 | m_GameObject: {fileID: 1382398722} 926 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 927 | m_LocalPosition: {x: 0, y: 0, z: 0} 928 | m_LocalScale: {x: 1, y: 1, z: 1} 929 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 930 | m_Children: [] 931 | m_Father: {fileID: 0} 932 | m_RootOrder: 1 933 | --- !u!4 &1403902724 stripped 934 | Transform: 935 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 936 | m_PrefabInternal: {fileID: 1008850406} 937 | --- !u!1 &1413031527 938 | GameObject: 939 | m_ObjectHideFlags: 0 940 | m_PrefabParentObject: {fileID: 0} 941 | m_PrefabInternal: {fileID: 0} 942 | serializedVersion: 4 943 | m_Component: 944 | - 4: {fileID: 1413031529} 945 | - 114: {fileID: 1413031528} 946 | m_Layer: 0 947 | m_Name: CallbackTarget 948 | m_TagString: Untagged 949 | m_Icon: {fileID: 0} 950 | m_NavMeshLayer: 0 951 | m_StaticEditorFlags: 0 952 | m_IsActive: 1 953 | --- !u!114 &1413031528 954 | MonoBehaviour: 955 | m_ObjectHideFlags: 0 956 | m_PrefabParentObject: {fileID: 0} 957 | m_PrefabInternal: {fileID: 0} 958 | m_GameObject: {fileID: 1413031527} 959 | m_Enabled: 1 960 | m_EditorHideFlags: 0 961 | m_Script: {fileID: 11500000, guid: 0959ee299a1fb4839945370024b4b6df, type: 3} 962 | m_Name: 963 | m_EditorClassIdentifier: 964 | textLabel: {fileID: 160424578} 965 | --- !u!4 &1413031529 966 | Transform: 967 | m_ObjectHideFlags: 0 968 | m_PrefabParentObject: {fileID: 0} 969 | m_PrefabInternal: {fileID: 0} 970 | m_GameObject: {fileID: 1413031527} 971 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 972 | m_LocalPosition: {x: 0, y: 0, z: 0} 973 | m_LocalScale: {x: 1, y: 1, z: 1} 974 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 975 | m_Children: [] 976 | m_Father: {fileID: 0} 977 | m_RootOrder: 5 978 | --- !u!1001 &1424642370 979 | Prefab: 980 | m_ObjectHideFlags: 0 981 | serializedVersion: 2 982 | m_Modification: 983 | m_TransformParent: {fileID: 942142586} 984 | m_Modifications: 985 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 986 | propertyPath: m_LocalPosition.x 987 | value: 0 988 | objectReference: {fileID: 0} 989 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 990 | propertyPath: m_LocalPosition.y 991 | value: -1 992 | objectReference: {fileID: 0} 993 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 994 | propertyPath: m_LocalPosition.z 995 | value: 8 996 | objectReference: {fileID: 0} 997 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 998 | propertyPath: m_LocalRotation.x 999 | value: 0 1000 | objectReference: {fileID: 0} 1001 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1002 | propertyPath: m_LocalRotation.y 1003 | value: 0 1004 | objectReference: {fileID: 0} 1005 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1006 | propertyPath: m_LocalRotation.z 1007 | value: 0 1008 | objectReference: {fileID: 0} 1009 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1010 | propertyPath: m_LocalRotation.w 1011 | value: 1 1012 | objectReference: {fileID: 0} 1013 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1014 | propertyPath: m_RootOrder 1015 | value: 1 1016 | objectReference: {fileID: 0} 1017 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1018 | propertyPath: m_LocalScale.x 1019 | value: 8 1020 | objectReference: {fileID: 0} 1021 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1022 | propertyPath: m_LocalScale.y 1023 | value: 8 1024 | objectReference: {fileID: 0} 1025 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1026 | propertyPath: m_LocalScale.z 1027 | value: 8 1028 | objectReference: {fileID: 0} 1029 | m_RemovedComponents: [] 1030 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1031 | m_IsPrefabParent: 0 1032 | --- !u!4 &1439428725 stripped 1033 | Transform: 1034 | m_PrefabParentObject: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1035 | m_PrefabInternal: {fileID: 1424642370} 1036 | --- !u!1001 &1575280166 1037 | Prefab: 1038 | m_ObjectHideFlags: 0 1039 | serializedVersion: 2 1040 | m_Modification: 1041 | m_TransformParent: {fileID: 942142586} 1042 | m_Modifications: 1043 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1044 | propertyPath: m_LocalPosition.x 1045 | value: 8 1046 | objectReference: {fileID: 0} 1047 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1048 | propertyPath: m_LocalPosition.y 1049 | value: -3 1050 | objectReference: {fileID: 0} 1051 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1052 | propertyPath: m_LocalPosition.z 1053 | value: 0 1054 | objectReference: {fileID: 0} 1055 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1056 | propertyPath: m_LocalRotation.x 1057 | value: 0 1058 | objectReference: {fileID: 0} 1059 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1060 | propertyPath: m_LocalRotation.y 1061 | value: 0 1062 | objectReference: {fileID: 0} 1063 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1064 | propertyPath: m_LocalRotation.z 1065 | value: 0 1066 | objectReference: {fileID: 0} 1067 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1068 | propertyPath: m_LocalRotation.w 1069 | value: 1 1070 | objectReference: {fileID: 0} 1071 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1072 | propertyPath: m_RootOrder 1073 | value: 5 1074 | objectReference: {fileID: 0} 1075 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1076 | propertyPath: m_LocalScale.x 1077 | value: 8 1078 | objectReference: {fileID: 0} 1079 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1080 | propertyPath: m_LocalScale.y 1081 | value: 8 1082 | objectReference: {fileID: 0} 1083 | - target: {fileID: 487822, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1084 | propertyPath: m_LocalScale.z 1085 | value: 8 1086 | objectReference: {fileID: 0} 1087 | m_RemovedComponents: [] 1088 | m_ParentPrefab: {fileID: 100100000, guid: b24595f25cc564ccfb07eade73a1052f, type: 2} 1089 | m_IsPrefabParent: 0 1090 | --- !u!1 &1786175354 1091 | GameObject: 1092 | m_ObjectHideFlags: 0 1093 | m_PrefabParentObject: {fileID: 0} 1094 | m_PrefabInternal: {fileID: 0} 1095 | serializedVersion: 4 1096 | m_Component: 1097 | - 224: {fileID: 1786175355} 1098 | - 114: {fileID: 1786175356} 1099 | m_Layer: 5 1100 | m_Name: GameObject 1101 | m_TagString: Untagged 1102 | m_Icon: {fileID: 0} 1103 | m_NavMeshLayer: 0 1104 | m_StaticEditorFlags: 0 1105 | m_IsActive: 1 1106 | --- !u!224 &1786175355 1107 | RectTransform: 1108 | m_ObjectHideFlags: 0 1109 | m_PrefabParentObject: {fileID: 0} 1110 | m_PrefabInternal: {fileID: 0} 1111 | m_GameObject: {fileID: 1786175354} 1112 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1113 | m_LocalPosition: {x: 0, y: 0, z: 0} 1114 | m_LocalScale: {x: 1, y: 1, z: 1} 1115 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1116 | m_Children: 1117 | - {fileID: 1899911681} 1118 | m_Father: {fileID: 1293608199} 1119 | m_RootOrder: 1 1120 | m_AnchorMin: {x: 0, y: 0} 1121 | m_AnchorMax: {x: 1, y: 0} 1122 | m_AnchoredPosition: {x: 0, y: 0} 1123 | m_SizeDelta: {x: 0, y: 100} 1124 | m_Pivot: {x: 0.5, y: 0} 1125 | --- !u!114 &1786175356 1126 | MonoBehaviour: 1127 | m_ObjectHideFlags: 0 1128 | m_PrefabParentObject: {fileID: 0} 1129 | m_PrefabInternal: {fileID: 0} 1130 | m_GameObject: {fileID: 1786175354} 1131 | m_Enabled: 1 1132 | m_EditorHideFlags: 0 1133 | m_Script: {fileID: -405508275, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 1134 | m_Name: 1135 | m_EditorClassIdentifier: 1136 | m_Padding: 1137 | m_Left: 10 1138 | m_Right: 10 1139 | m_Top: 10 1140 | m_Bottom: 10 1141 | m_ChildAlignment: 0 1142 | m_Spacing: 10 1143 | m_ChildForceExpandWidth: 1 1144 | m_ChildForceExpandHeight: 1 1145 | --- !u!1 &1796640917 1146 | GameObject: 1147 | m_ObjectHideFlags: 0 1148 | m_PrefabParentObject: {fileID: 0} 1149 | m_PrefabInternal: {fileID: 0} 1150 | serializedVersion: 4 1151 | m_Component: 1152 | - 224: {fileID: 1796640918} 1153 | - 222: {fileID: 1796640920} 1154 | - 114: {fileID: 1796640919} 1155 | m_Layer: 5 1156 | m_Name: Text 1157 | m_TagString: Untagged 1158 | m_Icon: {fileID: 0} 1159 | m_NavMeshLayer: 0 1160 | m_StaticEditorFlags: 0 1161 | m_IsActive: 1 1162 | --- !u!224 &1796640918 1163 | RectTransform: 1164 | m_ObjectHideFlags: 0 1165 | m_PrefabParentObject: {fileID: 0} 1166 | m_PrefabInternal: {fileID: 0} 1167 | m_GameObject: {fileID: 1796640917} 1168 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1169 | m_LocalPosition: {x: 0, y: 0, z: 0} 1170 | m_LocalScale: {x: 1, y: 1, z: 1} 1171 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1172 | m_Children: [] 1173 | m_Father: {fileID: 1899911681} 1174 | m_RootOrder: 0 1175 | m_AnchorMin: {x: 0, y: 0} 1176 | m_AnchorMax: {x: 1, y: 1} 1177 | m_AnchoredPosition: {x: 0, y: 0} 1178 | m_SizeDelta: {x: 0, y: 0} 1179 | m_Pivot: {x: 0.5, y: 0.5} 1180 | --- !u!114 &1796640919 1181 | MonoBehaviour: 1182 | m_ObjectHideFlags: 0 1183 | m_PrefabParentObject: {fileID: 0} 1184 | m_PrefabInternal: {fileID: 0} 1185 | m_GameObject: {fileID: 1796640917} 1186 | m_Enabled: 1 1187 | m_EditorHideFlags: 0 1188 | m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 1189 | m_Name: 1190 | m_EditorClassIdentifier: 1191 | m_Material: {fileID: 0} 1192 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 1193 | m_RaycastTarget: 1 1194 | m_OnCullStateChanged: 1195 | m_PersistentCalls: 1196 | m_Calls: [] 1197 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 1198 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 1199 | m_FontData: 1200 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 1201 | m_FontSize: 28 1202 | m_FontStyle: 0 1203 | m_BestFit: 0 1204 | m_MinSize: 2 1205 | m_MaxSize: 40 1206 | m_Alignment: 4 1207 | m_AlignByGeometry: 0 1208 | m_RichText: 1 1209 | m_HorizontalOverflow: 0 1210 | m_VerticalOverflow: 0 1211 | m_LineSpacing: 1 1212 | m_Text: Call Swift Method 1213 | --- !u!222 &1796640920 1214 | CanvasRenderer: 1215 | m_ObjectHideFlags: 0 1216 | m_PrefabParentObject: {fileID: 0} 1217 | m_PrefabInternal: {fileID: 0} 1218 | m_GameObject: {fileID: 1796640917} 1219 | --- !u!1 &1899911680 1220 | GameObject: 1221 | m_ObjectHideFlags: 0 1222 | m_PrefabParentObject: {fileID: 0} 1223 | m_PrefabInternal: {fileID: 0} 1224 | serializedVersion: 4 1225 | m_Component: 1226 | - 224: {fileID: 1899911681} 1227 | - 222: {fileID: 1899911684} 1228 | - 114: {fileID: 1899911683} 1229 | - 114: {fileID: 1899911682} 1230 | m_Layer: 5 1231 | m_Name: CallSwiftMethodButton 1232 | m_TagString: Untagged 1233 | m_Icon: {fileID: 0} 1234 | m_NavMeshLayer: 0 1235 | m_StaticEditorFlags: 0 1236 | m_IsActive: 1 1237 | --- !u!224 &1899911681 1238 | RectTransform: 1239 | m_ObjectHideFlags: 0 1240 | m_PrefabParentObject: {fileID: 0} 1241 | m_PrefabInternal: {fileID: 0} 1242 | m_GameObject: {fileID: 1899911680} 1243 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1244 | m_LocalPosition: {x: 0, y: 0, z: 0} 1245 | m_LocalScale: {x: 1, y: 1, z: 1} 1246 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1247 | m_Children: 1248 | - {fileID: 1796640918} 1249 | m_Father: {fileID: 1786175355} 1250 | m_RootOrder: 0 1251 | m_AnchorMin: {x: 0, y: 0} 1252 | m_AnchorMax: {x: 0, y: 0} 1253 | m_AnchoredPosition: {x: 0, y: 0} 1254 | m_SizeDelta: {x: 0, y: 0} 1255 | m_Pivot: {x: 0.5, y: 0.5} 1256 | --- !u!114 &1899911682 1257 | MonoBehaviour: 1258 | m_ObjectHideFlags: 0 1259 | m_PrefabParentObject: {fileID: 0} 1260 | m_PrefabInternal: {fileID: 0} 1261 | m_GameObject: {fileID: 1899911680} 1262 | m_Enabled: 1 1263 | m_EditorHideFlags: 0 1264 | m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 1265 | m_Name: 1266 | m_EditorClassIdentifier: 1267 | m_Navigation: 1268 | m_Mode: 3 1269 | m_SelectOnUp: {fileID: 0} 1270 | m_SelectOnDown: {fileID: 0} 1271 | m_SelectOnLeft: {fileID: 0} 1272 | m_SelectOnRight: {fileID: 0} 1273 | m_Transition: 1 1274 | m_Colors: 1275 | m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 1276 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 1277 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} 1278 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} 1279 | m_ColorMultiplier: 1 1280 | m_FadeDuration: 0.1 1281 | m_SpriteState: 1282 | m_HighlightedSprite: {fileID: 0} 1283 | m_PressedSprite: {fileID: 0} 1284 | m_DisabledSprite: {fileID: 0} 1285 | m_AnimationTriggers: 1286 | m_NormalTrigger: Normal 1287 | m_HighlightedTrigger: Highlighted 1288 | m_PressedTrigger: Pressed 1289 | m_DisabledTrigger: Disabled 1290 | m_Interactable: 1 1291 | m_TargetGraphic: {fileID: 1899911683} 1292 | m_OnClick: 1293 | m_PersistentCalls: 1294 | m_Calls: 1295 | - m_Target: {fileID: 1293608195} 1296 | m_MethodName: OnPressCallSwiftMethodButton 1297 | m_Mode: 1 1298 | m_Arguments: 1299 | m_ObjectArgument: {fileID: 0} 1300 | m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine 1301 | m_IntArgument: 0 1302 | m_FloatArgument: 0 1303 | m_StringArgument: 1304 | m_BoolArgument: 0 1305 | m_CallState: 2 1306 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 1307 | Culture=neutral, PublicKeyToken=null 1308 | --- !u!114 &1899911683 1309 | MonoBehaviour: 1310 | m_ObjectHideFlags: 0 1311 | m_PrefabParentObject: {fileID: 0} 1312 | m_PrefabInternal: {fileID: 0} 1313 | m_GameObject: {fileID: 1899911680} 1314 | m_Enabled: 1 1315 | m_EditorHideFlags: 0 1316 | m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 1317 | m_Name: 1318 | m_EditorClassIdentifier: 1319 | m_Material: {fileID: 0} 1320 | m_Color: {r: 1, g: 1, b: 1, a: 1} 1321 | m_RaycastTarget: 1 1322 | m_OnCullStateChanged: 1323 | m_PersistentCalls: 1324 | m_Calls: [] 1325 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 1326 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 1327 | m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} 1328 | m_Type: 1 1329 | m_PreserveAspect: 0 1330 | m_FillCenter: 1 1331 | m_FillMethod: 4 1332 | m_FillAmount: 1 1333 | m_FillClockwise: 1 1334 | m_FillOrigin: 0 1335 | --- !u!222 &1899911684 1336 | CanvasRenderer: 1337 | m_ObjectHideFlags: 0 1338 | m_PrefabParentObject: {fileID: 0} 1339 | m_PrefabInternal: {fileID: 0} 1340 | m_GameObject: {fileID: 1899911680} 1341 | --- !u!1 &1907631104 1342 | GameObject: 1343 | m_ObjectHideFlags: 0 1344 | m_PrefabParentObject: {fileID: 0} 1345 | m_PrefabInternal: {fileID: 0} 1346 | serializedVersion: 4 1347 | m_Component: 1348 | - 4: {fileID: 1907631109} 1349 | - 20: {fileID: 1907631108} 1350 | - 124: {fileID: 1907631107} 1351 | - 92: {fileID: 1907631106} 1352 | - 81: {fileID: 1907631105} 1353 | m_Layer: 0 1354 | m_Name: Main Camera 1355 | m_TagString: MainCamera 1356 | m_Icon: {fileID: 0} 1357 | m_NavMeshLayer: 0 1358 | m_StaticEditorFlags: 0 1359 | m_IsActive: 1 1360 | --- !u!81 &1907631105 1361 | AudioListener: 1362 | m_ObjectHideFlags: 0 1363 | m_PrefabParentObject: {fileID: 0} 1364 | m_PrefabInternal: {fileID: 0} 1365 | m_GameObject: {fileID: 1907631104} 1366 | m_Enabled: 1 1367 | --- !u!92 &1907631106 1368 | Behaviour: 1369 | m_ObjectHideFlags: 0 1370 | m_PrefabParentObject: {fileID: 0} 1371 | m_PrefabInternal: {fileID: 0} 1372 | m_GameObject: {fileID: 1907631104} 1373 | m_Enabled: 1 1374 | --- !u!124 &1907631107 1375 | Behaviour: 1376 | m_ObjectHideFlags: 0 1377 | m_PrefabParentObject: {fileID: 0} 1378 | m_PrefabInternal: {fileID: 0} 1379 | m_GameObject: {fileID: 1907631104} 1380 | m_Enabled: 1 1381 | --- !u!20 &1907631108 1382 | Camera: 1383 | m_ObjectHideFlags: 0 1384 | m_PrefabParentObject: {fileID: 0} 1385 | m_PrefabInternal: {fileID: 0} 1386 | m_GameObject: {fileID: 1907631104} 1387 | m_Enabled: 1 1388 | serializedVersion: 2 1389 | m_ClearFlags: 1 1390 | m_BackGroundColor: {r: 0.8980392, g: 0.98210716, b: 1, a: 0.019607844} 1391 | m_NormalizedViewPortRect: 1392 | serializedVersion: 2 1393 | x: 0 1394 | y: 0 1395 | width: 1 1396 | height: 1 1397 | near clip plane: 0.3 1398 | far clip plane: 1000 1399 | field of view: 60 1400 | orthographic: 0 1401 | orthographic size: 5 1402 | m_Depth: 0 1403 | m_CullingMask: 1404 | serializedVersion: 2 1405 | m_Bits: 4294967295 1406 | m_RenderingPath: -1 1407 | m_TargetTexture: {fileID: 0} 1408 | m_TargetDisplay: 0 1409 | m_TargetEye: 3 1410 | m_HDR: 0 1411 | m_OcclusionCulling: 1 1412 | m_StereoConvergence: 10 1413 | m_StereoSeparation: 0.022 1414 | m_StereoMirrorMode: 0 1415 | --- !u!4 &1907631109 1416 | Transform: 1417 | m_ObjectHideFlags: 0 1418 | m_PrefabParentObject: {fileID: 0} 1419 | m_PrefabInternal: {fileID: 0} 1420 | m_GameObject: {fileID: 1907631104} 1421 | m_LocalRotation: {x: 0.38268346, y: 0, z: 0, w: 0.9238795} 1422 | m_LocalPosition: {x: 0, y: 14.5, z: -10.5} 1423 | m_LocalScale: {x: 1, y: 1, z: 1} 1424 | m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0} 1425 | m_Children: [] 1426 | m_Father: {fileID: 0} 1427 | m_RootOrder: 0 1428 | -------------------------------------------------------------------------------- /Example/Assets/Main/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3a576ab5801948b0b5dd570754fb1ce 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/Main/Rotator.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class Rotator : MonoBehaviour { 5 | 6 | [SerializeField] private float rotationSpeed; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | 16 | float angle = transform.localEulerAngles.y + rotationSpeed * Time.deltaTime; 17 | if(angle > 360.0f) 18 | { 19 | angle -= 360.0f; 20 | } 21 | transform.localEulerAngles = new Vector3( 22 | transform.localEulerAngles.x, 23 | transform.localEulerAngles.y + rotationSpeed * Time.deltaTime, 24 | transform.localEulerAngles.z 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Example/Assets/Main/Rotator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fab8ce683b1f441589b2552b21e01ab6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Example/Assets/Objects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d63a035e108424b3389beb9f97f2f17f 3 | folderAsset: yes 4 | timeCreated: 1466098376 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Cube.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miyabi/unity-swift/9f749febcbd0b13afe531609e97f1b0328e8e09f/Example/Assets/Objects/Cube.fbx -------------------------------------------------------------------------------- /Example/Assets/Objects/Cube.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9164d45b2c5974ab48fb582a60937976 3 | ModelImporter: 4 | serializedVersion: 16 5 | fileIDToRecycleName: 6 | 100000: //RootNode 7 | 400000: //RootNode 8 | 2300000: //RootNode 9 | 3300000: //RootNode 10 | 4300000: Cube 11 | 9500000: //RootNode 12 | materials: 13 | importMaterials: 1 14 | materialName: 0 15 | materialSearch: 1 16 | animations: 17 | legacyGenerateAnimations: 4 18 | bakeSimulation: 0 19 | optimizeGameObjects: 0 20 | motionNodeName: 21 | animationCompression: 1 22 | animationRotationError: .5 23 | animationPositionError: .5 24 | animationScaleError: .5 25 | animationWrapMode: 0 26 | extraExposedTransformPaths: [] 27 | clipAnimations: [] 28 | isReadable: 1 29 | meshes: 30 | lODScreenPercentages: [] 31 | globalScale: .00999999978 32 | meshCompression: 0 33 | addColliders: 0 34 | importBlendShapes: 1 35 | swapUVChannels: 0 36 | generateSecondaryUV: 0 37 | useFileUnits: 1 38 | optimizeMeshForGPU: 1 39 | weldVertices: 1 40 | secondaryUVAngleDistortion: 8 41 | secondaryUVAreaDistortion: 15.000001 42 | secondaryUVHardAngle: 88 43 | secondaryUVPackMargin: 4 44 | tangentSpace: 45 | normalSmoothAngle: 60 46 | splitTangentsAcrossUV: 1 47 | normalImportMode: 0 48 | tangentImportMode: 1 49 | importAnimation: 1 50 | copyAvatar: 0 51 | humanDescription: 52 | human: [] 53 | skeleton: [] 54 | armTwist: .5 55 | foreArmTwist: .5 56 | upperLegTwist: .5 57 | legTwist: .5 58 | armStretch: .0500000007 59 | legStretch: .0500000007 60 | feetSpacing: 0 61 | rootMotionBoneName: 62 | lastHumanDescriptionAvatarSource: {instanceID: 0} 63 | animationType: 2 64 | additionalBone: 0 65 | userData: 66 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Ground.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Ground 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | data: 19 | first: 20 | name: _MainTex 21 | second: 22 | m_Texture: {fileID: 2800000, guid: 668f9c1e9caa747ef8a2d5f3590b4712, type: 3} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | m_Floats: {} 26 | m_Colors: 27 | data: 28 | first: 29 | name: _Color 30 | second: {r: 0.49803922, g: 0.49803922, b: 0.49803922, a: 1} 31 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Ground.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b23bb6da9100f493db9cdc3763b9f52e 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Ground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miyabi/unity-swift/9f749febcbd0b13afe531609e97f1b0328e8e09f/Example/Assets/Objects/Ground.png -------------------------------------------------------------------------------- /Example/Assets/Objects/Ground.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 668f9c1e9caa747ef8a2d5f3590b4712 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -3 25 | maxTextureSize: 512 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 092668b256349487780c430e67fc0aad 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Materials/CubeMat.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: CubeMat 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | data: 19 | first: 20 | name: _MainTex 21 | second: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | m_Floats: {} 26 | m_Colors: 27 | data: 28 | first: 29 | name: _Color 30 | second: {r: 0.18798922, g: 0.55680037, b: 0.7490196, a: 1} 31 | -------------------------------------------------------------------------------- /Example/Assets/Objects/Materials/CubeMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28f5d80159b894236b743fbef4450e07 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Example/Assets/UIController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class UIController : MonoBehaviour { 5 | 6 | // Use this for initialization 7 | void Start () { 8 | 9 | } 10 | 11 | // Update is called once per frame 12 | void Update () { 13 | 14 | } 15 | 16 | public void OnPressCallSwiftMethodButton() { 17 | Example.CallSwiftMethod("Hello, Swift!"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Example/Assets/UIController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f5c7d00867a14bbb8c0fa004bab8056 3 | timeCreated: 1465942870 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Example/Assets/UnitySwift.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5463632759494c0c9c76357197ff966 3 | folderAsset: yes 4 | timeCreated: 1467687641 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example/Assets/UnitySwift/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 391a19e6f711b498fa514c157fed3a7a 3 | folderAsset: yes 4 | timeCreated: 1467687641 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Example/Assets/UnitySwift/Editor/PostProcessor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using UnityEditor.Callbacks; 4 | using UnityEditor.iOS.Xcode; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using System.Diagnostics; 8 | using System.IO; 9 | using System.Linq; 10 | 11 | namespace UnitySwift { 12 | public static class PostProcessor { 13 | [PostProcessBuild] 14 | public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath) { 15 | if(buildTarget == BuildTarget.iOS) { 16 | // So PBXProject.GetPBXProjectPath returns wrong path, we need to construct path by ourselves instead 17 | // var projPath = PBXProject.GetPBXProjectPath(buildPath); 18 | var projPath = buildPath + "/Unity-iPhone.xcodeproj/project.pbxproj"; 19 | var proj = new PBXProject(); 20 | proj.ReadFromFile(projPath); 21 | 22 | var targetGuid = proj.TargetGuidByName(PBXProject.GetUnityTargetName()); 23 | 24 | //// Configure build settings 25 | proj.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO"); 26 | proj.SetBuildProperty(targetGuid, "SWIFT_OBJC_BRIDGING_HEADER", "Libraries/UnitySwift/UnitySwift-Bridging-Header.h"); 27 | proj.SetBuildProperty(targetGuid, "SWIFT_OBJC_INTERFACE_HEADER_NAME", "unityswift-Swift.h"); 28 | proj.AddBuildProperty(targetGuid, "LD_RUNPATH_SEARCH_PATHS", "@executable_path/Frameworks"); 29 | 30 | proj.WriteToFile(projPath); 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Example/Assets/UnitySwift/Editor/PostProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd00e9b781c034ecfa81246579806b3f 3 | timeCreated: 1468687463 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Example/Assets/UnitySwift/UnitySwift-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import 6 | #import 7 | #import "UnityInterface.h" 8 | -------------------------------------------------------------------------------- /Example/Assets/UnitySwift/UnitySwift-Bridging-Header.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d88763964993f492aaed83a9d99f81fb 3 | timeCreated: 1467687641 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 0 13 | settings: 14 | CPU: AnyCPU 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | DefaultValueInitialized: true 23 | OS: AnyOS 24 | Linux: 25 | enabled: 0 26 | settings: 27 | CPU: x86 28 | Linux64: 29 | enabled: 0 30 | settings: 31 | CPU: x86_64 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | OSXIntel64: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | Win: 41 | enabled: 0 42 | settings: 43 | CPU: AnyCPU 44 | Win64: 45 | enabled: 0 46 | settings: 47 | CPU: AnyCPU 48 | iOS: 49 | enabled: 1 50 | settings: 51 | CompileFlags: 52 | FrameworkDependencies: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /Example/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: 5 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_LegacyDeferred: 14 | m_Mode: 1 15 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 16 | m_AlwaysIncludedShaders: 17 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 18 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 19 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 20 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 21 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 22 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 23 | m_PreloadedShaders: [] 24 | m_ShaderSettings: 25 | useScreenSpaceShadows: 0 26 | m_BuildTargetShaderSettings: [] 27 | m_LightmapStripping: 0 28 | m_FogStripping: 0 29 | m_LightmapKeepPlain: 1 30 | m_LightmapKeepDirCombined: 1 31 | m_LightmapKeepDirSeparate: 1 32 | m_LightmapKeepDynamicPlain: 1 33 | m_LightmapKeepDynamicDirCombined: 1 34 | m_LightmapKeepDynamicDirSeparate: 1 35 | m_FogKeepLinear: 1 36 | m_FogKeepExp: 1 37 | m_FogKeepExp2: 1 38 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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: 8 7 | AndroidProfiler: 0 8 | defaultScreenOrientation: 4 9 | targetDevice: 2 10 | useOnDemandResources: 0 11 | accelerometerFrequency: 60 12 | companyName: DefaultCompany 13 | productName: UnitySwiftExample 14 | defaultCursor: {fileID: 0} 15 | cursorHotspot: {x: 0, y: 0} 16 | m_ShowUnitySplashScreen: 1 17 | m_VirtualRealitySplashScreen: {fileID: 0} 18 | defaultScreenWidth: 1024 19 | defaultScreenHeight: 768 20 | defaultScreenWidthWeb: 960 21 | defaultScreenHeightWeb: 600 22 | m_RenderingPath: 1 23 | m_MobileRenderingPath: 1 24 | m_ActiveColorSpace: 0 25 | m_MTRendering: 1 26 | m_MobileMTRendering: 0 27 | m_Stereoscopic3D: 0 28 | iosShowActivityIndicatorOnLoading: -1 29 | androidShowActivityIndicatorOnLoading: -1 30 | iosAppInBackgroundBehavior: 0 31 | displayResolutionDialog: 1 32 | iosAllowHTTPDownload: 1 33 | allowedAutorotateToPortrait: 1 34 | allowedAutorotateToPortraitUpsideDown: 1 35 | allowedAutorotateToLandscapeRight: 1 36 | allowedAutorotateToLandscapeLeft: 1 37 | useOSAutorotation: 1 38 | use32BitDisplayBuffer: 1 39 | disableDepthAndStencilBuffers: 0 40 | defaultIsFullScreen: 1 41 | defaultIsNativeResolution: 1 42 | runInBackground: 0 43 | captureSingleScreen: 0 44 | Override IPod Music: 0 45 | Prepare IOS For Recording: 0 46 | submitAnalytics: 1 47 | usePlayerLog: 1 48 | bakeCollisionMeshes: 0 49 | forceSingleInstance: 0 50 | resizableWindow: 0 51 | useMacAppStoreValidation: 0 52 | gpuSkinning: 0 53 | xboxPIXTextureCapture: 0 54 | xboxEnableAvatar: 0 55 | xboxEnableKinect: 0 56 | xboxEnableKinectAutoTracking: 0 57 | xboxEnableFitness: 0 58 | visibleInBackground: 0 59 | allowFullscreenSwitch: 1 60 | macFullscreenMode: 2 61 | d3d9FullscreenMode: 1 62 | d3d11FullscreenMode: 1 63 | xboxSpeechDB: 0 64 | xboxEnableHeadOrientation: 0 65 | xboxEnableGuest: 0 66 | xboxEnablePIXSampling: 0 67 | n3dsDisableStereoscopicView: 0 68 | n3dsEnableSharedListOpt: 1 69 | n3dsEnableVSync: 0 70 | uiUse16BitDepthBuffer: 0 71 | ignoreAlphaClear: 0 72 | xboxOneResolution: 0 73 | ps3SplashScreen: {fileID: 0} 74 | videoMemoryForVertexBuffers: 0 75 | psp2PowerMode: 0 76 | psp2AcquireBGM: 1 77 | wiiUTVResolution: 0 78 | wiiUGamePadMSAA: 1 79 | wiiUSupportsNunchuk: 0 80 | wiiUSupportsClassicController: 0 81 | wiiUSupportsBalanceBoard: 0 82 | wiiUSupportsMotionPlus: 0 83 | wiiUSupportsProController: 0 84 | wiiUAllowScreenCapture: 1 85 | wiiUControllerCount: 0 86 | m_SupportedAspectRatios: 87 | 4:3: 1 88 | 5:4: 1 89 | 16:10: 1 90 | 16:9: 1 91 | Others: 1 92 | bundleIdentifier: com.mybdesign.unityswiftexample 93 | bundleVersion: 1.0 94 | preloadedAssets: [] 95 | metroEnableIndependentInputSource: 0 96 | metroEnableLowLatencyPresentationAPI: 0 97 | xboxOneDisableKinectGpuReservation: 0 98 | virtualRealitySupported: 0 99 | productGUID: bc1513f458e97410cba4d41444ae276a 100 | AndroidBundleVersionCode: 1 101 | AndroidMinSdkVersion: 9 102 | AndroidPreferredInstallLocation: 1 103 | aotOptions: 104 | apiCompatibilityLevel: 2 105 | stripEngineCode: 1 106 | iPhoneStrippingLevel: 0 107 | iPhoneScriptCallOptimization: 0 108 | iPhoneBuildNumber: 0 109 | ForceInternetPermission: 0 110 | ForceSDCardPermission: 0 111 | CreateWallpaper: 0 112 | APKExpansionFiles: 0 113 | preloadShaders: 0 114 | StripUnusedMeshComponents: 0 115 | VertexChannelCompressionMask: 116 | serializedVersion: 2 117 | m_Bits: 238 118 | iPhoneSdkVersion: 988 119 | iPhoneTargetOSVersion: 24 120 | tvOSSdkVersion: 0 121 | tvOSTargetOSVersion: 900 122 | uIPrerenderedIcon: 0 123 | uIRequiresPersistentWiFi: 0 124 | uIRequiresFullScreen: 1 125 | uIStatusBarHidden: 1 126 | uIExitOnSuspend: 0 127 | uIStatusBarStyle: 0 128 | iPhoneSplashScreen: {fileID: 0} 129 | iPhoneHighResSplashScreen: {fileID: 0} 130 | iPhoneTallHighResSplashScreen: {fileID: 0} 131 | iPhone47inSplashScreen: {fileID: 0} 132 | iPhone55inPortraitSplashScreen: {fileID: 0} 133 | iPhone55inLandscapeSplashScreen: {fileID: 0} 134 | iPadPortraitSplashScreen: {fileID: 0} 135 | iPadHighResPortraitSplashScreen: {fileID: 0} 136 | iPadLandscapeSplashScreen: {fileID: 0} 137 | iPadHighResLandscapeSplashScreen: {fileID: 0} 138 | appleTVSplashScreen: {fileID: 0} 139 | tvOSSmallIconLayers: [] 140 | tvOSLargeIconLayers: [] 141 | tvOSTopShelfImageLayers: [] 142 | iOSLaunchScreenType: 0 143 | iOSLaunchScreenPortrait: {fileID: 0} 144 | iOSLaunchScreenLandscape: {fileID: 0} 145 | iOSLaunchScreenBackgroundColor: 146 | serializedVersion: 2 147 | rgba: 0 148 | iOSLaunchScreenFillPct: 100 149 | iOSLaunchScreenSize: 100 150 | iOSLaunchScreenCustomXibPath: 151 | iOSLaunchScreeniPadType: 0 152 | iOSLaunchScreeniPadImage: {fileID: 0} 153 | iOSLaunchScreeniPadBackgroundColor: 154 | serializedVersion: 2 155 | rgba: 0 156 | iOSLaunchScreeniPadFillPct: 100 157 | iOSLaunchScreeniPadSize: 100 158 | iOSLaunchScreeniPadCustomXibPath: 159 | iOSDeviceRequirements: [] 160 | AndroidTargetDevice: 0 161 | AndroidSplashScreenScale: 0 162 | androidSplashScreen: {fileID: 0} 163 | AndroidKeystoreName: 164 | AndroidKeyaliasName: 165 | AndroidTVCompatibility: 1 166 | AndroidIsGame: 1 167 | androidEnableBanner: 1 168 | m_AndroidBanners: 169 | - width: 320 170 | height: 180 171 | banner: {fileID: 0} 172 | androidGamepadSupportLevel: 0 173 | resolutionDialogBanner: {fileID: 0} 174 | m_BuildTargetIcons: 175 | - m_BuildTarget: 176 | m_Icons: 177 | - serializedVersion: 2 178 | m_Icon: {fileID: 0} 179 | m_Width: 128 180 | m_Height: 128 181 | m_BuildTargetBatching: [] 182 | m_BuildTargetGraphicsAPIs: [] 183 | webPlayerTemplate: APPLICATION:Default 184 | m_TemplateCustomTags: {} 185 | wiiUTitleID: 0005000011000000 186 | wiiUGroupID: 00010000 187 | wiiUCommonSaveSize: 4096 188 | wiiUAccountSaveSize: 2048 189 | wiiUOlvAccessKey: 0 190 | wiiUTinCode: 0 191 | wiiUJoinGameId: 0 192 | wiiUJoinGameModeMask: 0000000000000000 193 | wiiUCommonBossSize: 0 194 | wiiUAccountBossSize: 0 195 | wiiUAddOnUniqueIDs: [] 196 | wiiUMainThreadStackSize: 3072 197 | wiiULoaderThreadStackSize: 1024 198 | wiiUSystemHeapSize: 128 199 | wiiUTVStartupScreen: {fileID: 0} 200 | wiiUGamePadStartupScreen: {fileID: 0} 201 | wiiUDrcBufferDisabled: 0 202 | wiiUProfilerLibPath: 203 | actionOnDotNetUnhandledException: 1 204 | enableInternalProfiler: 0 205 | logObjCUncaughtExceptions: 1 206 | enableCrashReportAPI: 0 207 | locationUsageDescription: 208 | XboxTitleId: 209 | XboxImageXexPath: 210 | XboxSpaPath: 211 | XboxGenerateSpa: 0 212 | XboxDeployKinectResources: 0 213 | XboxSplashScreen: {fileID: 0} 214 | xboxEnableSpeech: 0 215 | xboxAdditionalTitleMemorySize: 0 216 | xboxDeployKinectHeadOrientation: 0 217 | xboxDeployKinectHeadPosition: 0 218 | ps3TitleConfigPath: 219 | ps3DLCConfigPath: 220 | ps3ThumbnailPath: 221 | ps3BackgroundPath: 222 | ps3SoundPath: 223 | ps3NPAgeRating: 12 224 | ps3TrophyCommId: 225 | ps3NpCommunicationPassphrase: 226 | ps3TrophyPackagePath: 227 | ps3BootCheckMaxSaveGameSizeKB: 128 228 | ps3TrophyCommSig: 229 | ps3SaveGameSlots: 1 230 | ps3TrialMode: 0 231 | ps3VideoMemoryForAudio: 0 232 | ps3EnableVerboseMemoryStats: 0 233 | ps3UseSPUForUmbra: 0 234 | ps3EnableMoveSupport: 1 235 | ps3DisableDolbyEncoding: 0 236 | ps4NPAgeRating: 12 237 | ps4NPTitleSecret: 238 | ps4NPTrophyPackPath: 239 | ps4ParentalLevel: 1 240 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 241 | ps4Category: 0 242 | ps4MasterVersion: 01.00 243 | ps4AppVersion: 01.00 244 | ps4AppType: 0 245 | ps4ParamSfxPath: 246 | ps4VideoOutPixelFormat: 0 247 | ps4VideoOutResolution: 4 248 | ps4PronunciationXMLPath: 249 | ps4PronunciationSIGPath: 250 | ps4BackgroundImagePath: 251 | ps4StartupImagePath: 252 | ps4SaveDataImagePath: 253 | ps4SdkOverride: 254 | ps4BGMPath: 255 | ps4ShareFilePath: 256 | ps4ShareOverlayImagePath: 257 | ps4PrivacyGuardImagePath: 258 | ps4NPtitleDatPath: 259 | ps4RemotePlayKeyAssignment: -1 260 | ps4RemotePlayKeyMappingDir: 261 | ps4EnterButtonAssignment: 1 262 | ps4ApplicationParam1: 0 263 | ps4ApplicationParam2: 0 264 | ps4ApplicationParam3: 0 265 | ps4ApplicationParam4: 0 266 | ps4DownloadDataSize: 0 267 | ps4GarlicHeapSize: 2048 268 | ps4Passcode: 9wQj99nsQzldVI5ZuGXbEWRK5RhRXdCd 269 | ps4UseDebugIl2cppLibs: 0 270 | ps4pnSessions: 1 271 | ps4pnPresence: 1 272 | ps4pnFriends: 1 273 | ps4pnGameCustomData: 1 274 | playerPrefsSupport: 0 275 | ps4ReprojectionSupport: 0 276 | ps4UseAudio3dBackend: 0 277 | ps4SocialScreenEnabled: 0 278 | ps4Audio3dVirtualSpeakerCount: 14 279 | ps4attribCpuUsage: 0 280 | ps4PatchPkgPath: 281 | ps4PatchLatestPkgPath: 282 | ps4PatchChangeinfoPath: 283 | ps4attribUserManagement: 0 284 | ps4attribMoveSupport: 0 285 | ps4attrib3DSupport: 0 286 | ps4attribShareSupport: 0 287 | ps4IncludedModules: [] 288 | monoEnv: 289 | psp2Splashimage: {fileID: 0} 290 | psp2NPTrophyPackPath: 291 | psp2NPSupportGBMorGJP: 0 292 | psp2NPAgeRating: 12 293 | psp2NPTitleDatPath: 294 | psp2NPCommsID: 295 | psp2NPCommunicationsID: 296 | psp2NPCommsPassphrase: 297 | psp2NPCommsSig: 298 | psp2ParamSfxPath: 299 | psp2ManualPath: 300 | psp2LiveAreaGatePath: 301 | psp2LiveAreaBackroundPath: 302 | psp2LiveAreaPath: 303 | psp2LiveAreaTrialPath: 304 | psp2PatchChangeInfoPath: 305 | psp2PatchOriginalPackage: 306 | psp2PackagePassword: G5nG5azdNMK66MuCV6GXi5xr84P2R391 307 | psp2KeystoneFile: 308 | psp2MemoryExpansionMode: 0 309 | psp2DRMType: 0 310 | psp2StorageType: 0 311 | psp2MediaCapacity: 0 312 | psp2DLCConfigPath: 313 | psp2ThumbnailPath: 314 | psp2BackgroundPath: 315 | psp2SoundPath: 316 | psp2TrophyCommId: 317 | psp2TrophyPackagePath: 318 | psp2PackagedResourcesPath: 319 | psp2SaveDataQuota: 10240 320 | psp2ParentalLevel: 1 321 | psp2ShortTitle: Not Set 322 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 323 | psp2Category: 0 324 | psp2MasterVersion: 01.00 325 | psp2AppVersion: 01.00 326 | psp2TVBootMode: 0 327 | psp2EnterButtonAssignment: 2 328 | psp2TVDisableEmu: 0 329 | psp2AllowTwitterDialog: 1 330 | psp2Upgradable: 0 331 | psp2HealthWarning: 0 332 | psp2UseLibLocation: 0 333 | psp2InfoBarOnStartup: 0 334 | psp2InfoBarColor: 0 335 | psp2UseDebugIl2cppLibs: 0 336 | psmSplashimage: {fileID: 0} 337 | spritePackerPolicy: 338 | scriptingDefineSymbols: {} 339 | metroPackageName: Example 340 | metroPackageVersion: 341 | metroCertificatePath: 342 | metroCertificatePassword: 343 | metroCertificateSubject: 344 | metroCertificateIssuer: 345 | metroCertificateNotAfter: 0000000000000000 346 | metroApplicationDescription: Example 347 | wsaImages: {} 348 | metroTileShortName: 349 | metroCommandLineArgsFile: 350 | metroTileShowName: 0 351 | metroMediumTileShowName: 0 352 | metroLargeTileShowName: 0 353 | metroWideTileShowName: 0 354 | metroDefaultTileSize: 1 355 | metroTileForegroundText: 1 356 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 357 | metroSplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, 358 | a: 1} 359 | metroSplashScreenUseBackgroundColor: 1 360 | platformCapabilities: {} 361 | metroFTAName: 362 | metroFTAFileTypes: [] 363 | metroProtocolName: 364 | metroCompilationOverrides: 1 365 | blackberryDeviceAddress: 366 | blackberryDevicePassword: 367 | blackberryTokenPath: 368 | blackberryTokenExires: 369 | blackberryTokenAuthor: 370 | blackberryTokenAuthorId: 371 | blackberryCskPassword: 372 | blackberrySaveLogPath: 373 | blackberrySharedPermissions: 0 374 | blackberryCameraPermissions: 0 375 | blackberryGPSPermissions: 0 376 | blackberryDeviceIDPermissions: 0 377 | blackberryMicrophonePermissions: 0 378 | blackberryGamepadSupport: 0 379 | blackberryBuildId: 0 380 | blackberryLandscapeSplashScreen: {fileID: 0} 381 | blackberryPortraitSplashScreen: {fileID: 0} 382 | blackberrySquareSplashScreen: {fileID: 0} 383 | tizenProductDescription: 384 | tizenProductURL: 385 | tizenSigningProfileName: 386 | tizenGPSPermissions: 0 387 | tizenMicrophonePermissions: 0 388 | n3dsUseExtSaveData: 0 389 | n3dsCompressStaticMem: 1 390 | n3dsExtSaveDataNumber: 0x12345 391 | n3dsStackSize: 131072 392 | n3dsTargetPlatform: 2 393 | n3dsRegion: 7 394 | n3dsMediaSize: 0 395 | n3dsLogoStyle: 3 396 | n3dsTitle: GameName 397 | n3dsProductCode: 398 | n3dsApplicationId: 0xFF3FF 399 | stvDeviceAddress: 400 | stvProductDescription: 401 | stvProductAuthor: 402 | stvProductAuthorEmail: 403 | stvProductLink: 404 | stvProductCategory: 0 405 | XboxOneProductId: 406 | XboxOneUpdateKey: 407 | XboxOneSandboxId: 408 | XboxOneContentId: 409 | XboxOneTitleId: 410 | XboxOneSCId: 411 | XboxOneGameOsOverridePath: 412 | XboxOnePackagingOverridePath: 413 | XboxOneAppManifestOverridePath: 414 | XboxOnePackageEncryption: 0 415 | XboxOnePackageUpdateGranularity: 2 416 | XboxOneDescription: 417 | XboxOneIsContentPackage: 0 418 | XboxOneEnableGPUVariability: 0 419 | XboxOneSockets: {} 420 | XboxOneSplashScreen: {fileID: 0} 421 | XboxOneAllowedProductIds: [] 422 | XboxOnePersistentLocalStorageSize: 0 423 | intPropertyNames: 424 | - Android::ScriptingBackend 425 | - WebPlayer::ScriptingBackend 426 | - iOS::Architecture 427 | - iOS::EnableIncrementalBuildSupportForIl2cpp 428 | - iOS::ScriptingBackend 429 | Android::ScriptingBackend: 0 430 | WebPlayer::ScriptingBackend: 0 431 | iOS::Architecture: 0 432 | iOS::EnableIncrementalBuildSupportForIl2cpp: 1 433 | iOS::ScriptingBackend: 1 434 | boolPropertyNames: 435 | - XboxOne::enus 436 | XboxOne::enus: 1 437 | stringPropertyNames: [] 438 | cloudProjectId: 439 | projectName: 440 | organizationId: 441 | cloudEnabled: 0 442 | -------------------------------------------------------------------------------- /Example/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.3.5f1 2 | m_StandardAssetsVersion: 0 3 | -------------------------------------------------------------------------------- /Example/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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 2 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 2 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 0 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 2 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 2 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 2 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | BlackBerry: 2 168 | GLES Emulation: 5 169 | Nintendo 3DS: 5 170 | PS3: 5 171 | PS4: 5 172 | PSM: 5 173 | PSP2: 2 174 | Samsung TV: 2 175 | Standalone: 5 176 | Tizen: 2 177 | WP8: 5 178 | Web: 5 179 | WebGL: 3 180 | WiiU: 5 181 | Windows Store Apps: 5 182 | XBOX360: 5 183 | XboxOne: 5 184 | iPhone: 2 185 | tvOS: 5 186 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/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 | -------------------------------------------------------------------------------- /Example/ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!292 &1 4 | UnityAdsSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_InitializeOnStartup: 1 8 | m_TestMode: 0 9 | m_EnabledPlatforms: 4294967295 10 | m_IosGameId: 11 | m_AndroidGameId: 12 | -------------------------------------------------------------------------------- /Example/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 | UnityPurchasingSettings: 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | UnityAnalyticsSettings: 10 | m_Enabled: 0 11 | m_InitializeOnStartup: 1 12 | m_TestMode: 0 13 | m_TestEventUrl: 14 | m_TestConfigUrl: 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # unity-swift 2 | 3 | Native plugin to write native code in [Swift](https://swift.org) for [Unity](http://unity3d.com/). 4 | 5 | ## Downloads 6 | 7 | Download unity-swift.unitypackage from link below: 8 | 9 | - [Releases · miyabi/unity-swift](https://github.com/miyabi/unity-swift/releases) 10 | 11 | ## Installation 12 | 13 | 1. Open your project in Unity. 14 | 2. Open the downloaded package by double-click or choose Assets menu > Import Package > Custom Package... to import plugin into your project. 15 | 3. Plugin files are imported into UnitySwift folder. 16 | 17 | ## Examples 18 | 19 | See Example/Assets/Main/Main.unity and [UIController.cs](./Example/Assets/UIController.cs). 20 | See [unity-replay-kit-bridge/Example/Assets/UnityReplayKitBridge at swift · miyabi/unity-replay-kit-bridge](https://github.com/miyabi/unity-replay-kit-bridge/tree/swift/Example/Assets/UnityReplayKitBridge) for an actual native plugin example. 21 | 22 | ## Usage 23 | 24 | ### How to call Unity methods 25 | 26 | Unity interface functions are defined in *UnityInterface.h* in Xcode project built by Unity. This header file is imported in *UnitySwift-Bridging-Header.h*, so you can call the functions directly in your Swift codes. 27 | 28 | To call Unity methods, use `UnitySendMessage` function like below: 29 | 30 | ```swift 31 | // Example.swift 32 | 33 | import Foundation 34 | 35 | class Example : NSObject { 36 | static func callUnityMethod(_ message: String) { 37 | // Call a method on a specified GameObject. 38 | UnitySendMessage("CallbackTarget", "OnCallFromSwift", message) 39 | } 40 | } 41 | ``` 42 | 43 | ### How to access Swift classes from Unity 44 | 45 | #### Step 1: Create your Swift classes. 46 | 47 | ```swift 48 | // Example.swift 49 | 50 | import Foundation 51 | 52 | class Example : NSObject { 53 | static func swiftMethod(_ message: String) { 54 | print("\(#function) is called with message: \(message)") 55 | } 56 | } 57 | ``` 58 | 59 | #### Step 2: Include "unityswift-Swift.h" and define C functions to wrap Swift classes in .mm file (Objective-C++). 60 | 61 | ```objc 62 | // Example.mm 63 | 64 | #import 65 | #import "unityswift-Swift.h" // Required 66 | // This header file is generated automatically when Xcode build runs. 67 | 68 | extern "C" { 69 | void _ex_callSwiftMethod(const char *message) { 70 | // You can access Swift classes directly here. 71 | [Example swiftMethod:[NSString stringWithUTF8String:message]]; 72 | } 73 | } 74 | ``` 75 | 76 | #### Step 3: Create interface class to call exported C functions from C#. 77 | 78 | ```csharp 79 | // Example.cs 80 | 81 | using System.Runtime.InteropServices; 82 | 83 | public class Example { 84 | #if UNITY_IOS && !UNITY_EDITOR 85 | [DllImport("__Internal")] 86 | private static extern void _ex_callSwiftMethod(string message); 87 | #endif 88 | 89 | // Use this method to call Example.swiftMethod() in Example.swift 90 | // from other C# classes. 91 | public static void CallSwiftMethod(string message) { 92 | #if UNITY_IOS && !UNITY_EDITOR 93 | _ex_callSwiftMethod(message); 94 | #endif 95 | } 96 | } 97 | ``` 98 | 99 | #### Step 4: Call the method from your C# code. 100 | 101 | ```csharp 102 | Example.CallSwiftMethod("Hello, Swift!"); 103 | ``` 104 | 105 | The file names of *UnitySwift-Bridging-Header.h* and *unityswift-Swift.h* are defined in "Objective-C Bridging Header" entry and "Objective-C Generated Interface Header Name" entry in Build Settings. These settings and other settings about Swift compiler are set automatically by [PostProcesser](./Example/Assets/UnitySwift/Editor/PostProcessor.cs) when the Unity build runs. 106 | 107 | ## Requirements 108 | 109 | iOS 7 or later 110 | 111 | ## Compatibility 112 | 113 | Unity 5.3.5f1 114 | Xcode 7.3.1 115 | -------------------------------------------------------------------------------- /unity-swift.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miyabi/unity-swift/9f749febcbd0b13afe531609e97f1b0328e8e09f/unity-swift.unitypackage --------------------------------------------------------------------------------