• 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-vars

Cancel

Cancel

All Questions

  • Unanswered Questions
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

rakeshparihar published

When should i use static functions?

May 17, '17 scriptingbasics·static·static-vars·static-function

2 Replies

18 Votes

avatar image

mmciver edited

Checking nulls almost all the time! Is this normal?

Feb 27, '17 nullreferenceexception·if-else·null reference·static-vars

1 Reply

0 Votes

avatar image

Ziron999 answered

Static variables assigned in the inspector

Oct 24, '16 inspector·static·custom-inspector·static-vars

2 Replies

3 Votes

avatar image

Harinezumi commented

Do static variables carry values between Clients?

Feb 8, '16 javascript·networking·static-vars

1 Reply

0 Votes

avatar image

UniqueMAX commented

Restoring Static Variables after DontDestroyOnLoad

Aug 31, '15 reference·dontdestroyonload·reference-other-object·static-vars

1 Reply

0 Votes

avatar image

jep7 published

How do i use material variables across all scenes?

Jul 1, '15 static-vars

0 Replies

0 Votes

avatar image

timohausmann edited

Unityscript: Possible to access static variables dynamically? Closed

Apr 12, '15 javascript·static-vars

1 Reply

0 Votes

avatar image

incorrect commented

[--FIXED--][UPDATE#5][VIDEO]Instantiating problem(OLD TITLE:How do I change the static variable of one object instead of all instances

Feb 12, '15 javascript·instantiate·array·confused·static-vars

3 Replies

1 Votes

avatar image

Fornoreason1000 edited

Singleton instance VS static variable ?

Jan 5, '15 singleton·static-vars

2 Replies

0 Votes

avatar image

NerdRageStudios commented

Advice on static variables and object references

Nov 17, '14 static-vars

1 Reply

0 Votes

avatar image

Turkeybag commented

Clone Objects treating static variables strangly

Oct 10, '14 clone·static variable·static-vars

1 Reply

0 Votes

avatar image

tanoshimi commented

Is there a way to edit a static variable

Jun 11, '14 values·accessing from any script·static-vars

2 Replies

0 Votes

avatar image

CB-TV commented

GUI.Button is always true?

May 22, '14 guitexture·if statement·gui.button·static-vars

1 Reply

1 Votes

avatar image

drudiverse edited

Static Variable crashes when accessed too fast?

Mar 26, '14 error·static·static-vars

0 Replies

0 Votes

avatar image

robertbu commented

Can read but cannot pass variables between scripts...

Feb 1, '14 scriptingbasics·boolean·static-vars

1 Reply

0 Votes

avatar image

MrVerdoux edited

how do I set a static Texture?

Nov 15, '13 texture·static-vars

2 Replies

0 Votes

avatar image

Alp-Giray-Savrum asked

Disable gameobject at other screen with code ? Wiki

Sep 3, '13 camera·scene·disable·enable·static-vars

0 Replies

0 Votes

avatar image

ashabi13 commented

Why cant I subtract point from my score?

Aug 31, '13 javascript·score·points·subtracting·static-vars

1 Reply

0 Votes

avatar image

SEDBC3 edited

How do I change the logged text based on a momentary collision?

Jul 3, '13 collision·string·boolean·log·static-vars

1 Reply

0 Votes

avatar image

younse published

static var problemme

Feb 15, '12 static-vars

0 Replies

0 Votes

avatar image

ina commented

Trying to create a static class for WWW-based functions and such

Jan 23, '12 www·static·yield·static-vars

0 Replies

0 Votes

avatar image

Persona commented

Why can't I set the Target

Dec 17, '11 arrays·target·homing·static-vars

1 Reply

0 Votes

avatar image

aldonaletto commented

Help! Why doesn't this work? GUI/Static vars Help! Javascript

Nov 8, '11 gui·score·var·static-vars

1 Reply

0 Votes

avatar image

dfhjklyulyu answered

static var for one object.

Aug 25, '11 javascript·gameobject·static-vars

2 Replies

0 Votes

avatar image

FTheCloud commented

Add to .net Arrays

Aug 23, '11 array·.net·adding·static-vars

1 Reply

1 Votes

avatar image

user-3061 (yahoo) asked

Changing variables in GUI?

Mar 7, '11 javascript·gui·variable·static-vars

0 Replies

0 Votes

avatar image

SS edited

GetComponent for all enemies

Mar 2, '11 array·getcomponent·sendmessage·static-vars

1 Reply

0 Votes

avatar image

Milena asked

Accesing instantiated gameobjects from another script

Feb 25, '11 instantiate·distance·static-vars

2 Replies

0 Votes

avatar image

Kristopher Williams asked

Can you change static variables from another script?

Feb 24, '11 javascript·projectile·static-vars

2 Replies

0 Votes

  • 1
  • 2
  • ›

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

javascript static instantiate array score getcomponent scriptingbasics gui boolean static variable singleton multiple-objects subtracting static-function error dontdestroyonload points gui.button homing reference-other-object camera change variable if statement arrays reference
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges