• 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

Accessing From Any Script

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Brocccoli commented

Accessing another scripts Variable

Mar 21, '16 in Help Room

1 Reply

1 Votes

avatar image

UnityCoach commented

Unable to access variable from other C# script?

Dec 5, '16 c#·fps·accessing from any script

1 Reply

0 Votes

avatar image

spilat12 commented

How to access the same variable in C# from multiple different prefabs

May 31, '18 c#·accessing from any script·zombies

3 Replies

0 Votes

avatar image

altropetrolio commented

Public Static List Dictionary access from another Script OUT OF RANGE ERROR

May 9, '20 list·accessing from any script·public static

1 Reply

0 Votes

avatar image

Lionel_Leeser commented

Need help to understand Unity's logic or C# ?

Oct 20, '16 in Help Room

1 Reply

0 Votes

avatar image

ODNSEV7N published

Is it possible to acces variables from the unity prefabs such as the sparks and smoke

Sep 19, '13 accessing from any script

0 Replies

0 Votes

avatar image

KnightRiderGuy answered

Access Animation From Another Script Closed

Dec 24, '15 in Help Room

1 Reply

0 Votes

avatar image

kornstar83 answered

C# Simple Script not working

Jun 10, '17 c#·accessing from any script

2 Replies

0 Votes

avatar image

EmHuynh edited

How to Reference Other Scripts' Variables in C#

Feb 16, '16 in Help Room

1 Reply

0 Votes

avatar image

Jamora commented

all my scripts stopped working after i put a enemy spawner script in

Feb 22, '14 script error·accessing from any script

0 Replies

-1 Votes

avatar image

dylan760 edited

Cannot implicitly convert type `int' to `healthgui'

Aug 22, '14 c#·programming·accessing from any script

1 Reply

0 Votes

avatar image

Reedex edited

how to make attack for multiple weapons(with change,not at once)

Jan 12, '18 accessing from any script·change variable

0 Replies

0 Votes

avatar image

DJ_ELITE commented

Access UI in scene from an instance prefab

Apr 29, '20 accessing from any script

1 Reply

0 Votes

avatar image

Lolgab123 commented

Problems accessing other script's variable

Jan 21, '15 c#·nullreferenceexception·runtime·public·accessing from any script

1 Reply

0 Votes

avatar image

chrismcrae5712 published

Character Animation Issues

Feb 22, '14 accessing from any script

1 Reply

0 Votes

avatar image

KnightRiderGuy edited

How Do I Access Animation On Another Game Object

Dec 24, '15 in Help Room

0 Replies

0 Votes

avatar image

jinology commented

Cant access an array of scripts

Apr 25, '16 in Help Room

1 Reply

0 Votes

avatar image

stevensu1838 answered

Help! Can't not access the variable linearVelocity of TwistPublisher.cs from another script in Unity

Jun 3, '19 variable·variables·accessing from any script·accessing scripts

1 Reply

0 Votes

avatar image

mmorro1222 published

setting array elements mid-game in an array created/held by a different script Closed

Nov 13, '16 instantiate·array·bool·accessing from any script·pickups

1 Reply

0 Votes

avatar image

game_crusher commented

Can't acces a variable from another script

Jun 26, '15 unity 5·unity 2d·accessing from any script

1 Reply

0 Votes

avatar image

II_Spoon_II commented

Is it possible to access a script in one duplicated game objets.

Aug 27, '18 c#·script.·accessing from any script·accessing scripts

2 Replies

0 Votes

avatar image

Rajnine asked

Accessing variable from different scripts

Jul 19, '17 in Help Room

0 Replies

0 Votes

avatar image

KnightRiderGuy commented

Determine Which Switch Case Was Called Last C#

Nov 17, '16 in Help Room

1 Reply

0 Votes

avatar image

rahel published

"I am getting a null reference exception error for Pathfollowertest.instance.centerslot.Add(Cube.transform)

Dec 4, '15 in Help Room

0 Replies

0 Votes

avatar image

Natsu_k edited

Using a function from another script

Jan 15, '15 function·accessing from any script

1 Reply

0 Votes

avatar image

DarthPork published

Issues accessing a variable in another script

Jan 19, '15 javascript·variable·getcomponent·accessing from any script

0 Replies

0 Votes

avatar image

Jimangel asked

How to access .asset file via c#? (Post-processing)

Feb 19, '17 in Help Room

0 Replies

0 Votes

avatar image

unity_3rwby93b8roxIQ edited

Access variable from another script without GetComponent

Mar 9, '21 in Help Room

0 Replies

0 Votes

avatar image

kimardamina published

Accessing variables from other scripts

Jun 19, '15 programming·variables·accessing from any script

0 Replies

0 Votes

avatar image

GregIven answered

Why wont variable in other GO get assigned?

Dec 13, '16 animationevent·state machine·accessing from any script·accessing scripts

1 Reply

0 Votes

  • ‹
  • 1
  • 2
  • 3
  • 4
  • 5
  • ›

Followers

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# another script accessing scripts variables variable scripting problem list javascript instantiate script error getcomponent bool gameobject unity 5 access array scriptingbasics component collision nullreferenceexception inheritance classes assign-variable error prefab


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