• 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

Variable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Dejan1 edited

How do I access a variable of a script from another script in C#?

May 9, '13 c#·variable·cs0103

1 Reply

1 Votes

avatar image

kurotatsu commented

Array with boolean variables?

Nov 2, '13 array·variable·variables·boolean

3 Replies

1 Votes

avatar image

Woj_Gabel_FertileSky answered

Custom editor window resets array

Feb 9, '12 editor·array·variable·custom·reset

1 Reply

1 Votes

avatar image

aldonaletto edited

Assign Transform Variable With A Vector?

Feb 9, '12 transform·vector3·variable

1 Reply

1 Votes

avatar image

sacredgeometry edited

Is it bad to use long variable names?

Feb 11, '12 variable·name·length

1 Reply

1 Votes

avatar image

Mkalafut commented

Angry Birds Style Loader (Load the Birds to be fired)

Jan 30, '16 c#·object·mouse·variable

0 Replies

1 Votes

avatar image

fafase commented

Proper way to reference a non-static variable from another script

Mar 12, '12 variable

1 Reply

1 Votes

avatar image

rutter answered

Prefab not changing variable's values

Mar 17, '12 prefab·variable·update·change·value

2 Replies

1 Votes

avatar image

Rexor4321 commented

storing the value in a temporary variable problem

Sep 10, '17 c#·variable·temporary·pinball

1 Reply

1 Votes

avatar image

aldonaletto commented

GetComponent returns only the last instance

Apr 9, '12 prefab·variable·instance

1 Reply

1 Votes

avatar image

filler03 commented

what is the difference between a float[] and a float[,]?

Apr 15, '12 javascript·array·variable

1 Reply

1 Votes

avatar image

Kryptos edited

How do you achieve variables and functions that are global between scenes? What is the BEST way?

May 15, '12 javascript·variable·function·global

1 Reply

1 Votes

avatar image

semiessessi commented

Label dots in between numbers (currency formatting)

Aug 15, '13 variable·string·dots·number

2 Replies

1 Votes

avatar image

crtapps commented

Heap or Stack? About the variable's memory useage.

Jun 1, '12 javascript·variable·memory

1 Reply

1 Votes

avatar image

syclamoth commented

Unknown Identifiers for declared variables? Closed

Jun 7, '12 variable·noob·reference-other-object·unknown-identifier

2 Replies

1 Votes

avatar image

darkironphoenix published

Having code fire once in update function?

Jul 9, '12 variable·update·function

2 Replies

1 Votes

avatar image

SirBedlam commented

How to fade between 3 GUI textures?

Jul 15, '12 trigger·variable·guitexture·fade

1 Reply

1 Votes

avatar image

NeMewSys commented

Share variables among scripts of the same object

Aug 19, '12 variable·variables·share·sharing

3 Replies

1 Votes

avatar image

KingCrizzo commented

Accessing a variable effected by a GUI slider from another scipt

Sep 9, '12 variable·access

1 Reply

1 Votes

avatar image

zombience commented

How can I best update and compare a struct?

Aug 8, '13 variable·struct·if else

1 Reply

1 Votes

avatar image

$$anonymous$$ commented

create variable trouble

Sep 27, '12 error·variable

1 Reply

1 Votes

avatar image

Griffo commented

Weapon script

Oct 7, '12 variable·weapon·var

0 Replies

1 Votes

avatar image

Hamesh81 edited

How can I change a float variable over time?

Oct 22, '12 variable·time·float·animate

3 Replies

1 Votes

avatar image

metal_invader commented

Spacing objects out when instantiated using variables.

Oct 28, '12 instantiate·variable·spacing

1 Reply

1 Votes

avatar image

vexe commented

Declaring & understanding Class in javascript

Oct 6, '13 javascript·variable·class·typecasting

1 Reply

1 Votes

avatar image

Kaha commented

how to link 1 var between 2 scripts ?

Nov 17, '12 variable·fire·sharing·linking

2 Replies

1 Votes

avatar image

joachimbose48 answered

Load Playerprefs on startup

Mar 31, '21 variable·load·playerpref

2 Replies

1 Votes

avatar image

NeMewSys commented

GLSL: Get current time in millis

Nov 22, '12 variable·random·time·glsl·seed

1 Reply

1 Votes

avatar image

redline2466 published

Prefab problem, wont accept gameObject in var

Dec 7, '16 gameobject·prefab·variable·beginner

3 Replies

1 Votes

avatar image

aldonaletto answered

C# Referencing a Non-Static Variable Help

Dec 1, '12 c#·variable·non-static

2 Replies

1 Votes

  • »
  • ‹
  • 4
  • 5
  • 6
  • 7
  • 8
  • ›
  • »

Followers

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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# javascript gameobject scripting problem variables static function array instantiate prefab getcomponent inspector string error class gui value reference access int script. boolean float public assign


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