Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This question was closed Nov 16, 2013 at 12:21 AM by Julien-Lynge for the following reason:

Question is off-topic or not relevant

avatar image
-1
Question by luxidium · Nov 15, 2013 at 11:47 PM · javascript

Javascript code not working plz help

I have a simple project. When you enter a trigger, if the textfield contains a specific word, you would move to the next scene. And its not working even know I am not getting any errors

heres the code

function updates() {

 if (inTrigger == true){
     if (stringToEdit == "times");
         Application.LoadLevel("Scene2");
 }
     
 
 

}

function Start(){

}

private var inTrigger = false;

var stringToEdit : String = "";

function OnTriggerEnter(other: Collider){

 if (other.CompareTag("Player")){
     inTrigger = true;
 }
      
 }

function OnGUI(){ stringToEdit = GUI.TextField (Rect (10, 10, 200, 20), stringToEdit, 23); }

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

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by Julien-Lynge · Nov 16, 2013 at 12:21 AM

@luxidium,

Looking at your other questions, you seem to constantly post your code, with little explanation, asking other users to fix it. This is not behaviour we want to support, so I'm shutting down this question.

To help you write better questions in the future, here are some things you should fix:

  • No discernible question has been asked or not enough information is given. We cannot help you unless you tell us what isn't working, what you've already tried, and what you expect from the community. You can find more information about what is expected here.

  • Question is not of interest to other Unity users. Questions on UnityAnswers should be broadly applicable beyond your specific project.

  • Question is a 'fix my code for me' or 'fix my scene for me' question. UnityAnswers (UA) is not Quality Assurance (QA) - it is up to you to write and bugfix your own code. You can find more information on fixing your code here.

For more information on the standard for new questions on UnityAnswers, please see the FAQ: http://answers.unity3d.com/page/faq.html

//////////////////////////////

Perhaps what would be most helpful to you is Unity training. I would suggest visiting the following training websites to find the one that best helps you move forward. In addition to the sites below, you can always search YouTube, which has a large number of user-created Unity tutorials.

  • 3DBuzz (hover over the Unity dropdown) - http://www.3dbuzz.com/vbforum/sv_home.php

  • Lynda - https://www.lynda.com/

  • BurgZergArcade - http://www.burgzergarcade.com/

  • Unity3DStudent - http://www.unity3dstudent.com/

  • UnityGems - http://unitygems.com/

  • CGCookie - http://cgcookie.com/unity/

Comment
Add comment · Share
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

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Tutorial level 2 Answers

Pause Menu background problem 0 Answers

PlayerPrefs Help 1 Answer

Call JavaScript from c# Help! 0 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