• 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

CloverKitsune published

Assigning current color to a variable for fade out (C#)

Dec 5, '12 c#·gameobject·variable·color

0 Replies

1 Votes

avatar image

Eric5h5 edited

What variable type is this?

Dec 10, '12 instantiate·variable·shooting·instance·clone

1 Reply

1 Votes

avatar image

ic3t3a2000 commented

Access variable declared in previous if statement

Dec 16, '12 variable·if statement

1 Reply

1 Votes

avatar image

rickaz edited

float "angle" should be a variable, not a object.

Jan 20, '13 c#·variable·angle

1 Reply

1 Votes

avatar image

JohnGuo93 commented

Cannot modify a value type return value of `UnityEngine.Transform.localPosition'. Consider storing the value in a temporary variable. HELP

Nov 10, '15 variable·move·value·head·temporary

1 Reply

1 Votes

avatar image

Fung commented

how to get other script variable from other scene?

Apr 11, '13 scene·variable

3 Replies

1 Votes

avatar image

Fyoucon commented

Public transform not showing in Inspector

Apr 18, '13 transform·variable·inspector

1 Reply

1 Votes

avatar image

PimBARF commented

Access function from variable (sounds weard, i'll explain)

Apr 19, '13 variable·function·console

1 Reply

1 Votes

avatar image

xolan007 commented

How do I get the number of transforms in Transform[]??

Apr 21, '13 transform·variable·variables·split

1 Reply

1 Votes

avatar image

Bunny83 answered

Changing material depending on variable

Apr 23, '13 javascript·material·variable·assignment

2 Replies

1 Votes

avatar image

Baerrach published

How to use prefabs with scripts that reference other scripts?

Aug 25, '13 prefab·variable·design

1 Reply

1 Votes

avatar image

VLunarFangV published

Variable in String

May 5, '13 javascript·variable·string·noob

1 Reply

1 Votes

avatar image

Essential commented

How can you store a reference to something that you don't know the type of yet?

May 27, '13 variable·reference·type·gamecontroller

2 Replies

1 Votes

avatar image

HolBol commented

Access Variable in a class from another script

Jun 19, '13 javascript·variable·class

4 Replies

1 Votes

avatar image

Lisa.s commented

String as variable name, reflection or dictionary or other

May 26, '16 array·variable·reflection·name·dictionary

2 Replies

1 Votes

avatar image

cregox commented

from which script was it?

Jul 5, '13 variable·static

2 Replies

1 Votes

avatar image

uberokeer commented

Variable Mathf.Clamp not working... (SOLVED)

Jul 24, '13 variable·not working·clamp

1 Reply

1 Votes

avatar image

robertbu commented

How to make two scripts share same variable?

Jul 13, '13 variable·inventory·accessing from any script

1 Reply

1 Votes

avatar image

xikky commented

How can I change a variable in a different game object's script?

Jul 17, '13 gameobject·variable

2 Replies

1 Votes

avatar image

Jamora answered

How to create read-only variables

Aug 4, '13 c#·javascript·variable·readonly

3 Replies

1 Votes

avatar image

clunk47 commented

Can I make variables visible to other scripts without making them visible in the Inspector?

Aug 9, '13 variable·access·public·sharing

1 Reply

1 Votes

avatar image

Joyrider edited

How to access gameObject variable script

Aug 11, '13 c#·gameobject·variable·access

2 Replies

1 Votes

avatar image

flaviusxvii commented

Referencing a collision from another script

Sep 6, '13 collision·variable·another script

1 Reply

1 Votes

avatar image

Kawaburd answered

Public "char" parameter not showing on inspector?

Oct 12, '13 variable·inspector·public·char

2 Replies

1 Votes

avatar image

Tomer-Barkan commented

What variable type is this?

Oct 12, '13 variable·rotate·type

1 Reply

1 Votes

avatar image

Daphnis26 commented

Animation Speed with Variable?

Oct 14, '13 animator·variable·mecanim

1 Reply

1 Votes

avatar image

cmartin97 published

Getting error: Cannot modify a value type return value of `UnityEngine.Rigidbody.velocity'. Consider storing the value in a temporary variable

Mar 6, '14 error·variable·value

1 Reply

1 Votes

avatar image

AdmiralThrawn commented

How do I reset a script's values at run time to what they were at start?

Dec 17, '17 prefab·variable·reset·default·revert

3 Replies

1 Votes

avatar image

Hoeloe edited

How does Unity reads the "If" conditions?

Dec 12, '13 variable·boolean·if·optimizing

3 Replies

1 Votes

avatar image

Rgalaxy commented

Accessing variable from another script

Dec 14, '13 variable·accessing·another

1 Reply

1 Votes

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

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