• 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

phyzxengr answered

Can I increment a static variable from a static method?

Jul 5, '20 unity 5·classes·methods·static-variables

1 Reply

0 Votes

avatar image

Adidaas commented

How to best organize bool variables and code modularity in general?

May 30, '20 in Help Room

4 Replies

2 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

FireGreeks asked

Object reference not set to an instance of an object

Oct 27, '17 in Help Room

0 Replies

0 Votes

avatar image

DevMagi answered

trying to get gameobjects assigned to Array[x,y]

Feb 1, '17 in Help Room

1 Reply

0 Votes

avatar image

LoBlanc asked

Texture2D acting like static

Dec 13, '16 in Help Room

0 Replies

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

cdm89 commented

How can you save and update data between scenes and upon log in?

Sep 28, '15 c#·save data·static-variables

1 Reply

0 Votes

avatar image

Kowciany commented

Trouble with DontDestroyOnLoad

Mar 17, '15 dontdestroyonload·static-variables·static-function

2 Replies

1 Votes

avatar image

Heffalus published

PhotonNetwork problem

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

1 Reply

0 Votes

avatar image

maxnorth commented

How can I efficiently access a particular game object's script's member variables from within another script?

Jan 8, '15 how-to·static-variables

2 Replies

0 Votes

avatar image

MakeCodeNow answered

Static variable or static property?

Jan 6, '15 c#·properties·static-variables

1 Reply

0 Votes

avatar image

lamecheesykiwi edited

Requires a non-static variable

Dec 7, '14 static-variables

1 Reply

0 Votes

avatar image

alone1992 answered

GetComponent or static variable faster?

Sep 26, '14 c#·getcomponent·static-variables

1 Reply

0 Votes

avatar image

vimago commented

reloading game from main menu problem

Sep 11, '14 dontdestroyonload·reload·main menu·game over·static-variables

1 Reply

1 Votes

avatar image

applejuices edited

How to have a Count Down Timer carry over to a new level?

Jun 8, '14 timer·timer countdown·static-variables

2 Replies

0 Votes

avatar image

d112570 edited

Help with static variables not being saved

May 17, '14 get·set·static-variables

1 Reply

0 Votes

avatar image

senc01a edited

Storing variables temporarily during static functions?

Apr 2, '14 javascript·static·static-variables

1 Reply

0 Votes

avatar image

Javieror commented

I can“t get the value of a static var - strange Wiki

Jan 16, '14 static-variables

1 Reply

0 Votes

avatar image

8r3nd4n commented

Using multiple instances of the same script

Nov 27, '13 audio·getcomponent·instance·static-variables

1 Reply

0 Votes

avatar image

Sketchwhale published

Which object reference is not set to an object instance?

Aug 29, '13 object reference·static-variables

0 Replies

0 Votes

avatar image

amphoterik commented

problem with selecting characters script

Jul 16, '13 c#·arrays·camera-look·transforms·static-variables

0 Replies

0 Votes

avatar image

sintua published

Static Variable Not Assigning Half The Time?

Feb 27, '13 static-variables

1 Reply

0 Votes

avatar image

Romano185 edited

Problem with getcomponent replacing static variables

Feb 28, '12 player·enemy·getcomponent·damage·static-variables

0 Replies

0 Votes

avatar image

Nik edited

Triggering Quaternion.Slerp from static variables of another script - strange phenomena?

Mar 1, '11 globalvariables·static-variables

1 Reply

0 Votes

avatar image

DEtH_MoroZ edited

Static variable and Materials

Feb 3, '11 materials·static-variables·choose

2 Replies

1 Votes

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

c# static getcomponent dontdestroyonload static variable static variables javascript materials global variables gameobjects set choose save data main menu object-reference-error timer countdown globalvariables booleans reload water timer manager game over static-vars rotation
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges