- Home /
 
               Question by 
               $$anonymous$$ · May 08, 2015 at 03:13 AM · 
                variableserializationclasspropertiesdrawer  
              
 
              Property drawer stops variables from being read
For some reason i am getting this error: Assets/ColorScripts/Dot.js(33,33): BCE0005: Unknown identifier: 'HcolBG'.
The script is failing to read a variable that i have placed in a drawer.So those variables grouped in the drawer arent being read and i cant figure out why. The script should be able to read them. Thank you for any help.
 var sprite : SpriteRenderer;
 var Blue_Green : boolean;
 var Green : boolean;
 // Custom serializable class
 class BGColors extends System.Object  
 {
     public var HcolBG : float;
     public var ScolBG : float;
     public var VcolBG : float;
     public var HcolBG_old : float;
     public var ScolBG_old : float;
     public var VcolBG_old : float;
 }
 var BGValues : BGColors;
 
 function OnMouseEnter ()
 {
     if(Blue_Green)
     {
         BlueGreenHover();
     }
 }
 function OnMouseExit ()
 {
     if(Blue_Green)
     {
         BlueGreenExit();
     }
 }
 
 function BlueGreenHover ()
 {
     sprite.color = HSVtoRGB(HcolBG,ScolBG,VcolBG);
 }
 function BlueGreenExit ()
 {
     sprite.color = HSVtoRGB(HcolBG_old,ScolBG_old,VcolBG_old);
 }
 
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                