• 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

Ochreous rolled back

C# Declaring Variables Within If Statements

Nov 12, '13 c#·variable·if-statements

2 Replies

-1 Votes

avatar image

Ricna commented

How can you send variables to unity3d from the url?

Jan 12, '16 variable·url

6 Replies

4 Votes

avatar image

fafase converted comment to answer

Speed updated from another script, but doesn't persist

Nov 13, '13 variable·speed·threads

1 Reply

0 Votes

avatar image

fafase commented

How often is the update function called ?

Oct 24, '13 variable·update·time

1 Reply

0 Votes

avatar image

ysittas commented

Public variable not showing in Inspector(Solved)

Apr 21, '19 variable·inspector·static·int·public

1 Reply

0 Votes

avatar image

usef155 published

How to use global variable to make counter Wiki

Oct 18, '15 in Help Room

1 Reply

0 Votes

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

Kiwasi commented

Store Multiple values in one variable

Jul 3, '14 variable·boolean·multiple·int·new

2 Replies

0 Votes

avatar image

MooOooN commented

Accessing Variables within another gameobject's script

Jan 31, '15 gameobject·variable·scriptingbasics

2 Replies

0 Votes

avatar image

akkiDev commented

Save Scores In Scene

Sep 17, '13 variable·save·persist

4 Replies

1 Votes

avatar image

Sajidfarooq commented

How would I be able to subtract from a variable when it hits something? (OnCollisionEnter)

Aug 16, '13 javascript·gameobject·variable·oncollisionenter·subtracting

1 Reply

0 Votes

avatar image

Wellmann commented

How do you rename a public variable and keep object references/values?

Jul 22, '21 variable·reference·value·public·rename

1 Reply

3 Votes

avatar image

OP_toss answered

timed events...

May 28, '13 variable·time

2 Replies

1 Votes

avatar image

d112570 commented

Can if loop be used to create variable names?

Oct 28, '13 variable·loop·name

2 Replies

0 Votes

avatar image

NeverHopeless edited

get variable from a different game object

Jan 14, '15 gameobject·variable·getcomponent

1 Reply

1 Votes

avatar image

JMCamacho commented

Variables not visible in editor but accessible from other scripts

Jan 25, '19 editor·variable·private

2 Replies

0 Votes

avatar image

duck edited

How can I modify a variable on an instance of a prefab after I created it?

Feb 4, '10 gameobject·transform·prefab·variable·instance

2 Replies

2 Votes

avatar image

MH1 edited

Make a variable start at 10 and count down until 0

Apr 17, '14 c#·javascript·variable·count·down

3 Replies

-2 Votes

avatar image

_invalidusername commented

How to modify variables from scripts in standard package?

Sep 7, '15 variable·package·image-effects·accessing from any script

2 Replies

1 Votes

avatar image

Exalia commented

add a percentage to a variable

Sep 18, '13 variable·int·percentage

3 Replies

0 Votes

avatar image

joao-cabral published

How to rebind animated variable?

Apr 8, '17 animation·variable·bind

5 Replies

4 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

magnetix commented

how to Stream.serialize(stringValue)

Nov 9, '12 networking·raycast·variable·rpc·synchronization

2 Replies

0 Votes

avatar image

himanshugupta159 answered

C# Variable

Jan 22, '19 c#·variable·string

4 Replies

0 Votes

avatar image

Kat07443 commented

C# variable Error Message CS0219 variable not assigned

May 29, '12 c#·variable·error message

2 Replies

0 Votes

avatar image

joachimbose48 answered

Load Playerprefs on startup

Mar 31, '21 variable·load·playerpref

2 Replies

1 Votes

avatar image

jdean300 commented

How does one inspect static vars?

May 19, '16 variable·inspector·static

3 Replies

7 Votes

avatar image

Commandolibya commented

How to retrieve a variable from another script

Feb 19, '17 variable

3 Replies

0 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

CalledToGaming asked

How do i call on variables from other scripts?

Apr 25, '10 gui·variable·hotkeys

2 Replies

0 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