• 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

robinking asked

Can I declare a variable inside a function which has instance scope?

Aug 5, '10 variable·public·scope·declaration

1 Reply

1 Votes

avatar image

Nawar commented

Accessing a variable within a function.... GetComponent()

Apr 16, '14 variable·getcomponent·function·accessing

2 Replies

1 Votes

avatar image

sovalopivia edited

Get A Variable from another Script in Unity iPhone

Jul 27, '10 iphone·variable·access·scope

2 Replies

0 Votes

avatar image

Bampf edited

Keeping old GameObject values

Apr 18, '11 gameobject·variable·assign·flagged-for-close

1 Reply

0 Votes

avatar image

Adam 3 asked

function CheckPassword():boolean{ is void?

Jul 21, '10 javascript·variable·function

1 Reply

0 Votes

avatar image

theonlybrien commented

RaycastHit "variable" in C# Closed

May 13, '17 variable·raycasthit

2 Replies

1 Votes

avatar image

FourSheds asked

How do I specify a public keyboard-character variable in a script?

Jul 16, '10 character·variable·keyboard·public

1 Reply

1 Votes

avatar image

Mike 3 answered

String + Variable as variable name?

Jul 15, '10 variable·name

2 Replies

1 Votes

avatar image

AnaRhisT edited

Expression denotes a `type', where a `variable', `value' or `method group' was expected

Jul 14, '10 variable·type·group·cs0119

1 Reply

-4 Votes

avatar image

theBrandonWu commented

Is there any difference between [SerializeField] and a public variable?

Jul 10, '11 variable·public·serialize

1 Reply

1 Votes

avatar image

uplay1km published

An instance of type X is required to access non static member Y [javascript]

Jul 28, '16 javascript·variable·static·instance·bce0020

4 Replies

-1 Votes

avatar image

Jaywalker asked

Function variable problem.

Jul 7, '10 javascript·variable·quaternion

1 Reply

0 Votes

avatar image

Jeff Ciaccio asked

Creating fields/instance variables

Jul 1, '10 variable·instance

1 Reply

0 Votes

avatar image

skauth commented

Global variables - static keyword ? UnityScript? javascript? Wiki

Jun 4, '17 javascript·variable·static·global·bce0005

1 Reply

3 Votes

avatar image

Tuah asked

Comparing similarly-named variables.

Jun 23, '10 character·variable·name·armature·equip

1 Reply

0 Votes

avatar image

Goldragon979 asked

why do I need to type variables classes?

Jun 22, '10 variable·scriptingbasics·class·name

2 Replies

3 Votes

avatar image

f_Linoal published

How do I play a sound during a level change?

Oct 31, '12 audio·variable·clip·audioplay

3 Replies

0 Votes

avatar image

Cosine asked

Saving/Loading variables

Jun 18, '10 array·variable·save·load·browser

1 Reply

2 Votes

avatar image

e-bonneville asked

How do I clear a local variable?

Jun 17, '10 javascript·variable

1 Reply

0 Votes

avatar image

Billamu asked

Problem setting up an array with a size determined by a variable

Jun 11, '10 variable·arrays·static·instance·bce0020

2 Replies

0 Votes

avatar image

JRA asked

How do I reassign the result of a function back to the original arguments?

Jun 10, '10 variable·function

3 Replies

1 Votes

avatar image

Ricardo edited

calculate things... and display in inspector

Jun 9, '10 editor·variable·inspector·custom-inspector

3 Replies

2 Votes

avatar image

pickledzebra asked

Preserve global variable after game object destroyed?

Jun 6, '10 variable·global

2 Replies

2 Votes

avatar image

Cap asked

Getting variables after Resources.LoadAll

May 29, '10 variable·load·cast·missingfieldexception

1 Reply

0 Votes

avatar image

Snakeyboy asked

My script accessing a variable from another script recieves an error

May 27, '10 variable·access

1 Reply

0 Votes

avatar image

David 4 asked

Using a variable from one javascript in another javascript?

May 26, '10 javascript·variable·in·another

1 Reply

0 Votes

avatar image

Eric5h5 commented

What is the difference between 'public var' and 'var' when declaring variables?

Oct 11, '17 variable·public·declaration

3 Replies

5 Votes

avatar image

Ony asked

Easily cleaning up \ deleting unused variables?

May 8, '10 variable·variables·cleanup

2 Replies

1 Votes

avatar image

Will 7 edited

Rewind/Play animations on demand.

May 2, '10 animation·javascript·variable·play·rewind

1 Reply

0 Votes

avatar image

Therian13 commented

How do I play a sound when Health (or other variable) reaches a set number

Dec 15, '13 audio·trigger·variable·counter

1 Reply

2 Votes

  • »
  • ‹
  • 74
  • 75
  • 76
  • 77
  • 78
  • ›

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