Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
1 capture
14 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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 Variables

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Varniukas edited

Playmaker: How to use and get variables from other visual scripting or C#?

Feb 22, '21 unity 5·scripting problem·script.·global variables

1 Reply

0 Votes

avatar image

unity_ek98vnTRplGj8Q answered

Help with Making A Variable Global in a Scene

Feb 1, '21 globalvariables·global variables

1 Reply

0 Votes

avatar image

tenthbyte answered

Create a persistent GameObject using Singleton

May 6, '20 singleton·global·global variable·persistent·global variables

3 Replies

1 Votes

avatar image

roblewisppc published

Can't get global variables to work (reference variable from one script to another),Cannot Reference Variable from other Scripts

Mar 31, '20 in Help Room

0 Replies

0 Votes

avatar image

TylerVezina asked

Shader global texture reset on scene load?

Oct 5, '18 shaders·textures·global variables

0 Replies

0 Votes

avatar image

Glurth edited

Is there a difference between initializing a variable in the Start() function and initializing a variable globally?

Mar 25, '18 start·global variables

4 Replies

0 Votes

avatar image

pyjamaslug edited

setGlobalFloat() doesn't initialise my shader parameters

Mar 1, '18 scripting problem·shaders·cg·replacement shader·global variables

0 Replies

0 Votes

avatar image

LilGames commented

How to most efficiently detect a changed variable and then act on it?

Mar 11, '17 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

Jayleau published

automatic levelling out airplane when near the ground?

May 6, '16 in Help Room

0 Replies

0 Votes

avatar image

Johannski asked

Access global MaterialProperty through script

May 2, '16 shader·materialpropertyblock·drawer·global variables

0 Replies

0 Votes

avatar image

mrlafle edited

Any reason why global vars are null within certain functions?

Mar 27, '16 in Help Room

0 Replies

0 Votes

avatar image

mrlafle commented

Global variables are null within functions?

Mar 26, '16 in Help Room

0 Replies

0 Votes

avatar image

underdog1515 commented

Thread safe access to global array (or list) from multiple prefabs updates Closed

Nov 2, '15 update·prefabs·threading·global variables·safe

1 Reply

1 Votes

avatar image

Polraudio commented

Pass Function Values To Global Variables

Apr 28, '15 functions·global variables

1 Reply

1 Votes

avatar image

Heffalus published

PhotonNetwork problem

Mar 11, '15 c#·photon·global variables·static-variables

1 Reply

0 Votes

avatar image

golddevrush commented

how to: make global variable

Dec 16, '14 sprite·resources·global variables

2 Replies

0 Votes

avatar image

barbe63 edited

singleton, global vars and dontdestroyonload

Nov 24, '14 dontdestroyonload·singleton·global variables

2 Replies

0 Votes

avatar image

Mechlordx edited

Access variable in another object

Nov 30, '13 global·accessing scripts·global variable·global variables

1 Reply

0 Votes

avatar image

redmotion_games commented

Good Setup for Predefined Array Data?

Sep 2, '13 arrays·database·startup·global variables

0 Replies

0 Votes

avatar image

8BitSandy edited

Specific collision applying to all collisions in a script...

May 26, '13 collision·if·global variables

1 Reply

0 Votes

avatar image

jorashwil commented

Best way to maintain a list of selected objects? (Static Classes?)

Feb 28, '13 programming·state·oop·global variables

1 Reply

0 Votes

avatar image

Terrified Virus edited

Error Accessing Other Script's Variables

Feb 10, '13 variables·accessing·global variables

1 Reply

0 Votes

avatar image

Bunny83 edited

Using Global Variables in Unity

Sep 15, '12 global variables

3 Replies

2 Votes

avatar image

ScroodgeM commented

Optimisation - When to use Global variables or GameObject.Find() ?

Jul 17, '12 optimization·global variables

1 Reply

0 Votes

avatar image

dannyskim commented

Static variables and Design Fundamentals (singleton)

Jul 9, '12 singleton·static variables·global variables

1 Reply

0 Votes

Related Topics

singleton arrays functions global variable scripting problem function call shaders c# global accessing scripts prefabs oop dontdestroyonload manager state unity 5 sprite static collision script. resources if shader cg


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