Quantcast
Channel: Questions in topic: "precompiler"
Browsing latest articles
Browse All 6 View Live

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 Article



Detect 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 Article

Precompiler 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
Browsing latest articles
Browse All 6 View Live




Latest Images