• 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

CaptainPicard asked

Why does Visual Studio 2019 doesn't show the list of next possible codes and doesn't show in green variables like Sprite or Image?

Dec 20, '19 in Help Room

0 Replies

0 Votes

avatar image

Fariborzzn commented

change variable name inside IF statement, or add text to it

Dec 9, '19 variable·change·if-statements·name

3 Replies

0 Votes

avatar image

ZeroGravity2000 edited

How to get a variable value before it was null ?

Dec 8, '19 in Help Room

2 Replies

0 Votes

avatar image

lgarczyn commented

The variables modified in the inspector are not kept on build

Nov 27, '19 in Help Room

0 Replies

0 Votes

avatar image

astrospacemoth asked

How can I "maintain" the variables of my randomly generated guns?

Nov 21, '19 in Help Room

0 Replies

0 Votes

avatar image

petur answered

Question About DontDestroyOnLoad. Reset Variables on change Scene

Nov 7, '19 in Help Room

1 Reply

0 Votes

avatar image

starrtennis commented

Cannot assign Public GameObject variable in Inspector...

Nov 1, '19 gameobject·variable·inspector·public·public variable

2 Replies

0 Votes

avatar image

GrayLightGames commented

How do I assign the main camera to a variable? Closed

Oct 30, '19 c#·variable·assign·camera.main

2 Replies

0 Votes

avatar image

xxmariofer answered

script with individual function for each gameObject or public script variable to solve inventory system problem

Oct 22, '19 c#·scripting problem·variable·getcomponent·function

1 Reply

0 Votes

avatar image

kaliAJ commented

unable to increment the variable sitting on a gameobject from array of gameobjects Closed

Oct 11, '19 variable·array of gameobjects·increment·cannot

1 Reply

0 Votes

avatar image

Collects asked

Adding a point to a variable is making it not show.

Oct 5, '19 ui·text·variable·tycoon

0 Replies

0 Votes

avatar image

Ghady983 asked

How To Connect 2 Scripts So You Can Communicate The Variables??

Sep 11, '19 in Help Room

0 Replies

0 Votes

avatar image

asif_farooq commented

Variable value not updating in test script

Sep 4, '19 variable·update·test

1 Reply

0 Votes

avatar image

Hellium answered

How do i add variables to a sprite ?

Aug 31, '19 sprite·variable·image

1 Reply

0 Votes

avatar image

Rokugan90 commented

Scriptable tile

Aug 23, '19 variable·tilemap·scriptableobject·tile·public

1 Reply

0 Votes

avatar image

bmalloy0 edited

Why am I getting this error message? (C#)

Aug 5, '19 variable·error message·gameplay

1 Reply

0 Votes

avatar image

Esteem edited

can't change variable through other script

Jul 29, '19 variable·inheritance·value

1 Reply

0 Votes

avatar image

JoshuaTheJoker published

Variable not showing update in inspector

Jul 26, '19 c#·variable·variables

2 Replies

0 Votes

avatar image

LegitTeddyBears commented

Public variable cannot be assigned in inspector

Jul 16, '19 variable·inspector

1 Reply

0 Votes

avatar image

rebelarcher published

How can i save a int for multiple texture. Please Read.

Jul 10, '19 shader·texture·variable·playerprefs·int

0 Replies

0 Votes

avatar image

admmalan edited

How can I use the same script on multiple objects without conflicting variables.

Jun 25, '19 c#·array·variable·materials·increment

2 Replies

0 Votes

avatar image

CobbledGames commented

How can I collect collider2Ds(Trigger) the player is in into an array

Jun 25, '19 in Help Room

1 Reply

0 Votes

avatar image

$$anonymous$$ commented

Don't change the variable value every time you load script

Jun 20, '19 unity 2d·variable·ontriggerenter·tracking·scene change

2 Replies

0 Votes

avatar image

Bunny83 answered

How do I compare if a variable of integer type is between two values

Jun 20, '19 in Help Room

1 Reply

0 Votes

avatar image

shawnatkidzpace answered

Expose protected variable in inspector

Jun 14, '19 in Help Room

1 Reply

0 Votes

avatar image

Bunny83 commented

Expose protected variable in inspector

Jun 14, '19 editor·variable

1 Reply

0 Votes

avatar image

Statement commented

HideInInspector with inherited variables

Jun 12, '19 c#·variable·inspector·inheritance·classes

1 Reply

0 Votes

avatar image

Kennai answered

How to change or make different value of a variable in the script used by multiple Gameobject.

Jun 10, '19 variable·scripting beginner

1 Reply

0 Votes

avatar image

vikingallday1 commented

How do I stop adding to a variable?

Jun 6, '19 variable·variables·score·score system·adding

1 Reply

-1 Votes

avatar image

CobbledGames commented

Is it possible to control prevent/enable colisions based on the value of a variable. Closed

Jun 6, '19 in Help Room

2 Replies

0 Votes

  • »
  • ‹
  • 6
  • 7
  • 8
  • 9
  • 10
  • ›
  • »

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