Search Unity

_WindEnabled issue

Discussion in 'Shaders' started by unity_W3rLGozcKkUuGg, Oct 29, 2019.

  1. unity_W3rLGozcKkUuGg

    unity_W3rLGozcKkUuGg

    Joined:
    Apr 25, 2019
    Posts:
    11
    Took a while to figure out what was happening with my tree speedtree shader when running in my mobile game: A variable called _WindEnabled is never true.

    Looks like this variable is set to true by any wind zone component so, if there's a Wind Zone component, this should work. And actually, it does. It runs on editor and also runs into the device once I use a test scene to check if is working.

    My problem only happens while running my scenes, which contains a WindZone, from my loading system.

    For sure, no script unset this _WindEnabled so something else is preventing that variable to be loaded.

    Anyone have a clue to what I should look for? There's any know issue on Unity 2018.4 related with some condition that can cause this variable to be set to <= 0?

    This is an internal unity variable, maybe someone from Unity can explain a little bit about what's behind this _WindEnabled and what can break it?