Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by zhudengping · Dec 05, 2016 at 07:33 AM · untiy3d

go to definition failed either because the caret is already at the definition or because an explicit definition could not be found

pragma strict

ar guanYuWindowMain = false;
var sheZhiWindow1 = false;
var bangZhuWindow2 =false;
var lianXikefuWindow2 =false;
var windowMargin: int = 30;

 var anniu1=true;
 var anniu2=true;
 var shezhi:GUISkin;
 var kaishi : GUISkin;
 var tuichu : GUISkin;
 var chuangkou : GUISkin;
 var guanbi : GUISkin;
 var img : Texture2D;

private var windowRectMain = Rect (windowMargin, windowMargin, 306, Screen.height-windowMargin*2);

private var windowRect1 = Rect (306+windowMargin*2, windowMargin, 306, Screen.height-windowMargin*2);

private var windowRect2 = Rect (306+306+windowMargin*3, windowMargin, Screen.width-306-306-windowMargin*4, Screen.height-windowMargin*2);

function GuanYuwindowMain (windowID : int) { GUILayout.Space(8); GUI.skin=chuangkou; GUILayout.Label ("组员,\n2016年11月"); GUI.skin=guanbi; if (GUI.Button(Rect(124,258,50,30),"关闭")){ if (guanYuWindowMain) guanYuWindowMain=false; else guanYuWindowMain=true; }

     }
 function  BangZhuWindow2 (windowID : int)
     {
         GUILayout.Space(8);
         GUI.skin=chuangkou;
         GUILayout.Label("操作方法,关卡设置说明\n利用计算机及各种传感设备构造一种信息环境,人能够高效,自然地对此信息环境进行感知、交互,产生沉浸感或达到某种信息传达的目的,  ");
         GUI.skin=guanbi;
         if (GUI.Button(Rect(124,258,50,30),"关闭")){
             if (bangZhuWindow2)
                 bangZhuWindow2=false;
             else
                 bangZhuWindow2=true;
         }
     }
     function SheZhiWindow1  (windowID : int)
         {
             GUILayout.Space(8);
             GUILayout.BeginVertical();
             GUILayout.Space(50);
             GUILayout.Toggle(anniu1,'音乐开');
             GUILayout.Space(70);
             GUILayout.Toggle(anniu2,'音效开');
      
        
             GUILayout.EndVertical();
             GUI.skin=guanbi;
             if (GUI.Button(Rect(124,258,50,30),"关闭")){
                 if (sheZhiWindow1 )
                     sheZhiWindow1 =false;
                 else
                     sheZhiWindow1 =true;
             }
         }
         function OnGUI ()
         {
             GUI.skin =shezhi;

             if (guanYuWindowMain)
                 windowRectMain = GUI.Window (0, windowRectMain,GuanYuWindowMain,"关于");
     
             if (bangZhuWindow2 )
                 windowRectMain = GUI.Window (0, windowRectMain,BangZhuWindow2, "帮助");
     
             if (sheZhiWindow1)
                 windowRectMain= GUI.Window (0, windowRectMain, SheZhiWindow1, "设置");
             GUI.Label(Rect(0,0,Screen.width-306-306-windowMargin*4, Screen.height-windowMargin*2),img);
             GUILayout.BeginVertical();
             GUILayout.Label("");
             GUILayout.Space(Screen.height-windowMargin*2);
             GUILayout.BeginHorizontal();
             GUILayout.Space(60);
             GUILayout.BeginVertical();
             if( GUILayout.Button("设置",GUILayout.Width(60),GUILayout.Height(30)))
             {
                 if (sheZhiWindow1 )
                     sheZhiWindow1 =false;
                 else
                     sheZhiWindow1 =true;
             }
             if( GUILayout.Button("关于",GUILayout.Width(60),GUILayout.Height(30)))
             {
                 if (guanYuWindowMain )
                     guanYuWindowMain =false;
                 else
                     guanYuWindowMain =true;
             }
             if( GUILayout.Button("帮助",GUILayout.Width(60),GUILayout.Height(30)))
             {
                 if (bangZhuWindow2 )
                     bangZhuWindow2 =false;
                 else
                     bangZhuWindow2 =true;
             }
         }
        {
         GUILayout.EndVertical();
         GUI.skin=kaishi;  
          GUILayout.Space(Screen.width-400);
         GUILayout.BeginVertical();
         GUILayout.Label("");
         GUILayout.Space(20);
         GUILayout.BeginHorizontal();
        if( GUILayout.Button("",GUILayout.Width(120),GUILayout.Height(60))) {
             Application.LoadLevel("1");
         }      
         GUI.skin=tuichu;
         if( GUILayout.Button("",GUILayout.Width(100),GUILayout.Height(60))) {
             Application.Quit();
         }
         GUILayout.EndHorizontal();
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
         GUILayout.EndVertical();
     
     
     }
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Date File was edited? 0 Answers

Unity Build Error: Missing 'package' key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54 2 Answers

Load a different sky box in each world 3 Answers

Unity UI Builder Toggle can't change checkmark size 1 Answer

Angle between vectors - calculation 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges