• 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

If-else

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

basharmilesteg42 asked

If else block acts extremely weird

Nov 24, '21 in Help Room

0 Replies

0 Votes

avatar image

asafsitner answered

How to shift the player to a definite position in the x-axis using key presses?

Aug 29, '21 transform·transform.position·transform.translate·input.getkey·if-else

1 Reply

0 Votes

avatar image

melvincostner answered

check if my variable is in the same position as the array

Jun 7, '21 input·array·variables·strings·if-else

2 Replies

0 Votes

avatar image

Ketannine99 published

So I'm very new at Unity and I tried to improvise the controllers with if statement.

Mar 29, '21 in Help Room

0 Replies

0 Votes

avatar image

LaMa2223 published

Trigger on collider if another collider is in field of view

Jan 14, '21 colliders·fieldofview·field of view·if-else

0 Replies

0 Votes

avatar image

Bioshok2 answered

Questions about the event system in unity.

Aug 9, '20 inspector·2d-platformer·asset store·eventsystem·if-else

1 Reply

1 Votes

avatar image

unfixedacorn answered

If/else statement is always else

Jul 23, '20 in Help Room

1 Reply

0 Votes

avatar image

elee9 asked

why is my jump script not working?

Mar 21, '20 in Help Room

0 Replies

0 Votes

avatar image

toroberg published

Any way to slim down if/else statements?

Jul 23, '19 in Help Room

1 Reply

0 Votes

avatar image

edgalindo published

I want just animate only one robot when his button is pressed. Problem: that all 6 robots start animation when I press one of the six buttons.

May 18, '19 in Help Room

0 Replies

0 Votes

avatar image

Unity-Artcraft edited

How ifs work?

May 14, '19 in Help Room

0 Replies

0 Votes

avatar image

Nivbot edited

Change the scale with OnCollisionEnter once

Apr 9, '19 unity5·oncollisionenter·if·localscale·if-else

1 Reply

0 Votes

avatar image

Robertelis edited

GameObject return if, else

Mar 18, '19 gameobject·if-else

3 Replies

0 Votes

avatar image

riskaanisah edited

What's wrong code if-else with tag script ?

Nov 12, '18 tag·setactive·false·true·if-else

0 Replies

0 Votes

avatar image

Bunny83 commented

RaycastHit if/else Problem (bug?)

Mar 12, '18 physics·raycast·raycasthit·bug-perhaps·if-else

0 Replies

0 Votes

avatar image

freedom667 asked

if a string contains any string

Mar 7, '18 in Help Room

0 Replies

0 Votes

avatar image

DreadKyller commented

Simple toggle not working

Dec 19, '17 in Help Room

1 Reply

0 Votes

avatar image

Igor_Vasiak commented

How to pass a parameter only if certain condition is true?

Nov 29, '17 scripting problem·parameters·methods·if-else

1 Reply

0 Votes

avatar image

badri21 commented

If statement not working properly Closed

Jul 15, '17 if statement·if-else

0 Replies

0 Votes

avatar image

boxmyth edited

State Machine If Else Distance question (c#) Closed

Jul 10, '17 state-machine·if-else

1 Reply

0 Votes

avatar image

OfficialCoatsee commented

HELP ME PLEASE TO FIX MY PROBLEM..

Apr 9, '17 in Help Room

1 Reply

0 Votes

avatar image

MrCrumbl3d commented

Unity 5 OnCollisionEnter IF statement not working.

Apr 7, '17 in Help Room

1 Reply

0 Votes

avatar image

LandonC edited

Optimising if else statements to switch and enums, or are there better methods?

Mar 23, '17 optimization·switch·enum·if-else

1 Reply

0 Votes

avatar image

LandonC commented

Using a lot of calls and if else statement, is there a better way to do this?

Mar 4, '17 gameobject·text·if-else·calls

1 Reply

0 Votes

avatar image

mmciver edited

Checking nulls almost all the time! Is this normal?

Feb 27, '17 nullreferenceexception·if-else·null reference·static-vars

1 Reply

0 Votes

avatar image

Chikari commented

Randomly choosing between 3 options

Feb 13, '17 in Help Room

1 Reply

0 Votes

avatar image

UnityCoach commented

How to tell if the code flow changed

Jan 9, '17 in Help Room

2 Replies

0 Votes

avatar image

Arkins_prod_studio commented

multi verification

Sep 16, '16 in Help Room

1 Reply

0 Votes

avatar image

kylenoll123 edited

How to number players(Simple Probably)

Sep 11, '16 in Help Room

0 Replies

0 Votes

avatar image

MasiaT_max published

Something interesting with code

Aug 16, '16 in Help Room

0 Replies

0 Votes

  • 1
  • 2
  • 3
  • ›

Related Topics

if-statements if statement c# if else scripting problem trigger boolean gameobject if variables variable not working error switch raycast transform.position gui true animation else condition unity 5 text bool javascript


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