• 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

ActiveMars91 edited

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

2 days ago 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

atulvi answered

if (Something != null) not good enough

Dec 16, '20 in Help Room

2 Replies

1 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

avatar image

zacaigamestudios commented

Two IF Statements not working in one method

Mar 2, '20 in Help Room

2 Replies

0 Votes

avatar image

hballamco commented

Finding nearest and with highest health points Closed

Feb 9, '20 gameobject·script.·if statement·return·public variable

1 Reply

0 Votes

avatar image

KittenSnipes edited

How to use Input.GetAxis in if statement

Feb 1, '20 input·if statement·input.getaxis

1 Reply

0 Votes

avatar image

stiansundbyy asked

I need to check if a GameObject exists between two values on the y coordiante, how can I do that?

Jan 18, '20 in Help Room

0 Replies

0 Votes

avatar image

Cryno1000 asked

Change sprite based on movement direction

Jan 12, '20 in Help Room

0 Replies

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 bool if else boolean javascript gameobject condition animation else error instantiate if-else float button null collider collision trigger unity 5 operator transform destroy
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges