Assets/Scripts/GameLogic/Resume.js(44,11): BCE0019: 'active' is not a member of 'UnityEngine.GUIText

Hi…
I got problem and can’t do anything from 2 month so I did another project, but I still interest with this project. Could anybody help me? I am newbie on Unity …

there are the details:

var resume : GUITexture;
var resume_tex : Texture2D[];
var pauseMenu : GUITexture;
var click : AudioClip;

function Start () {

}

function Update () {
//if (Input.touchCount>0) {
//    for (var touch : Touch in Input.touches) {
//   
//   
//     if (touch.phase == TouchPhase.Began){
//    
//     if (play.HitTest(touch.position)) {
//           play.texture = play_tex[1];
//             
//        Application.LoadLevel("QuickPlay");
//   
//          
//       }      
//                                                                                                                                                
//                                                                                                                               
//                     
//       }
//      if (touch.phase == TouchPhase.Ended){
//           play.texture = play_tex[0];
//        
//     } 
//     
//        }
//      
//      
//       }

}

function OnMouseUp(){
resume.texture = resume_tex[0];
Time.timeScale = 1;
pauseMenu.active = false;
Application.LoadLevel("pauseMenu");

}
function OnMouseDown(){
GetComponent.<AudioSource>().PlayOneShot(click);
resume.texture = resume_tex[1];



}

Try

pauseMenu.SetActive(false);
//or
pauseMenu.gameObject.SetActive(false);
1 Like

@DroidifyDevs

The second option worked for us and fixed the only compile errors we had in the code. Thanks so much. BTW this worked on a compile error from a project upgrade from Unity 4.x.x to 5.6.6f2

Thanks again!