• 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 Statement

Cancel

Cancel

All Questions

  • Unanswered Questions
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

euanross400 asked

2D game: When going from left input to right input fast the player stops moving

Mar 17, '21 boolean·if statement

0 Replies

0 Votes

avatar image

FejZa commented

if (Something != null) not good enough

Feb 5, '21 in Help Room

2 Replies

2 Votes

avatar image

Brosiscreations commented

PlayerPrefs with if statement not working

Feb 4, '21 playerprefs·if statement

1 Reply

0 Votes

avatar image

Chuckles9000 commented

if statement being completely ignored c#

Feb 3, '21 in Help Room

1 Reply

0 Votes

avatar image

Llama_w_2Ls answered

How to make a script work in scene1 only if a collider in scene2 is triggered

Jan 30, '21 playerprefs·collider2d·triggers·if statement

1 Reply

0 Votes

avatar image

ActiveMars91 edited

I'm not too sure what's wrong with my if statement...

Jan 19, '21 movement·navmeshagent·player movement·if statement

0 Replies

0 Votes

avatar image

sacredgeometry commented

I can't figure out why this if statement isn't responding

Dec 30, '20 c#·scripting problem·bool·if statement

1 Reply

0 Votes

avatar image

sacredgeometry edited

If statement not working

Dec 22, '20 collision2d·if statement

1 Reply

0 Votes

avatar image

unity_dtU7ncIXBupd9w published

How do I make those if statements work

Dec 3, '20 in Help Room

0 Replies

0 Votes

avatar image

Maggiethegsd answered

If Get key not working

Nov 5, '20 if statement·getkey

2 Replies

0 Votes

avatar image

gabrielkazansky asked

Turret rotation towards a Widget,Making a Game Object rotate towards a widget

Oct 31, '20 in Help Room

0 Replies

0 Votes

avatar image

keshabpaul45 answered

C# If string is equal to any in array

Oct 25, '20 in Help Room

2 Replies

0 Votes

avatar image

codedbythet asked

If Statement Help

Oct 14, '20 in Help Room

0 Replies

0 Votes

avatar image

emmafhanda published

Conflicting Animator SetTrigger

Oct 9, '20 c#·animation·animator·if·if statement

0 Replies

0 Votes

avatar image

devinwc published

If & Else If with == and && not working

Sep 28, '20 in Help Room

0 Replies

0 Votes

avatar image

Dtained published

Vector3 is increasing infinitely instead of capping at the if statement limit,Doing a smooth move for a camera but it continues to pan even though it reaches it's x and y offset

Sep 21, '20 in Help Room

0 Replies

0 Votes

avatar image

TwiningLion1357 commented

How To Detect Player Movement

Sep 19, '20 c#·movement·player·if statement·detect

1 Reply

0 Votes

avatar image

gf457767 commented

How can I make a Dropdown be activated by a Script? Closed

Jul 26, '20 ui·dropdown·if statement

1 Reply

0 Votes

avatar image

unfixedacorn answered

If/else statement is always else

Jul 23, '20 in Help Room

1 Reply

0 Votes

avatar image

unfixedacorn commented

If statement not working

Jul 12, '20 if-statements·if statement·if-statement

1 Reply

0 Votes

avatar image

Hellium edited

C# How to Check If a Gameobject Contains a Certain Component

Jun 25, '20 c#·component·if statement

4 Replies

10 Votes

avatar image

Bunny83 commented

If statement automatically true

Jun 24, '20 in Help Room

1 Reply

0 Votes

avatar image

Sidd_Code answered

Returns 2 or more outputs, when I need only 1 output printed, by using Random.Range(...)?

Jun 16, '20 unityeditor·ontriggerenter·random.range·if statement·print

1 Reply

0 Votes

avatar image

mucilagiuww edited

Why is a function being called for one trigger but not the other?

Jun 1, '20 instantiate·collider2d·if statement·function call

2 Replies

0 Votes

avatar image

AxetheRoad edited

How to enable a portal when reaching a certain amount of score?

May 27, '20 in Help Room

0 Replies

0 Votes

avatar image

ars_longa edited

Using "if" statements to designate movement limits

May 4, '20 in Help Room

0 Replies

0 Votes

avatar image

CryptoJanne asked

Problem with for loop using if statements

Apr 23, '20 in Help Room

0 Replies

0 Votes

avatar image

Casiell commented

I am referring a bool function from other script and i am checking with in if condition , but it is not working? can anyone can help me?

Apr 14, '20 c#·method·if statement·booleans·programing

0 Replies

0 Votes

avatar image

jjjacer answered

Turn Based - Multiple players fire even if not active

Mar 28, '20 in Help Room

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Followers

avatar image

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

c# if-statements if scripting problem boolean bool if else javascript gameobject condition error animation else if-else instantiate float trigger button null collider collision setactive unity 5 operator transform


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