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

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

theLameBrain edited

Cant assign global variable to method parameter variable

Apr 8, '21 variable·if-statements·assign

1 Reply

0 Votes

avatar image

Lukicaa published

Can somebody help me out? How can I refresh the script with right/left arrow?

Apr 7, '21 in Help Room

0 Replies

0 Votes

avatar image

orangeymaq asked

Error CS0120 when trying to access variable from another script.

Apr 4, '21 in Help Room

0 Replies

0 Votes

avatar image

Bunny83 commented

GetKeyDown doesn't work in if statement, but GetKey does Closed

Mar 31, '21 if-statements·getkeydown

2 Replies

0 Votes

avatar image

Sundiray answered

If Statement not functioning,If less than statement will not register

Mar 22, '21 if-statements

1 Reply

0 Votes

avatar image

bogdankrstic commented

How to resize a player every couple of seconds?

Mar 21, '21 if-statements·ienumerator·coroutines·localscale·while-loop

2 Replies

0 Votes

avatar image

ThermoDev asked

Gravityscale script not working?

Mar 15, '21 in Help Room

0 Replies

0 Votes

avatar image

Tikles asked

Raycast "If" statements conflicting with each other.

Feb 28, '21 in Help Room

0 Replies

0 Votes

avatar image

pauldarius98 commented

Prevention of air movement Closed

Feb 24, '21 c#·if-statements·else

1 Reply

0 Votes

avatar image

Hellium commented

How To Make UI Button 2 Appear Three Seconds After UI Button 1 is pressed

Feb 23, '21 button·coroutine·loop·if-statements·waitforseconds

1 Reply

0 Votes

avatar image

emersonmaxwell commented

How To Make Player Health Increase if in a Certain Animation State

Feb 15, '21 if-statements·health·healthbar·animationstate·health-deduction

1 Reply

0 Votes

avatar image

xxmariofer answered

Set Rotation of GameObject

Jan 29, '21 in Help Room

1 Reply

0 Votes

avatar image

DanielGL answered

Variable changes to a negative number somehow

Jan 18, '21 bug·variable·if-statements

1 Reply

0 Votes

avatar image

Dan5500 commented

Integer is being added by 2 when the code says to do it by 1.

Jan 17, '21 in Help Room

0 Replies

0 Votes

avatar image

Momoneko published

Need help figuring out object detection/Figuring out SphereCast

Jan 11, '21 in Help Room

0 Replies

0 Votes

avatar image

Game_Krator published

How can I change a scene by the rotation z position?,

Jan 1, '21 rotation·if-statements·scene-switching

1 Reply

0 Votes

avatar image

SwiftKraft asked

If statement not working.

Dec 25, '20 in Help Room

0 Replies

0 Votes

avatar image

Onx answered

Display issues with GUI only showing details for last object in list.

Dec 24, '20 ui·raycast·fps·if-statements·textmesh

2 Replies

0 Votes

avatar image

CmdrZin answered

How to reset counter

Dec 20, '20 if-statements

1 Reply

0 Votes

avatar image

iKabyLake30 asked

If statement with multiple conditions Closed

Dec 4, '20 in Help Room

0 Replies

0 Votes

avatar image

Rorrors answered

Weird Input System situation

Dec 1, '20 input·if-statements·update function·repeat·context

1 Reply

0 Votes

avatar image

jacky06211 published

Can someone help and tell what's wrong with my script?

Nov 30, '20 if-statements

2 Replies

0 Votes

avatar image

ryanmillerca commented

If statement returning true without all conditions being met

Nov 30, '20 if-statements·bug-perhaps

1 Reply

0 Votes

avatar image

burhanasikwala answered

How to detect certain text in an input field?

Nov 25, '20 text·if-statements·inputfield·check

2 Replies

0 Votes

avatar image

Insok answered

if statements are running when they are not suppose to be

Nov 22, '20 in Help Room

1 Reply

0 Votes

avatar image

Hellium edited

How to stop timer with if statement,

Nov 3, '20 timer·if-statements

1 Reply

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

korbend asked

How to check tile flag in IF statement?

Oct 29, '20 tilemap·if-statements·flag

0 Replies

0 Votes

avatar image

tn73 asked

Activating Completed Level Panel using if statement

Oct 27, '20 level·if-statements·panel·complete

0 Replies

0 Votes

avatar image

AlaMo12 commented

Why does my Switch statement only go through one case correctly?

Oct 19, '20 c#·error message·if-statements·switch·switch-case

1 Reply

0 Votes

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

Followers

avatar image 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 boolean scripting problem if statement javascript animation if-else bool gameobject else input position instantiate collision button trigger gui transform rotation update unity 5 else if raycast condition


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