Search Unity

No access to scripting WindZone objects?

Discussion in 'Scripting' started by antonbursch, Dec 17, 2010.

  1. antonbursch

    antonbursch

    Joined:
    Mar 30, 2008
    Posts:
    39
    I can't seem to access the wind zone component to change properties in script. Is that by feature?
     
  2. PeterB

    PeterB

    Joined:
    Nov 3, 2010
    Posts:
    366
    Yes, how *does* one even declare a variable to contain a WindZone in UnityScript? The following does not work:

    Code (csharp):
    1. var wz : WindZone;
    2.  
    as the compiler comes back with an error message to the effect that WindZone is an unknown data type. Did someone forget to export it? This makes it impossible to work with #pragma strict active.