• 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

Static Variables

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

loconeko73 commented

Design Advice: Power Up System (static variables?)

Feb 12, '22 getcomponent·powerup·leveling·static variables·static class

1 Reply

5 Votes

avatar image

luqadastudio published

How to reset a static variables on loading a scene [SceneManager.LoadScene(NameofScene)].

Dec 9, '21 in Help Room

2 Replies

0 Votes

avatar image

ClearRoseOfWar answered

Static References to Game Objects: Bad Idea?

Dec 2, '20 references·static variables

2 Replies

5 Votes

avatar image

benwrightdesign answered

Using static variables (or similar) to affect instances of the same object separately.

Jun 9, '20 c#·saving·data storage·static variables

2 Replies

1 Votes

avatar image

friuns3 answered

How to reset all static variables.

Apr 27, '20 reset·static variables

5 Replies

1 Votes

avatar image

FFXVignis answered

How can i link a static string variable to another scene and display it?

Oct 27, '18 ui·static variables

1 Reply

0 Votes

avatar image

NikunjAppIndia answered

Get a float transferred between two scenes and scripts

Oct 3, '18 float·scene-switching·scene-change·transfer·static variables

3 Replies

0 Votes

avatar image

Will_Croxford answered

Delegate value does not fall within the expected range

Sep 17, '18 inputfield·delegates·event-handling·argumentoutofrangeexception·static variables

1 Reply

0 Votes

avatar image

AzureBoers published

How do I get these variables to work together!?

Apr 6, '18 in Help Room

0 Replies

0 Votes

avatar image

EliteHedgehog56 asked

load winning scene when completed race

Mar 2, '18 scene·functions·overlay·static variables

0 Replies

0 Votes

avatar image

Glurth commented

Does reading/changing Static variables constantly affect Performance or get Garbage Collected?

Jan 20, '18 in Help Room

1 Reply

1 Votes

avatar image

HenryStrattonFW answered

Sound Clip isn't playing when triggered.

May 30, '17 audio·sound·audiosource·sounds·static variables

1 Reply

0 Votes

avatar image

Dudebird47 commented

What is the best way to implement Game States?

May 10, '17 states·static variables·systems

2 Replies

0 Votes

avatar image

Oliver-Bogdan commented

How to access static members in the watch/immediate window when debugging with MonoDevelop

Feb 24, '17 monodevelop·static·debugging·static variables·watch

0 Replies

0 Votes

avatar image

Tamplier asked

Environment reset after plugin import kill all static variables.

Feb 7, '17 in Help Room

0 Replies

0 Votes

avatar image

chillersanim edited

Force reset static variable

Nov 30, '16 start·reset·collectible·static variables

1 Reply

1 Votes

avatar image

Sergio7888 commented

Static variable inside a function like in C ?

Nov 15, '16 c#·static variables

2 Replies

0 Votes

avatar image

hillsy7 commented

Start behavior only working when one instance of UI in scene

Nov 9, '16 in Help Room

0 Replies

0 Votes

avatar image

Nickymouse commented

A Question about static, please help me.

Mar 15, '16 in Help Room

1 Reply

0 Votes

avatar image

incorrect commented

Static variable resetting when it shouldn't!

Jan 29, '16 in Help Room

0 Replies

0 Votes

avatar image

DFT-Games commented

object reference required to to access non-static member, userSession

Oct 30, '15 in Help Room

1 Reply

0 Votes

avatar image

ssk090 commented

Making my variable global.

Oct 10, '15 in Help Room

1 Reply

0 Votes

avatar image

Joe Long commented

Multiple GameObjects accessing the same script, when script destroys game object, it destroys it across all the GameObjects

Jul 1, '15 scripting problem·destroygameobject·shield·static variables

1 Reply

1 Votes

avatar image

inegg published

how to keep static variables or 2d array value

May 30, '15 editor·tilemap·static·2d array·static variables

0 Replies

0 Votes

avatar image

Wicketd edited

Why are my static member variables null inside other classes/scripts?

Aug 18, '14 c#·null·global·static variables

1 Reply

0 Votes

avatar image

CarterG81 edited

Static Variables

Jun 3, '14 running·static variables

2 Replies

2 Votes

avatar image

Morokiane commented

Static variables not staying

Mar 28, '14 static·static variable·static variables

1 Reply

0 Votes

avatar image

Alp-Giray-Savrum edited

Static Variable Doesn't Change ? Wiki

Sep 9, '13 time·static·value·timer-script·static variables

0 Replies

0 Votes

avatar image

secretsecret edited

Reset static variables

Jul 15, '13 static variables

1 Reply

0 Votes

avatar image

unitron7 published

Asign value of Attribute to static variable

Jan 29, '13 static variables

0 Replies

0 Votes

  • 1
  • 2
  • ›

Related Topics

static c# reset static variable static class dontdestroyonload transfer static-variables static-function scripting problem javascript ui inputfield audio sprites event-handling systems monodevelop variables audiosource timer-script watch if statement null static-vars


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