• 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

Assign-variable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Ghujelk commented

Referenced GameObject in inspector tracked different when set via code

6 days ago c#·inspector·camera follow·child object·assign-variable

0 Replies

0 Votes

avatar image

trannel commented

"Variable Not Assigned" error but it is assigned

Jan 2, '21 button·menu·hierarchy·assign-variable

1 Reply

0 Votes

avatar image

Hellium edited

How to assign a Rectransform and a Transform component in C#?

Jun 26, '20 c#·transform·recttransform·assign·assign-variable

1 Reply

0 Votes

avatar image

ilusja edited

Can not assign collider2D to the other class

Jun 17, '20 collider2d·class·assign-variable

1 Reply

0 Votes

avatar image

Damonss answered

How can I stop the variable values reverting to its default values after being built? Wiki

May 25, '20 build-error·assign-variable

1 Reply

0 Votes

avatar image

TellusG published

Raycast goes into if statement its not suppose to?!

Apr 28, '20 in Help Room

0 Replies

0 Votes

avatar image

sacredgeometry commented

Why is assignment in editor cleared on play

Apr 13, '20 editor-scripting·playmode·assign-variable

0 Replies

0 Votes

avatar image

HUA19534 asked

How can I assign a UI text and a sprite to variables?

Feb 29, '20 list·cards·assign-variable·new user·stack

0 Replies

0 Votes

avatar image

Zqweez commented

Set the same value to a new Game object as the old one?

Feb 22, '20 c#·gameobject·instantiate·assign-variable·turrets

2 Replies

0 Votes

avatar image

logicandchaos answered

Public variables are not showing in the inspector

Feb 22, '20 inspector·public variable·assign-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

hukado asked

Assigning instantiated object assigns other object instead

Dec 25, '19 in Help Room

0 Replies

0 Votes

avatar image

EduNog asked

I would like to know how to edit my game in 3d unit so I can put monthly subscription in play store play console

Nov 6, '19 in Help Room

0 Replies

0 Votes

avatar image

Captain_Burrito commented

Variable won't update after assignment.

Mar 5, '19 in Help Room

1 Reply

0 Votes

avatar image

lochan_vishwanath commented

how do I assign a prefab's child to another prefab's script's public variable?

Feb 11, '19 scripting problem·prefab·prefabs·assign·assign-variable

1 Reply

0 Votes

avatar image

el-mas-pro-470 commented

FindGameObject assign in a variable? help! Closed

Jan 30, '19 in Help Room

2 Replies

0 Votes

avatar image

Bunny83 answered

I want to assign multiple variables without having to type the class on the side every time.

Dec 15, '18 c#·variables·class·assign-variable·assignment

1 Reply

0 Votes

avatar image

Hellium answered

Access private variable from UI Event

Nov 28, '18 in Help Room

1 Reply

0 Votes

avatar image

rainChu commented

Says that variable has not been assigned(but I already did).

Aug 18, '18 variable·joint·assign-variable

1 Reply

0 Votes

avatar image

zakwaddington edited

It says the variable player of camera_follow has not be assigned,It says The Variable player of Camera_Follow has not been assigned even though there is no error in the script and i have already assigned the script to the camera

Aug 13, '18 assign-variable

0 Replies

0 Votes

avatar image

virendramarshall edited

how to change the value of the script which is added to the multiple object? please help..

Aug 4, '18 in Help Room

0 Replies

0 Votes

avatar image

bouviervj published

Quaternion modifed after assignment

Jul 28, '18 in Help Room

0 Replies

0 Votes

avatar image

Vicarian answered

How to assign a private transform of my player in script?

Jun 24, '18 c#·transform·variable·assign·assign-variable

1 Reply

0 Votes

avatar image

Harinezumi commented

Unassigned Reference Exception although it is assigned

May 23, '18 assign-variable·null reference·variable-definition·member variables

1 Reply

1 Votes

avatar image

darkmoosen edited

UnassignedReferenceException when the Variable is assigned to my GameObject

Apr 22, '18 in Help Room

0 Replies

0 Votes

avatar image

exzizt commented

Efficiency problem during foreach cycle

Mar 27, '18 in Help Room

1 Reply

0 Votes

avatar image

Torhque edited

Assign variables on Instantiation?

Mar 13, '18 in Help Room

0 Replies

0 Votes

avatar image

MrPersonMan_Origins edited

Hello. I have a problem and it has to do with assigning variables to objects when they're in the camera's field of view.

Mar 7, '18 in Help Room

0 Replies

0 Votes

avatar image

unit_nick answered

Assigning a Raycast Hit to a variable

Oct 19, '17 gameobject·raycast·assign-variable

1 Reply

0 Votes

avatar image

Yemnefer asked

Text Variable with a text Asset

Sep 12, '17 in Help Room

0 Replies

0 Votes

  • 1
  • 2
  • 3
  • ›

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# inspector variable scripting problem assign gameobject error instantiate foreach prefab transform variables another script prefabs accessing from any script assignment unassignedreferenceexcept recttransform function update image text null reference git transform. components
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges