Search Unity

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

Discussion in 'Editor & General Support' started by jowin4ever, Jul 9, 2017.

  1. jowin4ever

    jowin4ever

    Joined:
    Jul 9, 2017
    Posts:
    5
    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:

    Code (CSharp):
    1.  
    2. var resume : GUITexture;
    3. var resume_tex : Texture2D[];
    4. var pauseMenu : GUITexture;
    5. var click : AudioClip;
    6.  
    7. function Start () {
    8.  
    9. }
    10.  
    11. function Update () {
    12. //if (Input.touchCount>0) {
    13. //    for (var touch : Touch in Input.touches) {
    14. //  
    15. //  
    16. //     if (touch.phase == TouchPhase.Began){
    17. //    
    18. //     if (play.HitTest(touch.position)) {
    19. //           play.texture = play_tex[1];
    20. //            
    21. //        Application.LoadLevel("QuickPlay");
    22. //  
    23. //          
    24. //       }      
    25. //                                                                                                                                                
    26. //                                                                                                                              
    27. //                    
    28. //       }
    29. //      if (touch.phase == TouchPhase.Ended){
    30. //           play.texture = play_tex[0];
    31. //        
    32. //     }
    33. //    
    34. //        }
    35. //      
    36. //      
    37. //       }
    38.  
    39. }
    40.  
    41. function OnMouseUp(){
    42. resume.texture = resume_tex[0];
    43. Time.timeScale = 1;
    44. pauseMenu.active = false;
    45. Application.LoadLevel("pauseMenu");
    46.  
    47. }
    48. function OnMouseDown(){
    49. GetComponent.<AudioSource>().PlayOneShot(click);
    50. resume.texture = resume_tex[1];
    51.  
    52.  
    53.  
    54. }
     
  2. DroidifyDevs

    DroidifyDevs

    Joined:
    Jun 24, 2015
    Posts:
    1,660
    hayato934 likes this.
  3. hayato934

    hayato934

    Joined:
    Feb 9, 2018
    Posts:
    1
    @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!
     
unityunity