• 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

Variable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Nihonkezai asked

Particle System don't recognyze ?

Aug 24, '21 variable·particlesystem

0 Replies

0 Votes

avatar image

Octillerysnacker asked

Unkown Identifier: 'Manager' error when trying to use singletons

Nov 21, '15 in Help Room

0 Replies

0 Votes

avatar image

Psyebrgames answered

basically Tried to make own attack function and not getting health returning where function called from.

Oct 13, '17 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

dmoran55555 asked

How do I make a script that waits for player input or no player and then does something according to that?

Aug 31, '21 in Help Room

0 Replies

0 Votes

avatar image

jugzor commented

Changing game object based on variable state?

Apr 12, '22 instantiate·mesh·prefab·variable·dynamic

1 Reply

0 Votes

avatar image

smartass01 asked

explain me the script

Oct 11, '17 in Help Room

0 Replies

0 Votes

avatar image

bhavinbhai2707 edited

How to share a variable in 2 scripts!

Dec 22, '17 variable

1 Reply

0 Votes

avatar image

Lewey100 answered

Variable containing a transform is modifying the object's transform it is referenced to.

Apr 5, '17 in Help Room

1 Reply

0 Votes

avatar image

henkehedstrom edited

Limited what classes can and cannot alter a variable

Mar 14, '22 variable·encapsulation

1 Reply

0 Votes

avatar image

AAcat commented

double output even though it should be possible C#

Aug 27, '16 in Help Room

1 Reply

0 Votes

avatar image

PeKenaLarVa answered

Passing variables from one script to all clones

Jul 30, '20 in Help Room

1 Reply

0 Votes

avatar image

screenname_taken commented

Bolean doesnt work on my code why ?

Aug 28, '14 variable

1 Reply

0 Votes

avatar image

ScaniX commented

Variable for specific gameobject

Oct 26, '16 in Help Room

1 Reply

0 Votes

avatar image

Ricky_Hammett asked

How can keep data when reload the same scene?

Jun 16, '18 in Help Room

0 Replies

0 Votes

avatar image

Siliko answered

I've been trying to make a gun script, but somehow the boolean to tell when the bullet is destroyed doesent work

Sep 12, '20 in Help Room

1 Reply

0 Votes

avatar image

Jessespike commented

NullReference. Need Help.

Jul 21, '16 in Help Room

1 Reply

0 Votes

avatar image

jdoe7090d answered

What is the simplest way to let an unspecified script get a variable from another script?

Nov 4, '18 variable

1 Reply

0 Votes

avatar image

arashsh asked

How Return Or Restart A Coroutine When A Variable Increase?

May 1, '20 c#·variable·coroutine·ienumerator·increase

0 Replies

0 Votes

avatar image

nitrogames79 answered

changed variables in script not being saved

Nov 18, '20 in Help Room

1 Reply

0 Votes

avatar image

rhapen answered

Variable should have a value but if i start the game, the value resets to 0

Dec 16, '20 variable·playerprefs

1 Reply

0 Votes

avatar image

NoseKills answered

Constructing the name of the variable being accessed

Jan 3, '16 in Help Room

1 Reply

0 Votes

avatar image

aloften answered

OnTriggerStay2D and keypress not working together

Feb 17, '20 trigger·variable·update

1 Reply

0 Votes

avatar image

Bunny83 commented

Please help Closed

Aug 13, '14 variable

0 Replies

0 Votes

avatar image

LuckierBread commented

running the same code in different places

Jun 29, '16 in Help Room

1 Reply

0 Votes

avatar image

Xregion asked

Setting a variable on instantiation, but when the object is enabled the variable is set back to default.

Aug 23, '17 in Help Room

0 Replies

0 Votes

avatar image

FFVDGames published

How to call a void method with Collider other attached

Feb 19, '16 in Help Room

1 Reply

0 Votes

avatar image

gernomino answered

Best way to show variable values on UI

May 15, '22 ui·variable·display·stats

1 Reply

0 Votes

avatar image

Glurth commented

Declaring reference type variable inside function or inside class

Aug 24, '16 in Help Room

1 Reply

0 Votes

avatar image

Flokky_ edited

Stamina variable storing negative value? Any advice would be great :(

Sep 19, '17 in Help Room

1 Reply

0 Votes

  • »
  • ‹
  • 72
  • 73
  • 74
  • 75
  • 76
  • ›
  • »

Followers

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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# javascript gameobject scripting problem variables static function array instantiate prefab getcomponent inspector string error class gui value reference access int script. boolean float public assign


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