• 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

DanielGL answered

Variable changes to a negative number somehow

2 days ago bug·variable·if-statements

1 Reply

0 Votes

avatar image

magujo2005 published

can't assign variable

2 days ago variable

0 Replies

0 Votes

avatar image

adikecapan commented

Access static variable c#

5 days ago c#·variable·access

1 Reply

2 Votes

avatar image

DuxFortis edited

How to carry over variable (transform.position) and use it as Vector3 for instanitating a prefab

Jan 6, '21 instantiate·vector3·variable·transform.position

2 Replies

0 Votes

avatar image

pegalga published

When I use joint drive mode it says that is obsolete

Jan 4, '21 variable

0 Replies

0 Votes

avatar image

EdBriggs101 asked

Displaying Variable on newly instantiated object

Dec 30, '20 in Help Room

0 Replies

0 Votes

avatar image

Stonemass asked

always the same problem, how to add 1 valor correctly not overtime ?

Dec 27, '20 in Help Room

0 Replies

0 Votes

avatar image

altropetrolio answered

List suddenly auto-clear after WebRequest (in another Script)?

Dec 25, '20 in Help Room

1 Reply

0 Votes

avatar image

lvskiprof answered

Text UI is not being assigned

Dec 22, '20 ui·text·variable·string·float

2 Replies

0 Votes

avatar image

pokecano commented

value of another script not being read?

Dec 18, '20 script.·variable·reference·values

0 Replies

0 Votes

avatar image

dahal2871 answered

Is it possible to show Static Variables in the Inspector?

Dec 17, '20 prefab·variable·inspector·static·oafa

10 Replies

22 Votes

avatar image

Dracolyte published

PlayerPrefs doesn't apply value, even if i set the value with the saved PlayerPrefs

Dec 16, '20 variable·playerprefs

0 Replies

0 Votes

avatar image

rhapen answered

Variable should have a value but if i start the game, the value resets to 0

Dec 16, '20 variable·playerprefs

1 Reply

0 Votes

avatar image

islesofurth commented

GetComponent returning null with no errors

Dec 7, '20 in Help Room

1 Reply

0 Votes

avatar image

vanesamoreno41 published

show sync var on two text ui (unet - networking)

Dec 2, '20 ui·networking·text·variable·sync

3 Replies

0 Votes

avatar image

Sull08 published

script problems

Dec 2, '20 in Help Room

0 Replies

0 Votes

avatar image

bobbaluba edited

How do I make serializefield/public readonly in the inspector, but so that I can still access variables in other scripts?

Nov 30, '20 variable·serializefield

1 Reply

0 Votes

avatar image

tXxy asked

Attach a value to an instantiate object and call it in the class of this object

Nov 25, '20 instantiate·variable·class·passing

0 Replies

0 Votes

avatar image

nitrogames79 answered

changed variables in script not being saved

Nov 18, '20 in Help Room

1 Reply

0 Votes

avatar image

Dramaticmazerunner asked

How to get the players CPS

Nov 16, '20 c#·variable·unityeditor

0 Replies

-1 Votes

avatar image

GardenfiendGames commented

Script variable reverted to prefab when hit play.

Nov 11, '20 prefab·variable·serialization

1 Reply

2 Votes

avatar image

oigetinthevan answered

NullReferenceException: Object reference not set to an instance of an object

Nov 7, '20 variable·static·null reference exception

4 Replies

0 Votes

avatar image

Rizing_Threat commented

How do i disable a script from a different script?

Nov 6, '20 variable·disable·var

4 Replies

6 Votes

avatar image

alphaemu published

Need Distance-Based Score Multiplier For Multiple Assets (Typing Rhythm Game)

Nov 2, '20 in Help Room

0 Replies

0 Votes

avatar image

unity_UDFOHkLYjHpdwA commented

Raycast object tag check?

Oct 29, '20 gameobject·raycast·variable·tag

3 Replies

2 Votes

avatar image

theBdrive commented

How to use variable in MailMessage To?

Oct 28, '20 c#·variable·string·variables·mail

1 Reply

0 Votes

avatar image

jilermo123 published

Why when I write variables outside of functions they work fine but when I translate them inside a function they don't work?

Oct 27, '20 in Help Room

0 Replies

0 Votes

avatar image

ExtraCat published

Referencing non static variables from another script? C# Wiki

Oct 26, '20 variable·different·non-static

1 Reply

19 Votes

avatar image

idbrii commented

Have a function to Wait until true?

Oct 22, '20 variable·yield·wait·continue

4 Replies

3 Votes

avatar image

ClumsyCaden commented

How do I change variables at collision with Player? Please Help.

Oct 17, '20 collision·player·variable·item

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

c# javascript gameobject variables static scripting problem function array prefab instantiate getcomponent inspector string class error gui reference value access int boolean public assign script. float
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges