• 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

Reference

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

MuttlyMartin commented

How do I call a function in another gameObject's script?

Feb 20, '21 gameobject·scriptingbasics·reference·link

5 Replies

32 Votes

avatar image

Pie556 answered

[Help] how do I reference/access another script in unity C#

Oct 23, '21 in Help Room

2 Replies

5 Votes

avatar image

IssataySC answered

The type or namespace name could not be found. Are you missing a using directive or an assembly reference?

Jun 1, '22 scripting problem·error·reference·namespace·assembly

4 Replies

2 Votes

avatar image

Pedras published

How to call a function from another script - getting error "Object reference not set to an instance of an object"

Mar 28, '16 error·variable·nullreferenceexception·function·reference

5 Replies

2 Votes

avatar image

Priyanka-Rajwanshi answered

Time.deltaTime? Closed

Jan 11, '20 time·reference·deltatime

6 Replies

8 Votes

avatar image

am2cute published

How do you refer the Current Object

Apr 28, '12 reference·self

4 Replies

6 Votes

avatar image

AvPerov edited

How do I find which objects are referencing another?

Jul 16, '21 reference·references·asset-store·reference-other-object·inverse

10 Replies

15 Votes

avatar image

impurekind edited

Getting the object's name from RaycastHit

Aug 16, '18 raycast·reference

1 Reply

5 Votes

avatar image

meat5000 edited

error CS0246 missing type or namespace... Closed

Mar 10, '15 reference·cs0246

1 Reply

0 Votes

avatar image

Bunny83 commented

How to copy a scene to a new unity project Closed

Jan 10, '19 scene·reference·copy

3 Replies

5 Votes

avatar image

Boolean_of_True_th commented

Best way to Reference Child from Parent's script?

Dec 16, '20 parent·child·reference·access

3 Replies

3 Votes

avatar image

Jamora commented

How do i convert a String into a Class reference in C#

Dec 16, '13 string·class·reference

1 Reply

5 Votes

avatar image

RandomMeasure asked

Having an object reference itself

Feb 2, '10 scriptingbasics·reference

2 Replies

1 Votes

avatar image

ujjavalmoradiya commented

Get Rigidbody2D component in script (c#)

Jun 4, '15 c#·rigidbody2d·beginner·getcomponent·reference

1 Reply

1 Votes

avatar image

falkolab commented

Launching local Unity API Reference from MonoDevelop

Nov 28, '16 monodevelop·reference·documentation

7 Replies

7 Votes

avatar image

petey commented

How to pass reference to variable in IEnumerator method in C#?

Jul 3, '17 in Help Room

2 Replies

0 Votes

avatar image

Bunny83 commented

How do I know whether variable is pass by value or by reference?

Mar 9, '12 variable·reference

3 Replies

13 Votes

avatar image

CodeMasterMike edited

Access main camera from different GameObject script

Nov 13, '12 camera·gameobject·reference·access

1 Reply

2 Votes

avatar image

originalterrox edited

Clone class variables to another... Copy class not by reference

Jan 7, '19 class·reference·clone·copy·not

4 Replies

2 Votes

avatar image

Goldensnitch commented

Hide/Show GameObject from script

Dec 5, '16 2d·gameobject·reference·spriterenderer·sprite renderer

2 Replies

1 Votes

avatar image

jsr2k1 answered

Unity Editor Error CS0234: Build doesn't exist in the namespae "UnityEditor"

Sep 24, '21 unityeditor·build-error·reference·assembly

5 Replies

2 Votes

avatar image

TR33 edited

Best way to communicate between scripts

Jan 5, '18 in Help Room

4 Replies

2 Votes

avatar image

snookerc commented

Help with error: UnassignedReferenceException

Oct 24, '15 error·reference·exception·unassignedreferenceexcept

5 Replies

0 Votes

avatar image

JoaquinGuzman commented

How can I get an object reference from a Raycast?

Dec 29, '15 in Help Room

1 Reply

0 Votes

avatar image

Cashews edited

How to run function in another script with prefabs? C#

Jul 11, '13 gameobject·scriptingbasics·reference·link

2 Replies

1 Votes

avatar image

ivarhill commented

Best way to reference player class instance?

Jan 13, '17 in Help Room

1 Reply

0 Votes

avatar image

zilants published

How to reference a GUIText object?

Oct 29, '13 reference·guitext

2 Replies

0 Votes

avatar image

phxvyper answered

Add external DLL reference

May 17, '16 reference·dll

1 Reply

0 Votes

avatar image

inediblered commented

How to reference another script and call a function in C# ?

Nov 17, '13 c#·function·reference·call

2 Replies

0 Votes

avatar image

CraftedGaming commented

Can't build error - dll is not allowed to be included or could not be found.

Jan 22, '21 error·build·reference·dll

3 Replies

0 Votes

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

Followers

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# gameobject object error scripting problem null instantiate variable instance prefab nullreferenceexception exception javascript getcomponent referencing assembly script. class list error message function static ui inspector boolean


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