• 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

Harinezumi commented

Unassigned Reference Exception although it is assigned

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

1 Reply

2 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

avatar image

powerproc_chris asked

How do you assign the value of a ScriptableObject (from asset) to a component variable?

Sep 10, '17 in Help Room

0 Replies

0 Votes

avatar image

spartacuss1011 commented

Assigning/accessing different scripts from the same spot in another script

Jun 17, '17 scripting problem·script.·tower-defense·assign-variable

1 Reply

0 Votes

avatar image

dccoo published

Variables assigned in inspector disappear in git version-control?

Jun 7, '17 inspector·variables·git·version-control·assign-variable

1 Reply

0 Votes

avatar image

dCalle edited

Narrow Prefab Selection through attached Scripts

Jan 29, '17 in Help Room

2 Replies

0 Votes

avatar image

CarlisleMiller published

Assign video in inspector via script

Dec 2, '16 c#·scripting problem·inspector·videotexture·assign-variable

0 Replies

0 Votes

avatar image

LightningHawk2 published

How to assign GameObject used in a Custom Class?

Nov 28, '16 c#·scripting problem·classes·assign-variable

0 Replies

0 Votes

avatar image

putragonist commented

[Solved] Assigning variable without changing the value of assigned variable when the variable value is changed?

Aug 22, '16 in Help Room

1 Reply

0 Votes

avatar image

Misthra-Games commented

Variable not assigned but is.

Apr 23, '16 in Help Room

0 Replies

0 Votes

avatar image

lighting asked

Assagning prefab with component to component

Apr 20, '16 prefabs·components·assign-variable

0 Replies

0 Votes

avatar image

Jason2014 answered

Assigning a variable to my label

Mar 11, '16 in Help Room

1 Reply

0 Votes

avatar image

evil_genie published

Trouble assigning Gameobject to variable in separate object

Nov 20, '15 in Help Room

0 Replies

0 Votes

avatar image

HenryStrattonFW commented

Trying to set up a dictionary with multiple values per key

Nov 6, '15 in Help Room

1 Reply

0 Votes

avatar image

vashtriguner published

Getting the rotation of an object from another object within a prefab.

Sep 19, '15 javascript·child·hierarchy·transform.rotation·assign-variable

3 Replies

0 Votes

avatar image

DoTA_KAMIKADzE edited

How to assign a variable in the inspector

Jul 13, '15 inspector·variables·assign-variable

1 Reply

0 Votes

avatar image

tanoshimi answered

instantiate a prefab and find the player who instantiated it

Jun 6, '15 networking·instantiate·assign-variable

1 Reply

0 Votes

avatar image

TenmaMetsuki published

How to assign Image gameobject to a variable via script? C#

May 13, '15 prefab·image·assign-variable

2 Replies

0 Votes

avatar image

Zen_Hap commented

I can't assign new UI sliders to variable slots in 4.6.2f1

Oct 19, '16 ui·slider·assign-variable

2 Replies

1 Votes

avatar image

Digital-Phantom edited

Getting Error but can't see why ? (Solved)(due to own stupidity) Closed

Feb 28, '15 c#·error·build error·assign-variable·unassignedreferenceexcept

1 Reply

0 Votes

avatar image

Detinator10 answered

Is there a way to make a variable correspond to multiple different scripts?

Aug 28, '14 variable·assign·assign-variable

1 Reply

0 Votes

avatar image

Oribow commented

Variable doesn't change in Unity methods

Jun 7, '14 variable·assign-variable

0 Replies

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

ovirta commented

C# setting instantiated prefab variables from another script.

Mar 15, '17 instantiate·prefab·accessing from any script·assign-variable

1 Reply

2 Votes

avatar image

getyour411 commented

Issues using GetComponent

Apr 23, '14 function update·assign-variable

1 Reply

0 Votes

  • ‹
  • 1
  • 2
  • 3
  • ›

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# inspector variable assign scripting problem gameobject variables assignment error prefab transform instantiate foreach another script editor recttransform class prefabs accessing from any script unassignedreferenceexcept hierarchy camera javascript referencing assets


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