Search Unity

MONO UNITY_4, version tags not working.

Discussion in 'Editor & General Support' started by GameNative, Jan 31, 2015.

  1. GameNative

    GameNative

    Joined:
    Apr 17, 2014
    Posts:
    40
    Randomly after a compile the tags seems to have just stopped working.

    Code (csharp):
    1.  
    2. #if !UNITY_3 && !UNITY_4
    3.  
    4.     /// Clear flags to use for the reflection.
    5.     public ReflectionProbeClearFlags ClearFlags = ReflectionProbeClearFlags.Skybox;
    6.  
    7.     /// Layers to include in the reflection.
    8.     public LayerMask CullingMask = 0;
    9.  
    10.     #endif
    11.  
    now complains that.
    The type of namespace name 'ReflectionProbeClearFlags' could not be found (are you missing a using directive or assembly reference?).

    When this shouldn't even be evaluated as i'm using the latest version of Unity3D.


    It was literally working, I changed a simple math equation in another script, recompiled now it complains. I reverted the change, save, closed, reopened, rebooted, the same.
     
  2. GameNative

    GameNative

    Joined:
    Apr 17, 2014
    Posts:
    40
    Scratch that, literally right after posting this... I found that MONO got switched into "release" build instead of "debug".

    Project->Active Configuration->Debug

    Fixed the issue.
    I must have hit a hot key, by mistake?

    Leaving this here for a Google reference for another person.