• 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

Sanne_J asked

I am unable to update MoveTowards target during runtime. Object move only to first target.

Feb 9, '20 movement·vector3·variable

0 Replies

0 Votes

avatar image

BoishakhiStudios published

How To Show/Hide Custom Editor EnumPopup Or Float Variables Under A Specific Variable of Target Script,How To Hide/Show Custom Editor Object Field Or Enum Popup Under A Specific Main Script Variable

Feb 5, '20 in Help Room

0 Replies

0 Votes

avatar image

gian_unity190 commented

Changing Variable to transform.position of object with name: RoomCam1

Feb 4, '20 camera·transform·variable

1 Reply

0 Votes

avatar image

Bunny83 commented

Variable Not Changing In Method

Feb 5, '20 variable·variables·method·public·methods

1 Reply

0 Votes

avatar image

DreivanBG answered

Public variable from serialized field for prefab

Feb 2, '20 in Help Room

1 Reply

0 Votes

avatar image

technorocker answered

Variable from Inputfield is being updated but when I go to use it, its empty sting

Feb 4, '20 variable·onclick·unityui

1 Reply

0 Votes

avatar image

sacredgeometry edited

Checking if variable is nullable type?

Feb 2, '20 variable·null·type·nan·extension-methods

3 Replies

0 Votes

avatar image

Craftist answered

How to sum up values from clones

Jan 29, '20 in Help Room

1 Reply

0 Votes

avatar image

syabhri commented

How To Implement OnValueChages?

Jan 30, '20 variable·inspector·event triggering

2 Replies

0 Votes

avatar image

ragefordragons commented

Variable will not change?

Jan 21, '20 list·variable·function·scriptableobject

1 Reply

0 Votes

avatar image

evildead9000 commented

How can I access a GameObjects components using an instantiation variable?

Jan 9, '20 variable·spawn·component·prefab-instance

4 Replies

1 Votes

avatar image

Fariborzzn commented

How to store a prefab in a variable

Jan 4, '20 c#·instantiate·prefab·destroy·variable

1 Reply

0 Votes

avatar image

corn edited

Can I assign no value to a variable like Gamemaker?

Dec 26, '19 in Help Room

1 Reply

0 Votes

avatar image

CaptainPicard asked

Why does Visual Studio 2019 doesn't show the list of next possible codes and doesn't show in green variables like Sprite or Image?

Dec 20, '19 in Help Room

0 Replies

0 Votes

avatar image

Fariborzzn commented

change variable name inside IF statement, or add text to it

Dec 9, '19 variable·change·if-statements·name

3 Replies

0 Votes

avatar image

lgarczyn commented

The variables modified in the inspector are not kept on build

Nov 27, '19 in Help Room

0 Replies

0 Votes

avatar image

astrospacemoth asked

How can I "maintain" the variables of my randomly generated guns?

Nov 21, '19 in Help Room

0 Replies

0 Votes

avatar image

petur answered

Question About DontDestroyOnLoad. Reset Variables on change Scene

Nov 7, '19 in Help Room

1 Reply

0 Votes

avatar image

GrayLightGames commented

How do I assign the main camera to a variable? Closed

Oct 30, '19 c#·variable·assign·camera.main

2 Replies

0 Votes

avatar image

ZeroGravity2000 edited

How to get a variable value before it was null ?

Dec 8, '19 in Help Room

2 Replies

0 Votes

avatar image

xxmariofer answered

script with individual function for each gameObject or public script variable to solve inventory system problem

Oct 22, '19 c#·scripting problem·variable·getcomponent·function

1 Reply

0 Votes

avatar image

Collects asked

Adding a point to a variable is making it not show.

Oct 5, '19 ui·text·variable·tycoon

0 Replies

0 Votes

avatar image

kaliAJ commented

unable to increment the variable sitting on a gameobject from array of gameobjects Closed

Oct 11, '19 variable·array of gameobjects·increment·cannot

1 Reply

0 Votes

avatar image

Ghady983 asked

How To Connect 2 Scripts So You Can Communicate The Variables??

Sep 11, '19 in Help Room

0 Replies

0 Votes

avatar image

asif_farooq commented

Variable value not updating in test script

Sep 4, '19 variable·update·test

1 Reply

0 Votes

avatar image

Hellium answered

How do i add variables to a sprite ?

Aug 31, '19 sprite·variable·image

1 Reply

0 Votes

avatar image

bmalloy0 edited

Why am I getting this error message? (C#)

Aug 5, '19 variable·error message·gameplay

1 Reply

0 Votes

avatar image

JoshuaTheJoker published

Variable not showing update in inspector

Jul 26, '19 c#·variable·variables

2 Replies

0 Votes

avatar image

LegitTeddyBears commented

Public variable cannot be assigned in inspector

Jul 16, '19 variable·inspector

1 Reply

0 Votes

avatar image

Esteem edited

can't change variable through other script

Jul 29, '19 variable·inheritance·value

1 Reply

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