├── UnityLineWidthPlugin ├── en.lproj │ └── InfoPlist.strings ├── UnityLineWidthPlugin-Prefix.pch ├── UnityLineWidthPlugin.cpp └── UnityLineWidthPlugin-Info.plist ├── UnityProject ├── Assets │ ├── Line.mat │ ├── Main.unity │ ├── Main.unity.meta │ ├── Line.mat.meta │ ├── Plugins.meta │ ├── TransparentLine.shader.meta │ ├── Plugins │ │ ├── UnityLineWidthPlugin.bundle.meta │ │ └── UnityLineWidthPlugin.bundle │ │ │ ├── Contents │ │ │ ├── Info.plist.meta │ │ │ ├── MacOS.meta │ │ │ ├── MacOS │ │ │ │ ├── UnityLineWidthPlugin.meta │ │ │ │ └── UnityLineWidthPlugin │ │ │ ├── Resources.meta │ │ │ ├── Resources │ │ │ │ ├── en.lproj │ │ │ │ │ ├── InfoPlist.strings.meta │ │ │ │ │ └── InfoPlist.strings │ │ │ │ └── en.lproj.meta │ │ │ └── Info.plist │ │ │ └── Contents.meta │ ├── AALineEffects.cs.meta │ ├── MeshGenerator.cs.meta │ ├── AALineEffects.cs │ ├── TransparentLine.shader │ └── MeshGenerator.cs └── ProjectSettings │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── AudioManager.asset │ ├── InputManager.asset │ ├── NavMeshLayers.asset │ ├── DynamicsManager.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── NetworkManager.asset │ ├── ProjectSettings.asset │ ├── QualitySettings.asset │ ├── Physics2DSettings.asset │ └── EditorBuildSettings.asset ├── .gitignore ├── UnityLineWidthPlugin.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcuserdata │ └── keijiro.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── UnityLineWidthPlugin.xcscheme └── project.pbxproj └── README.md /UnityLineWidthPlugin/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /UnityProject/Assets/Line.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/Assets/Line.mat -------------------------------------------------------------------------------- /UnityProject/Assets/Main.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/Assets/Main.unity -------------------------------------------------------------------------------- /UnityProject/Assets/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 767604808ab314abebdcfb7f243b0329 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Line.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2f872b91b4c04af185e0765dac33c75 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76fec4047a26f40a09a095f4647376a4 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /UnityProject/Assets/TransparentLine.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7948a7f64445f4e0a9e6249cd8b624ac 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26e40f2a1d5274c409a36500b93e7667 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80133e529d7e54ee19ccdc3236776807 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dec3e10569d14ee8b332690c83ba89b 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bb4ca47fcba141b29eb6b6c9e26255e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/MacOS/UnityLineWidthPlugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb7c0b09e42fe4b2f9918e359b803bc8 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5be79e2080fda42f9af788c66c50a05a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54edb10d875aa4ebfb04ef72b303433c 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Resources/en.lproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02723f91862be4a1794a7a80401902f1 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | UnityProject/[Ll]ibrary/ 2 | UnityProject/[Tt]emp/ 3 | UnityProject/[Oo]bj/ 4 | 5 | # Autogenerated VS/MD solution and project files 6 | *.csproj 7 | *.unityproj 8 | *.sln 9 | *.pidb 10 | *.userprefs 11 | 12 | .DS_Store 13 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/MacOS/UnityLineWidthPlugin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/MacOS/UnityLineWidthPlugin -------------------------------------------------------------------------------- /UnityProject/Assets/AALineEffects.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 911dd34fd09b2431291de4cbd2c4f496 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /UnityProject/Assets/MeshGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78f3e370d84a64efcb4606cdf93de39e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /UnityLineWidthPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/unity-linewidth-plugin/HEAD/UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /UnityLineWidthPlugin/UnityLineWidthPlugin-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #ifdef __OBJC__ 8 | #import 9 | #endif 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | unity-linewidth-plugin 2 | ====================== 3 | 4 | This project shows how to use [Low-level Native Plugin Interface] 5 | (http://docs.unity3d.com/Documentation/Manual/NativePluginInterface.html) 6 | to call glLineWidth from scripts. 7 | 8 | ![Screenshot](http://keijiro.github.io/unity-linewidth-plugin/screenshot.png) 9 | 10 | -------------------------------------------------------------------------------- /UnityLineWidthPlugin/UnityLineWidthPlugin.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | extern "C" void UnityLineWidthPlugin_Initialize() 5 | { 6 | // Do nothing! 7 | } 8 | 9 | extern "C" void UnityRenderEvent(int eventID) 10 | { 11 | if (eventID == 0) 12 | { 13 | glLineWidth(1.0f); 14 | glDisable(GL_LINE_SMOOTH); 15 | } 16 | else 17 | { 18 | glLineWidth(0.01f * eventID); 19 | glEnable(GL_LINE_SMOOTH); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /UnityLineWidthPlugin.xcodeproj/xcuserdata/keijiro.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | UnityLineWidthPlugin.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 0F31D4F91839FBF60096E54E 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /UnityProject/Assets/AALineEffects.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Runtime.InteropServices; 4 | 5 | public class AALineEffects : MonoBehaviour 6 | { 7 | [Range(0.01f, 10.0f)] 8 | public float 9 | lineWidth = 1.5f; 10 | 11 | [DllImport ("UnityLineWidthPlugin")] 12 | private static extern void UnityLineWidthPlugin_Initialize (); 13 | 14 | // Enables the line width before rendering the scene. 15 | void OnPreRender () 16 | { 17 | UnityLineWidthPlugin_Initialize (); 18 | GL.IssuePluginEvent ((int)(lineWidth * 100)); 19 | } 20 | 21 | // Disables the line width after rendering the scene 22 | void OnPostRender () 23 | { 24 | GL.IssuePluginEvent (0); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /UnityProject/Assets/TransparentLine.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/Transparent Line" { 2 | Properties { 3 | _Color ("Color", Color) = (1, 1, 1, 0.5) 4 | } 5 | SubShader { 6 | Tags { "Queue" = "Transparent" } 7 | Pass { 8 | Blend SrcAlpha OneMinusSrcAlpha 9 | ZWrite off 10 | 11 | CGPROGRAM 12 | #pragma vertex vert 13 | #pragma fragment frag 14 | #include "UnityCG.cginc" 15 | 16 | half4 _Color; 17 | 18 | struct v2f { 19 | float4 pos : SV_POSITION; 20 | }; 21 | 22 | v2f vert (appdata_base v) 23 | { 24 | v2f o; 25 | o.pos = mul (UNITY_MATRIX_MVP, v.vertex); 26 | return o; 27 | } 28 | 29 | half4 frag (v2f i) : COLOR 30 | { 31 | return _Color; 32 | } 33 | ENDCG 34 | } 35 | } 36 | FallBack Off 37 | } 38 | -------------------------------------------------------------------------------- /UnityProject/Assets/MeshGenerator.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Runtime.InteropServices; 4 | 5 | public class MeshGenerator : MonoBehaviour 6 | { 7 | public int division = 200; 8 | Mesh mesh; 9 | Vector3[] vertices; 10 | float seed; 11 | 12 | // Awake: creates an empty line mesh. 13 | void Awake () 14 | { 15 | mesh = new Mesh (); 16 | GetComponent ().sharedMesh = mesh; 17 | 18 | vertices = new Vector3[division]; 19 | mesh.vertices = vertices; 20 | 21 | var indices = new int[division]; 22 | for (var i = 0; i < division; i++) 23 | { 24 | indices [i] = i; 25 | } 26 | mesh.SetIndices (indices, MeshTopology.LineStrip, 0); 27 | 28 | seed = Random.value; 29 | } 30 | 31 | // Update: deforms the line mesh. 32 | void Update () 33 | { 34 | for (var i = 0; i < division; i++) 35 | { 36 | var radius = Mathf.PerlinNoise (135.1f * i / division, Time.time * 0.6f + seed); 37 | vertices [i] = new Vector3 ( 38 | Mathf.Sin (112.7f * i / division), 39 | Mathf.Sin (156.7f * i / division), 40 | Mathf.Sin (133.4f * i / division) 41 | ) * radius; 42 | } 43 | mesh.vertices = vertices; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UnityLineWidthPlugin/UnityLineWidthPlugin-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | jp.radiumsoftware.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | CFPlugInDynamicRegisterFunction 26 | 27 | CFPlugInDynamicRegistration 28 | NO 29 | CFPlugInFactories 30 | 31 | 00000000-0000-0000-0000-000000000000 32 | MyFactoryFunction 33 | 34 | CFPlugInTypes 35 | 36 | 00000000-0000-0000-0000-000000000000 37 | 38 | 00000000-0000-0000-0000-000000000000 39 | 40 | 41 | CFPlugInUnloadFunction 42 | 43 | NSHumanReadableCopyright 44 | Copyright © 2013 Keijiro Takahashi. All rights reserved. 45 | 46 | 47 | -------------------------------------------------------------------------------- /UnityProject/Assets/Plugins/UnityLineWidthPlugin.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 13A603 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | UnityLineWidthPlugin 11 | CFBundleIdentifier 12 | jp.radiumsoftware.UnityLineWidthPlugin 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | UnityLineWidthPlugin 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | CFPlugInDynamicRegisterFunction 26 | 27 | CFPlugInDynamicRegistration 28 | NO 29 | CFPlugInFactories 30 | 31 | 00000000-0000-0000-0000-000000000000 32 | MyFactoryFunction 33 | 34 | CFPlugInTypes 35 | 36 | 00000000-0000-0000-0000-000000000000 37 | 38 | 00000000-0000-0000-0000-000000000000 39 | 40 | 41 | CFPlugInUnloadFunction 42 | 43 | DTCompiler 44 | com.apple.compilers.llvm.clang.1_0 45 | DTPlatformBuild 46 | 5A3005 47 | DTPlatformVersion 48 | GM 49 | DTSDKBuild 50 | 13A595 51 | DTSDKName 52 | macosx10.9 53 | DTXcode 54 | 0502 55 | DTXcodeBuild 56 | 5A3005 57 | NSHumanReadableCopyright 58 | Copyright © 2013 Keijiro Takahashi. All rights reserved. 59 | 60 | 61 | -------------------------------------------------------------------------------- /UnityLineWidthPlugin.xcodeproj/xcuserdata/keijiro.xcuserdatad/xcschemes/UnityLineWidthPlugin.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 42 | 43 | 44 | 45 | 51 | 52 | 54 | 55 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /UnityLineWidthPlugin.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0F31D4FE1839FBF60096E54E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F31D4FD1839FBF60096E54E /* CoreFoundation.framework */; }; 11 | 0F31D5041839FBF60096E54E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0F31D5021839FBF60096E54E /* InfoPlist.strings */; }; 12 | 0F31D50D1839FC160096E54E /* UnityLineWidthPlugin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F31D50B1839FC160096E54E /* UnityLineWidthPlugin.cpp */; }; 13 | 0F31D50F1839FC9F0096E54E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F31D50E1839FC9F0096E54E /* OpenGL.framework */; }; 14 | /* End PBXBuildFile section */ 15 | 16 | /* Begin PBXFileReference section */ 17 | 0F31D4FA1839FBF60096E54E /* UnityLineWidthPlugin.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnityLineWidthPlugin.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 18 | 0F31D4FD1839FBF60096E54E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; 19 | 0F31D5011839FBF60096E54E /* UnityLineWidthPlugin-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UnityLineWidthPlugin-Info.plist"; sourceTree = ""; }; 20 | 0F31D5031839FBF60096E54E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 21 | 0F31D5051839FBF60096E54E /* UnityLineWidthPlugin-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UnityLineWidthPlugin-Prefix.pch"; sourceTree = ""; }; 22 | 0F31D50B1839FC160096E54E /* UnityLineWidthPlugin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityLineWidthPlugin.cpp; sourceTree = ""; }; 23 | 0F31D50E1839FC9F0096E54E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; 24 | /* End PBXFileReference section */ 25 | 26 | /* Begin PBXFrameworksBuildPhase section */ 27 | 0F31D4F71839FBF60096E54E /* Frameworks */ = { 28 | isa = PBXFrameworksBuildPhase; 29 | buildActionMask = 2147483647; 30 | files = ( 31 | 0F31D50F1839FC9F0096E54E /* OpenGL.framework in Frameworks */, 32 | 0F31D4FE1839FBF60096E54E /* CoreFoundation.framework in Frameworks */, 33 | ); 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXFrameworksBuildPhase section */ 37 | 38 | /* Begin PBXGroup section */ 39 | 0F31D4F11839FBF60096E54E = { 40 | isa = PBXGroup; 41 | children = ( 42 | 0F31D4FF1839FBF60096E54E /* UnityLineWidthPlugin */, 43 | 0F31D4FC1839FBF60096E54E /* Frameworks */, 44 | 0F31D4FB1839FBF60096E54E /* Products */, 45 | ); 46 | sourceTree = ""; 47 | }; 48 | 0F31D4FB1839FBF60096E54E /* Products */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 0F31D4FA1839FBF60096E54E /* UnityLineWidthPlugin.bundle */, 52 | ); 53 | name = Products; 54 | sourceTree = ""; 55 | }; 56 | 0F31D4FC1839FBF60096E54E /* Frameworks */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 0F31D50E1839FC9F0096E54E /* OpenGL.framework */, 60 | 0F31D4FD1839FBF60096E54E /* CoreFoundation.framework */, 61 | ); 62 | name = Frameworks; 63 | sourceTree = ""; 64 | }; 65 | 0F31D4FF1839FBF60096E54E /* UnityLineWidthPlugin */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 0F31D5001839FBF60096E54E /* Supporting Files */, 69 | 0F31D50B1839FC160096E54E /* UnityLineWidthPlugin.cpp */, 70 | ); 71 | path = UnityLineWidthPlugin; 72 | sourceTree = ""; 73 | }; 74 | 0F31D5001839FBF60096E54E /* Supporting Files */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 0F31D5011839FBF60096E54E /* UnityLineWidthPlugin-Info.plist */, 78 | 0F31D5021839FBF60096E54E /* InfoPlist.strings */, 79 | 0F31D5051839FBF60096E54E /* UnityLineWidthPlugin-Prefix.pch */, 80 | ); 81 | name = "Supporting Files"; 82 | sourceTree = ""; 83 | }; 84 | /* End PBXGroup section */ 85 | 86 | /* Begin PBXNativeTarget section */ 87 | 0F31D4F91839FBF60096E54E /* UnityLineWidthPlugin */ = { 88 | isa = PBXNativeTarget; 89 | buildConfigurationList = 0F31D5081839FBF60096E54E /* Build configuration list for PBXNativeTarget "UnityLineWidthPlugin" */; 90 | buildPhases = ( 91 | 0F31D4F61839FBF60096E54E /* Sources */, 92 | 0F31D4F71839FBF60096E54E /* Frameworks */, 93 | 0F31D4F81839FBF60096E54E /* Resources */, 94 | ); 95 | buildRules = ( 96 | ); 97 | dependencies = ( 98 | ); 99 | name = UnityLineWidthPlugin; 100 | productName = UnityLineWidthPlugin; 101 | productReference = 0F31D4FA1839FBF60096E54E /* UnityLineWidthPlugin.bundle */; 102 | productType = "com.apple.product-type.bundle"; 103 | }; 104 | /* End PBXNativeTarget section */ 105 | 106 | /* Begin PBXProject section */ 107 | 0F31D4F21839FBF60096E54E /* Project object */ = { 108 | isa = PBXProject; 109 | attributes = { 110 | LastUpgradeCheck = 0500; 111 | ORGANIZATIONNAME = "Keijiro Takahashi"; 112 | }; 113 | buildConfigurationList = 0F31D4F51839FBF60096E54E /* Build configuration list for PBXProject "UnityLineWidthPlugin" */; 114 | compatibilityVersion = "Xcode 3.2"; 115 | developmentRegion = English; 116 | hasScannedForEncodings = 0; 117 | knownRegions = ( 118 | en, 119 | ); 120 | mainGroup = 0F31D4F11839FBF60096E54E; 121 | productRefGroup = 0F31D4FB1839FBF60096E54E /* Products */; 122 | projectDirPath = ""; 123 | projectRoot = ""; 124 | targets = ( 125 | 0F31D4F91839FBF60096E54E /* UnityLineWidthPlugin */, 126 | ); 127 | }; 128 | /* End PBXProject section */ 129 | 130 | /* Begin PBXResourcesBuildPhase section */ 131 | 0F31D4F81839FBF60096E54E /* Resources */ = { 132 | isa = PBXResourcesBuildPhase; 133 | buildActionMask = 2147483647; 134 | files = ( 135 | 0F31D5041839FBF60096E54E /* InfoPlist.strings in Resources */, 136 | ); 137 | runOnlyForDeploymentPostprocessing = 0; 138 | }; 139 | /* End PBXResourcesBuildPhase section */ 140 | 141 | /* Begin PBXSourcesBuildPhase section */ 142 | 0F31D4F61839FBF60096E54E /* Sources */ = { 143 | isa = PBXSourcesBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | 0F31D50D1839FC160096E54E /* UnityLineWidthPlugin.cpp in Sources */, 147 | ); 148 | runOnlyForDeploymentPostprocessing = 0; 149 | }; 150 | /* End PBXSourcesBuildPhase section */ 151 | 152 | /* Begin PBXVariantGroup section */ 153 | 0F31D5021839FBF60096E54E /* InfoPlist.strings */ = { 154 | isa = PBXVariantGroup; 155 | children = ( 156 | 0F31D5031839FBF60096E54E /* en */, 157 | ); 158 | name = InfoPlist.strings; 159 | sourceTree = ""; 160 | }; 161 | /* End PBXVariantGroup section */ 162 | 163 | /* Begin XCBuildConfiguration section */ 164 | 0F31D5061839FBF60096E54E /* Debug */ = { 165 | isa = XCBuildConfiguration; 166 | buildSettings = { 167 | ALWAYS_SEARCH_USER_PATHS = NO; 168 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 169 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 170 | CLANG_CXX_LIBRARY = "libc++"; 171 | CLANG_ENABLE_OBJC_ARC = YES; 172 | CLANG_WARN_BOOL_CONVERSION = YES; 173 | CLANG_WARN_CONSTANT_CONVERSION = YES; 174 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 175 | CLANG_WARN_EMPTY_BODY = YES; 176 | CLANG_WARN_ENUM_CONVERSION = YES; 177 | CLANG_WARN_INT_CONVERSION = YES; 178 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 179 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 180 | COPY_PHASE_STRIP = NO; 181 | GCC_C_LANGUAGE_STANDARD = gnu99; 182 | GCC_DYNAMIC_NO_PIC = NO; 183 | GCC_ENABLE_OBJC_EXCEPTIONS = YES; 184 | GCC_OPTIMIZATION_LEVEL = 0; 185 | GCC_PREPROCESSOR_DEFINITIONS = ( 186 | "DEBUG=1", 187 | "$(inherited)", 188 | ); 189 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 190 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 191 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 192 | GCC_WARN_UNDECLARED_SELECTOR = YES; 193 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 194 | GCC_WARN_UNUSED_FUNCTION = YES; 195 | GCC_WARN_UNUSED_VARIABLE = YES; 196 | MACOSX_DEPLOYMENT_TARGET = 10.9; 197 | ONLY_ACTIVE_ARCH = YES; 198 | SDKROOT = macosx; 199 | }; 200 | name = Debug; 201 | }; 202 | 0F31D5071839FBF60096E54E /* Release */ = { 203 | isa = XCBuildConfiguration; 204 | buildSettings = { 205 | ALWAYS_SEARCH_USER_PATHS = NO; 206 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 207 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 208 | CLANG_CXX_LIBRARY = "libc++"; 209 | CLANG_ENABLE_OBJC_ARC = YES; 210 | CLANG_WARN_BOOL_CONVERSION = YES; 211 | CLANG_WARN_CONSTANT_CONVERSION = YES; 212 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 213 | CLANG_WARN_EMPTY_BODY = YES; 214 | CLANG_WARN_ENUM_CONVERSION = YES; 215 | CLANG_WARN_INT_CONVERSION = YES; 216 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 217 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 218 | COPY_PHASE_STRIP = YES; 219 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 220 | ENABLE_NS_ASSERTIONS = NO; 221 | GCC_C_LANGUAGE_STANDARD = gnu99; 222 | GCC_ENABLE_OBJC_EXCEPTIONS = YES; 223 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 224 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 225 | GCC_WARN_UNDECLARED_SELECTOR = YES; 226 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 227 | GCC_WARN_UNUSED_FUNCTION = YES; 228 | GCC_WARN_UNUSED_VARIABLE = YES; 229 | MACOSX_DEPLOYMENT_TARGET = 10.9; 230 | SDKROOT = macosx; 231 | }; 232 | name = Release; 233 | }; 234 | 0F31D5091839FBF60096E54E /* Debug */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | COMBINE_HIDPI_IMAGES = YES; 238 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 239 | GCC_PREFIX_HEADER = "UnityLineWidthPlugin/UnityLineWidthPlugin-Prefix.pch"; 240 | INFOPLIST_FILE = "UnityLineWidthPlugin/UnityLineWidthPlugin-Info.plist"; 241 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; 242 | PRODUCT_NAME = "$(TARGET_NAME)"; 243 | WRAPPER_EXTENSION = bundle; 244 | }; 245 | name = Debug; 246 | }; 247 | 0F31D50A1839FBF60096E54E /* Release */ = { 248 | isa = XCBuildConfiguration; 249 | buildSettings = { 250 | COMBINE_HIDPI_IMAGES = YES; 251 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 252 | GCC_PREFIX_HEADER = "UnityLineWidthPlugin/UnityLineWidthPlugin-Prefix.pch"; 253 | INFOPLIST_FILE = "UnityLineWidthPlugin/UnityLineWidthPlugin-Info.plist"; 254 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; 255 | PRODUCT_NAME = "$(TARGET_NAME)"; 256 | WRAPPER_EXTENSION = bundle; 257 | }; 258 | name = Release; 259 | }; 260 | /* End XCBuildConfiguration section */ 261 | 262 | /* Begin XCConfigurationList section */ 263 | 0F31D4F51839FBF60096E54E /* Build configuration list for PBXProject "UnityLineWidthPlugin" */ = { 264 | isa = XCConfigurationList; 265 | buildConfigurations = ( 266 | 0F31D5061839FBF60096E54E /* Debug */, 267 | 0F31D5071839FBF60096E54E /* Release */, 268 | ); 269 | defaultConfigurationIsVisible = 0; 270 | defaultConfigurationName = Release; 271 | }; 272 | 0F31D5081839FBF60096E54E /* Build configuration list for PBXNativeTarget "UnityLineWidthPlugin" */ = { 273 | isa = XCConfigurationList; 274 | buildConfigurations = ( 275 | 0F31D5091839FBF60096E54E /* Debug */, 276 | 0F31D50A1839FBF60096E54E /* Release */, 277 | ); 278 | defaultConfigurationIsVisible = 0; 279 | }; 280 | /* End XCConfigurationList section */ 281 | }; 282 | rootObject = 0F31D4F21839FBF60096E54E /* Project object */; 283 | } 284 | --------------------------------------------------------------------------------