• 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

Fixes in upcoming releases of Unity Answers

Using a good tone of voice when replying to posts

Requests for new tags/topics

How to use the META space

How to use the Moderator space

Questions in topic: variable

  • Unanswered Questions
  • Recommended Questions
Once you sign in you will be able to subscribe for any updates here
avatar image

TheFishyDishy edited

Invisible Public Variable in Inspector

Aug 18, '21 variable·inspector·public

5 Replies

25 Votes

avatar image

atr0phy edited

Callback on variable change inside editor

Jun 13, '22 editor·variable·callback

3 Replies

24 Votes

avatar image

Jeremy-Borton answered

Referencing non static variables from another script? C# Wiki

Dec 14, '21 variable·different·non-static

2 Replies

23 Votes

avatar image

dahal2871 answered

Is it possible to show Static Variables in the Inspector?

Dec 17, '20 prefab·variable·inspector·static·oafa

10 Replies

23 Votes

avatar image

paul-masri-stone commented

Showing a textarea field for a string variable in inspector?

Dec 9, '21 variable·inspector

4 Replies

21 Votes

avatar image

instruct9r commented

Why woud i use var in C# ?

Oct 24, '15 in Help Room

1 Reply

14 Votes

avatar image

Bunny83 commented

How do I know whether variable is pass by value or by reference?

Mar 9, '12 variable·reference

3 Replies

13 Votes

avatar image

himanshugupta159 answered

How to make a global variable in Unity?

Jan 25, '19 in Help Room

5 Replies

10 Votes

avatar image

youssefcraft answered

How do i disable a script from a different script?

Aug 27, '21 variable·disable·var

5 Replies

10 Votes

avatar image

jellyberg commented

Whats the difference between public and static variable?

Jun 21, '13 variable·static·public

2 Replies

9 Votes

avatar image

dokuganryu20 commented

scene to scene variables

Jun 26, '18 scene·variable

4 Replies

8 Votes

avatar image

Statement edited

Static Variables between Scenes

Apr 17, '13 variable·change·static

1 Reply

8 Votes

avatar image

karak1985 commented

Get variables from other scripts

Jan 30, '22 javascript·variable

6 Replies

8 Votes

avatar image

outsidergiant commented

How do I access information (eg, variables, functions, properties) on other objects from inside a script?

Mar 23, '17 variable·access·communication·oafa

2 Replies

8 Votes

avatar image

INK_Champ commented

Scene as a variable

Jul 18, '20 scene·variable

6 Replies

8 Votes

avatar image

jdean300 commented

How does one inspect static vars?

May 19, '16 variable·inspector·static

3 Replies

7 Votes

avatar image

Fredex8 commented

What more should I be caching within my scripts?

Mar 31, '16 variable·optimization·cache

3 Replies

7 Votes

avatar image

Arclite83 answered

Can Animation Curves be used to control variables?

Jul 16, '21 in Help Room

2 Replies

6 Votes

avatar image

user-672 (google) asked

Can I get a warning if I (involuntarily) declare a new js variable in an assignment?

Feb 15, '10 variable·compiling·javascript-specific·warnings·declaration

2 Replies

5 Votes

avatar image

Eric5h5 commented

What is the difference between 'public var' and 'var' when declaring variables?

Oct 11, '17 variable·public·declaration

3 Replies

5 Votes

avatar image

daviddickball commented

How can i assign prefab to variable without drag & drop from project to inspector.

Jul 9, '14 instantiate·prefab·variable·inspector

2 Replies

5 Votes

avatar image

SisterKy edited

Or If statements

Sep 13, '11 in Help Room

1 Reply

5 Votes

avatar image

sharkbitgamesdev commented

Have a function to Wait until true?

Oct 28, '21 variable·yield·wait·continue

4 Replies

5 Votes

avatar image

K0m1x answered

AddComponent passing variable before Start/Awake

Nov 15, '21 gameobject·variable·start·addcomponent·awake

5 Replies

5 Votes

avatar image

duck commented

Communication between objects and other scripts, variables and properties

Feb 5, '14 gameobject·variable·communication

1 Reply

4 Votes

avatar image

Ricna commented

How can you send variables to unity3d from the url?

Jan 12, '16 variable·url

6 Replies

4 Votes

avatar image

cbudin commented

How do I find the name and value for each variable of a script component, using Unity script?

Apr 15, '14 variable·component·reflection·property

2 Replies

4 Votes

avatar image

joao-cabral published

How to rebind animated variable?

Apr 8, '17 animation·variable·bind

5 Replies

4 Votes

avatar image

idbrii commented

Why is my class hidden in inspector with C# and not JS?

Mar 23, '15 javascript·variable·inspector·hidden

1 Reply

4 Votes

avatar image

Bren0831 commented

Calculating speed of rigidbody?

Mar 21, '17 rigidbody·variable·velocity·speed

1 Reply

4 Votes

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

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.

Follow This Topic

Follow This Topic

Follow by RSS

14 People are following this topic.

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

Popular Topics

c# animation android unity 5 camera 2d rotation javascript scripting problem collision ui gui error shader movement gameobject physics rigidbody editor ios texture networking raycast instantiate collider transform terrain mesh prefab input
View all

Recent Badges

  • Notable Question   MrJBRPG
  • Famous Question   N00MKRAD
  • Famous Question   A_Lego
  • Notable Question   AngeloDon
  • Popular Question   PvTGreg
  • Editor   johnathan080908
  • Notable Question   jfielding74
  • Nice Answer   ItsTwelveOclock
  • Notable Question   xiaolinl
  • Famous Question   Jake398


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