• 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

Switch-case

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

wacasce published

swich case not working properly Closed

Mar 29, '21 instantiate·switch-case

0 Replies

0 Votes

avatar image

sgruffat asked

Not going through my switch case on scene loaded.

Nov 19, '20 in Help Room

0 Replies

0 Votes

avatar image

mgiga0420 commented

I would like some help refactoring my code, I am working with switch cases concering the delivery of food items in my game

Nov 12, '20 c#·list·switch·switch-case·case

1 Reply

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

avatar image

dekovicc answered

Toggable music and saving of music state

Jul 27, '20 in Help Room

1 Reply

0 Votes

avatar image

FlamingFox1307 published

Is there a better way to do connected textures for a tileset?

Jun 29, '20 in Help Room

0 Replies

0 Votes

avatar image

BeerHuntor1 asked

switch case statment

May 10, '20 in Help Room

0 Replies

0 Votes

avatar image

ClioStark answered

Switch statement nested in a for loop runs only in one iteration of the loop

Apr 29, '20 in Help Room

1 Reply

0 Votes

avatar image

razivo commented

Unity not understanding tuples

Mar 9, '20 in Help Room

1 Reply

0 Votes

avatar image

nanavatidhruvik answered

Switch statement problem

Nov 18, '19 switch·switch-case·switch scenes

1 Reply

0 Votes

avatar image

CreepyPL published

Finding out the tag with switch case is not working.

Jun 26, '19 in Help Room

0 Replies

0 Votes

avatar image

unity_l5gXvpRu2FDjmQ published

Mario Powerups Switching problem,Mario PowerUps Switch problem

Mar 17, '19 clone·powerup·switch-case·mario·switch characters

0 Replies

0 Votes

avatar image

GamitusLabs edited

How to get smooth 4 directional movement in top down without diagonal movement?

Dec 12, '18 2d game·character controller·character movement·switch-case·else if

2 Replies

0 Votes

avatar image

TreyH edited

Function with a variable text in the middle of it

Oct 18, '18 c#·function·switch-case

1 Reply

0 Votes

avatar image

grumpyDesign asked

switch through switch cases forward and backward with pressing two buttons

Jun 26, '18 in Help Room

0 Replies

0 Votes

avatar image

drakistan_ruler commented

How do I use a switch statement to load branching scenes based on a dropdown selection?,How do I use a switch statement to load scenes based on a dropdown selection?

Apr 27, '18 in Help Room

0 Replies

0 Votes

avatar image

mmyoonsin94 commented

How to apply switch case on the button to activate and deactivate game object?

Mar 25, '18 setactive·onclick·switch-case·student

2 Replies

0 Votes

avatar image

$$anonymous$$ commented

Switch statement not running on every frame

Oct 15, '17 update·switch·update function·update problem·switch-case

1 Reply

0 Votes

avatar image

MaxGuernseyIII commented

How to use multiple If statements? Or can I use relational operators in switch statements?

Oct 3, '17 gameobject·if statement·operator·switch-case·if else

1 Reply

1 Votes

avatar image

Getsumi3 commented

Switch enum case on key pressed

Jul 30, '17 c#·fps·switch·switch-case

1 Reply

0 Votes

avatar image

jamsjar edited

Is there a more efficiant way of randomly generating directions?

Jul 3, '17 in Help Room

0 Replies

0 Votes

avatar image

Rickenbaker asked

Editor - Displaying GUI lines between two points using switch case

Jun 25, '17 in Help Room

0 Replies

0 Votes

avatar image

dead_byte_dawn answered

change object state using enum switch from another script

Jun 9, '17 in Help Room

1 Reply

0 Votes

avatar image

Kur4ta asked

how to start over to back the frist Switch again, when the Function Spown has been done , it should be back to the function initialization but it can't. thank in andvanced

May 30, '17 in Help Room

0 Replies

0 Votes

avatar image

Bokhodir published

I would like to return the Z block, if z block is chosen then, the user should have 3 chances to change the block

May 26, '17 in Help Room

0 Replies

0 Votes

avatar image

bhavinis1 answered

Switch use for multiple cases

Mar 22, '17 switch-case

5 Replies

2 Votes

avatar image

KnightRiderGuy edited

Can I access a Switch case from a Coroutine? Closed

Jan 16, '17 in Help Room

0 Replies

0 Votes

avatar image

Laiken published

Switch-Case never reaches the default case.

Dec 16, '16 c#·unity5·switch-case

1 Reply

0 Votes

avatar image

KnightRiderGuy commented

Determine Which Switch Case Was Called Last C#

Nov 17, '16 in Help Room

1 Reply

0 Votes

avatar image

LynoHD answered

using switch case statement on button to load scenes

Oct 28, '16 button·scene·switch-case

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • ›

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# switch if-statements enum javascript case gui else if logic programming arrays lerp array time arduino coroutines ongui accessing from any script serialport if c# tutorial switching scene-switching switch objects instantiate


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