• 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

rebelarcher published

How can i save a int for multiple texture. Please Read.

Jul 10, '19 shader·texture·variable·playerprefs·int

0 Replies

0 Votes

avatar image

admmalan edited

How can I use the same script on multiple objects without conflicting variables.

Jun 25, '19 c#·array·variable·materials·increment

2 Replies

0 Votes

avatar image

Bunny83 answered

How do I compare if a variable of integer type is between two values

Jun 20, '19 in Help Room

1 Reply

0 Votes

avatar image

$$anonymous$$ commented

Don't change the variable value every time you load script

Jun 20, '19 unity 2d·variable·ontriggerenter·tracking·scene change

2 Replies

0 Votes

avatar image

Bunny83 commented

Expose protected variable in inspector

Jun 14, '19 editor·variable

1 Reply

0 Votes

avatar image

shawnatkidzpace answered

Expose protected variable in inspector

Jun 14, '19 in Help Room

1 Reply

0 Votes

avatar image

CobbledGames commented

How can I collect collider2Ds(Trigger) the player is in into an array

Jun 25, '19 in Help Room

1 Reply

0 Votes

avatar image

Kennai answered

How to change or make different value of a variable in the script used by multiple Gameobject.

Jun 10, '19 variable·scripting beginner

1 Reply

0 Votes

avatar image

vikingallday1 commented

How do I stop adding to a variable?

Jun 6, '19 variable·variables·score·score system·adding

1 Reply

-1 Votes

avatar image

stevensu1838 answered

Help! Can't not access the variable linearVelocity of TwistPublisher.cs from another script in Unity

Jun 3, '19 variable·variables·accessing from any script·accessing scripts

1 Reply

0 Votes

avatar image

CobbledGames commented

Is it possible to control prevent/enable colisions based on the value of a variable. Closed

Jun 6, '19 in Help Room

2 Replies

0 Votes

avatar image

tormentoarmagedoom edited

Public Variables in MonoBehaviour Scripts reset to "None" in Playmode

May 23, '19 variable·serialization·reset·playmode

0 Replies

0 Votes

avatar image

jacobsherwood85 asked

Setting string to 'entire' contents of input field?

May 23, '19 in Help Room

0 Replies

0 Votes

avatar image

ivangangge commented

How can i change a Sprite "Variable".

Apr 29, '19 sprite·variable

1 Reply

0 Votes

avatar image

M3G4Monk asked

how to subtract from a variable once

Apr 25, '19 in Help Room

0 Replies

0 Votes

avatar image

jijigri asked

Problem with decrement

Apr 2, '19 in Help Room

0 Replies

0 Votes

avatar image

TitaniumCats asked

How can I define my own datatype?: `private EnemyCounter enemyCounter`

Apr 1, '19 in Help Room

0 Replies

0 Votes

avatar image

Manacraft05 asked

Camera switch | issue

Mar 28, '19 animation·camera·player·variable·keyboard input

0 Replies

0 Votes

avatar image

SLEIDER published

Change variable independently for different objects with same script.,Change variable in different object but same script Closed

Mar 19, '19 in Help Room

0 Replies

0 Votes

avatar image

Saiguru commented

Picking up an object to allow power-up, using external script

Mar 14, '19 collider·variable·coroutine·transition·condition

1 Reply

0 Votes

avatar image

xxmariofer commented

Variable bug???

Mar 3, '19 variable·invokerepeating

0 Replies

0 Votes

avatar image

Cornelis-de-Jager answered

Variable assigned but it's value never used

Feb 24, '19 variable

1 Reply

0 Votes

avatar image

Sazails commented

Which code is faster? Closed

Feb 20, '19 variable

1 Reply

0 Votes

avatar image

KenanTheFab edited

Efficiently changing other object's variables via triggers?

Feb 11, '19 scripting problem·gameobject·variable·triggers·efficiency

1 Reply

0 Votes

avatar image

rakso13 edited

random loss of component variable value

Feb 9, '19 in Help Room

2 Replies

0 Votes

avatar image

tormentoarmagedoom answered

Setting a game object from a list to be the active character that gets instantiated Closed

Feb 2, '19 gameobject·prefab·list·variable·lists

1 Reply

0 Votes

avatar image

kyomazunki edited

Transfering Variables Between Sections [SOLVED]

Feb 2, '19 variable·variables·waitforseconds·transfer·transferring

2 Replies

0 Votes

avatar image

CobbledGames answered

In a script that checks an object's assigned number, how can I check the highest numbered object. Closed

Feb 2, '19 c#·2d·player·variable·triggers

2 Replies

1 Votes

avatar image

xxmariofer answered

Use the "Player" variable multiple times

Jan 31, '19 player·variable

2 Replies

0 Votes

avatar image

KISP answered

Prefab script values do not update

Jan 22, '19 variable·random·spawn·random.range·spawner

2 Replies

0 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