• 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

Conditional

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

TermoPollo answered

Help with simplyfying this line of code!

3 hours ago beginner·basics·conditional·simplify·expression

1 Reply

0 Votes

avatar image

Bunny83 edited

Use a #if statement to check if a script exists in project?

Dec 28, '22 c#·assets·if-statements·condition·conditional

0 Replies

0 Votes

avatar image

cmac2796 published

How do i instantiate random enemies from an array to their specific individual Vector3 position?

Nov 19, '22 in Help Room

0 Replies

0 Votes

avatar image

Pangamini commented

How can I optimize this Lerp movement in the Update Function?

Apr 15, '22 lerp·conditional

0 Replies

0 Votes

avatar image

hsgaminators commented

Is my if statement changing my Euler angle value?

Dec 6, '21 rotation·quaternion·if-statements·eulerangles·conditional

1 Reply

0 Votes

avatar image

Darhkmir answered

How do I repeat a function until a certain condition is met? Closed

Nov 9, '21 in Help Room

1 Reply

0 Votes

avatar image

alsunnaryahmed asked

The first if statement works and "pads" move but it stops at position 1, why isn't working ? (pads is of type Vector3)

Jul 29, '21 in Help Room

0 Replies

0 Votes

avatar image

DrJBN answered

Conditional colliders based on input.,Is there a way to make a collider conditional based on input?

May 10, '21 2d game·collider2d·conditional

1 Reply

0 Votes

avatar image

poohed asked

How would I use "InputAction.started" inside of an if statement?

Apr 14, '21 input·controls·conditional

0 Replies

0 Votes

avatar image

poohed asked

How would I use "InputAction.started" inside of an if statement?

Apr 14, '21 in Help Room

0 Replies

0 Votes

avatar image

georgemarkosian edited

What's wrong with AssetBundles Build Pipeline & Conditional Compilation?

Jun 14, '20 in Help Room

0 Replies

0 Votes

avatar image

ivaylo5ev asked

Asmdef and custom conditional compilation symbols

Mar 15, '20 assembly·compilation·conditional·symbols·definitions

0 Replies

0 Votes

avatar image

theunsigned commented

How can I prevent active gameobjects from enqueueing to my object pool?

Jan 31, '20 object pool·conditional

0 Replies

0 Votes

avatar image

zadeh79 commented

Problem with conditional ALWAYS RETURNS TRUE

Nov 3, '19 conditional

1 Reply

0 Votes

avatar image

JavoCL asked

Dependent compilation for diferent users

Sep 10, '19 in Help Room

0 Replies

0 Votes

avatar image

eshan-mathur asked

Conditional Breakpoints - Can't Enter an Expression? Closed

Feb 21, '19 visual studio·conditional·breakpoint

0 Replies

0 Votes

avatar image

DCordoba edited

Trying to change state of object when Timer reaches zero

Feb 19, '19 in Help Room

0 Replies

0 Votes

avatar image

munggol97 edited

How to change color on multiple game object when button is clicked

Nov 28, '18 button·color change·condition·conditional·findobjectoftype

1 Reply

0 Votes

avatar image

markcagatandavis answered

How To Check If GameObject Next To Another GameObject

Oct 24, '18 in Help Room

1 Reply

0 Votes

avatar image

Bunny83 commented

c# Ignoring conditional statement?

Sep 16, '18 c#·boolean·if-statements·bool·conditional

1 Reply

0 Votes

avatar image

ChompIV commented

c# Disregards my bool as if it doesn't exist?

Sep 15, '18 c#·boolean·condition·runtime-error·conditional

1 Reply

0 Votes

avatar image

ModLunar edited

How to use LayerMask variables with conditionals?

Jun 7, '18 oncollisionenter·int·layer·layermask·conditional

1 Reply

0 Votes

avatar image

Joakim asked

Visual programming conditional actions through editor

May 31, '18 tools·extension·comparison·conditional·visualization

0 Replies

0 Votes

avatar image

farazk86 edited

What would be the best way to do something based on the animation state of the character? Closed

May 22, '18 c#·animation·unity 5·animator controller·conditional

0 Replies

0 Votes

avatar image

VorInvictus commented

Why do nested if statements act differently than the && operator?

May 11, '18 in Help Room

1 Reply

0 Votes

avatar image

mbuhlmann asked

Compiled managed dll that references Unity APIs from different Unity versions

Aug 22, '17 dll·namespace·version·conditional·managed

0 Replies

0 Votes

avatar image

christoph_r commented

How does this conditional evaluate? -- Repeating Background Script

Aug 20, '17 transform.position·background·if-statements·positioning·conditional

1 Reply

0 Votes

avatar image

davidrochin edited

if(12f > 12f) = true?

Jul 24, '17 float·wrong·conditional

2 Replies

0 Votes

avatar image

xfudox edited

Custom conditional enum for controller buttons?

Jul 3, '17 joystick·enum·keycode·conditional·macro

0 Replies

0 Votes

avatar image

tanoshimi commented

(AI) Unity Crashing on second if statement.

Jun 27, '17 update·if-statements·conditional

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • ›

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

c# if-statements condition boolean compilation array input if enum logic loop layermask build list unity 5 collision compile-error background color change controls javascript vector3 instantiate playerprefs error


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