BuildPipeline.BuildPlayer and UNITY_EDITOR incompatibility
I have a conditonal compilation like this: #if UNITY_EDITOR url = "file:///my_folder/myfile.txt"; #elif UNITY_WEBPLAYER url = "my_folder/myfile.txt"; #else url =...
View ArticleDetect use of LightProbes in shader code
For my mobile app, I use 2 opaque shaders. Lightmapped: Shader "Parabole/Unlit/Opaque" { Properties { _MainTex ("Base", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" "BW"="True" } Pass {...
View ArticlePrecompiler directives break MonoDevelop autoformat
My game has a lot of platform specific code, so I use a lot of stuff like #if UNITY_ANDROID || UNITY_IPHONE [code] #endif The problem is that this code does not get formatted when hitting Ctrl+I. Is...
View Article
More Pages to Explore .....