• 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

Global Variable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Leningrads published

NullReferenceException: Object reference not set to an instance of an object

Apr 21, '16 in Help Room

0 Replies

0 Votes

avatar image

Kaimi published

Get Global defines?

Mar 27, '15 editor·global variable

0 Replies

0 Votes

avatar image

Jdzeke answered

How does this variable equal two different values

Feb 11, '17 in Help Room

1 Reply

0 Votes

avatar image

MaxGuernseyIII commented

Trouble with removing items from a list by string

Oct 20, '17 c#·list·string·argumentoutofrangeexception·global variable

0 Replies

0 Votes

avatar image

Doozku edited

Unsure on how to access a var from another function

Jul 4, '15 javascript·variables·global variable·local variable

2 Replies

0 Votes

avatar image

Kiwasi commented

questions about referencing global variables

Aug 29, '14 global variable

1 Reply

0 Votes

avatar image

claudius_g answered

[SOLVED] Global Variable in C# class seems to be acting like a local variable.

Jul 19, '19 array·serialization·global variable·local variable

1 Reply

0 Votes

avatar image

statmatics published

Camera following a moving object

May 29, '15 global variable·synchronize

0 Replies

0 Votes

avatar image

IngeJones answered

Issues sharing variable between 2 scripts Closed

Dec 2, '17 c#·variables·global variable

2 Replies

0 Votes

avatar image

blafed commented

How to create global string like tag in MonoBehaviour?

Sep 18, '15 in Help Room

1 Reply

0 Votes

avatar image

NoseKills answered

a global var

Nov 23, '15 in Help Room

1 Reply

0 Votes

avatar image

TBruce edited

How to use objects differently between scenes?

Sep 3, '16 in Help Room

0 Replies

0 Votes

avatar image

revolute answered

Creating single variable across all app instances

Jun 21, '19 android·global variable·variable-definition

2 Replies

0 Votes

avatar image

Kilner answered

Unwanted behavior when manipulating a public integer from a different script: How can it be fixed?

Jul 17, '18 in Help Room

1 Reply

0 Votes

avatar image

cjdev answered

I want to access a variable in another object's script whose GameObject is stored in a variable in script 1.

Feb 4, '16 in Help Room

1 Reply

0 Votes

avatar image

Trendsetter123 asked

Initiating the playback of a toggle through another onClick button

Jun 12, '19 public variable·global variable·public strings

0 Replies

0 Votes

avatar image

poiler22 published

Reassigning variable inside OnCollisionEvent does not change variable inside the Update method

May 20, '20 in Help Room

0 Replies

0 Votes

avatar image

arth9130 edited

Set Global Specular via Script

Jul 19, '21 shader·global variable

0 Replies

0 Votes

  • ‹
  • 1
  • 2

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# global variables variable static variable scripting problem global variables local variable array static serialization accessing scripts string android nullreferenceexception editor persistent buttons classes list syntax-error scripting beginner float javascript checkpoint


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