• 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

Fixes in upcoming releases of Unity Answers

Using a good tone of voice when replying to posts

Requests for new tags/topics

How to use the META space

How to use the Moderator space

Questions in topic: variable

  • Unanswered Questions
  • Recommended Questions
Once you sign in you will be able to subscribe for any updates here
avatar image

Siliko answered

I've been trying to make a gun script, but somehow the boolean to tell when the bullet is destroyed doesent work

Sep 12, '20 in Help Room

1 Reply

0 Votes

avatar image

Magso answered

Get variable from Script in list and , set direct link to other script

Sep 10, '20 c#·list·variable·getcomponent·monobehaviour

1 Reply

0 Votes

avatar image

Reid_Taylor answered

How to give Vector3 position to object being instantiated

Aug 30, '20 in Help Room

1 Reply

0 Votes

avatar image

the1whom0x commented

how to get a variable like Layermask but for tags

Aug 26, '20 c#·array·variable·tags·layermask

2 Replies

1 Votes

avatar image

KieeeShadow edited

Execute method from unknown script set as variable in inspector

Aug 22, '20 c#·variable·inspector·events·solution

1 Reply

0 Votes

avatar image

$$anonymous$$ commented

Animation Curve to Float variable? help!

Aug 20, '20 variable·float·curve·animationcurve·car game

1 Reply

0 Votes

avatar image

SADYYYYYYY asked

I want to use one int in tow scripts and decrease it in the second one ,I want to use an int in tow scripts and I want to add to it

Aug 17, '20 in Help Room

0 Replies

0 Votes

avatar image

PinkLad45 asked

How do the change the distance of a 2D universal pipeline light from a script?

Aug 11, '20 2d·lighting·variable·programming·beginner

0 Replies

0 Votes

avatar image

lastnoob765 asked

How do i access a bool(or any variable) from another script and change it??

Aug 3, '20 in Help Room

0 Replies

0 Votes

avatar image

PeKenaLarVa answered

Passing variables from one script to all clones

Jul 30, '20 in Help Room

1 Reply

0 Votes

avatar image

PeKenaLarVa asked

Passing variables from one script to all clones

Jul 30, '20 in Help Room

0 Replies

0 Votes

avatar image

EricArmitage commented

Filename as variable

Jul 23, '20 c#·variable

2 Replies

0 Votes

avatar image

INK_Champ commented

Scene as a variable

Jul 18, '20 scene·variable

6 Replies

8 Votes

avatar image

Namey5 answered

Variables keep getting swapped with the other.

Jul 17, '20 scripting problem·variable·textmesh

1 Reply

0 Votes

avatar image

DunkMan edited

How to make the Colour parameter in coroutine work with any anything with a colour variable.

Jul 11, '20 variable·coroutine·image·parameters·colour

2 Replies

0 Votes

avatar image

benyyh commented

Monobehavior class variable become null after assigning value when instantiated Closed

Jul 11, '20 variable·class·monobehaviour

1 Reply

1 Votes

avatar image

Saiansh2525 edited

How to change the player gravity level?,How to change the value of the players gravity?

Jul 7, '20 in Help Room

1 Reply

0 Votes

avatar image

Bunny83 answered

How can I set a dictionary value in foreach loop?

Jul 2, '20 variable·foreach·dictionary·set

1 Reply

0 Votes

avatar image

UnityedWeStand answered

Is there a way to get the old version of a changing variable and store it in a new variable

Jul 2, '20 variable·variables

2 Replies

0 Votes

avatar image

changemaker edited

Passing Parameters by Value or by Reference

Jul 1, '20 variable·function·change·instance·method

2 Replies

4 Votes

avatar image

AngelFeather0 asked

Variable suddenly increases with time.deltatime

Jun 16, '20 variable·time.deltatime·increase

0 Replies

0 Votes

avatar image

ShadyProductions edited

How can I storing the IEnumerator with parameters?

Jun 16, '20 variable·function·store·parameters·startcoroutine

1 Reply

0 Votes

avatar image

Egony answered

Change positive to negative negative to positive

Jun 15, '20 in Help Room

2 Replies

0 Votes

avatar image

Runsilent13 commented

Variable not changing in method called from other class

Jun 3, '20 variable·methods

1 Reply

0 Votes

avatar image

N-8-D-e-v answered

Bool won't change?,Bool wont change to false

May 27, '20 in Help Room

1 Reply

0 Votes

avatar image

akazhar123 published

How can I fix this, It says unassigned variable but its assigned,How can I fix the variable is unassigned but it is assigned

May 27, '20 variable·unassigned

0 Replies

0 Votes

avatar image

unity_ek98vnTRplGj8Q answered

How do you store a function in a variable in c#?

May 21, '20 variable·functions

2 Replies

0 Votes

avatar image

dahiyabunty1 commented

When I make a public variable private, editor still uses previous public value

May 21, '20 variable·public variable·private·converting·changing

1 Reply

0 Votes

avatar image

poiler22 published

Reassigning variable inside OnCollisionEvent does not change variable inside the Update method

May 20, '20 in Help Room

0 Replies

0 Votes

avatar image

Florian-Nouviale answered

Is there a way to assign variables before Awake() is triggered

May 19, '20 in Help Room

3 Replies

1 Votes

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

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.

Follow This Topic

Follow This Topic

Follow by RSS

14 People are following this topic.

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

Popular Topics

c# animation android unity 5 camera 2d rotation javascript scripting problem collision ui gui error shader movement gameobject physics rigidbody editor ios texture networking raycast instantiate collider transform terrain mesh prefab input
View all

Recent Badges

  • Notable Question   MrJBRPG
  • Famous Question   N00MKRAD
  • Famous Question   A_Lego
  • Notable Question   AngeloDon
  • Popular Question   PvTGreg
  • Editor   johnathan080908
  • Notable Question   jfielding74
  • Nice Answer   ItsTwelveOclock
  • Notable Question   xiaolinl
  • Famous Question   Jake398


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