• 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

JECreations asked

Can't access StarterAssets namespace from another script

Nov 29, '22 in Help Room

0 Replies

0 Votes

avatar image

Llama_w_2Ls answered

Accessing a variable from a namespace to a Monobehaviour class.

Oct 25, '22 scripting problem·access·accessing from any script·accessing scripts

1 Reply

0 Votes

avatar image

unity_A95C530FB63D3FFE79B5 published

how do i change a bool from another script Closed

Aug 9, '22 c#·bool·accessing from any script

1 Reply

3 Votes

avatar image

sacredgeometry commented

Invoking function from other script

Jul 26, '22 scripting problem·accessing from any script

1 Reply

-1 Votes

avatar image

Eno-Khaon commented

How to access to a variable from another script that keeps changing

Jul 18, '22 scripting problem·accessing from any script

1 Reply

0 Votes

avatar image

MuffinMan64 commented

Script inside prefab can't access another script

Jul 16, '22 instantiate·prefab·accessing from any script

1 Reply

0 Votes

avatar image

Aethenosity commented

how to duplicate a gameobject using scripting?

May 17, '22 accessing from any script·how many

2 Replies

12 Votes

avatar image

Wapeto answered

How to get the position of an Instantiated Object from an other script ?

Mar 8, '22 unity 5·position·instantiate prefab·accessing from any script·save game

1 Reply

0 Votes

avatar image

Captain_Pineapple edited

Having trouble accessing a variable in another class

Feb 1, '22 beginner·spawning problems·referencing·accessing from any script

1 Reply

0 Votes

avatar image

logicandchaos answered

Access different colliders from one one script

Oct 11, '21 colliders·scriptingproblem·accessing·accessing from any script

1 Reply

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

michaelagill92 commented

Change a value of a script from other script

Jan 12, '21 accessing from any script·another script

1 Reply

0 Votes

avatar image

Laiken commented

When accessing a variable from another script it is always equal to 0.

Dec 22, '20 instance·accessing from any script

1 Reply

0 Votes

avatar image

elifnurber asked

CS0122 'Move1.MoveClick()' is inaccessible due to its protection level. I cound not acces a funtion from another script. I got this error.

Oct 10, '20 in Help Room

0 Replies

0 Votes

avatar image

Delvarn commented

Accessing script from another object

Aug 31, '20 in Help Room

1 Reply

0 Votes

avatar image

EternalClickbait commented

How do you access a gameobject from a script that does not extend monodevelop

Aug 1, '20 gameobject·accessing from any script

2 Replies

0 Votes

avatar image

X-NopelShinobi-X published

How to access animation window buttons over script?

Jun 28, '20 in Help Room

0 Replies

0 Votes

avatar image

negasuki commented

Transform var between scripts

May 11, '20 c#·javascript·variables·accessing from any script

2 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

DJ_ELITE commented

Access UI in scene from an instance prefab

Apr 29, '20 accessing from any script

1 Reply

0 Votes

avatar image

AshwinTheGammer commented

Can't call script from another scene using DONTDESTROYONLOAD().

Apr 25, '20 scene-switching·dontdestroyonload·call·accessing from any script

3 Replies

0 Votes

avatar image

DeOlijus commented

triggering an event in another C# script

Aug 3, '19 accessing from any script·another script

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

stevensu1838 published

How to access Vive controllers in a script attached on a simple game object(a cube)?

Apr 24, '19 controller·script error·accessing from any script·accessing scripts

0 Replies

0 Votes

avatar image

SynDev3lop commented

Unable to access Blur

Jan 28, '19 blur·accessing from any script

2 Replies

0 Votes

avatar image

Deathdefy answered

Is there common way of accessing scene/script objects?

Nov 9, '18 c#·serializedproperty·accessing from any script

1 Reply

1 Votes

avatar image

zORg_alex edited

Get GameObject From Another Script

Oct 25, '18 accessing from any script·another script·sending object

1 Reply

0 Votes

avatar image

LoKko_777 edited

Accessing to a Scriptable object from another script

Oct 1, '18 getcomponent·scriptableobject·accessing from any script·cs0120

1 Reply

0 Votes

avatar image

Rynbernsz edited

How to check if an object has collided from another script?

Sep 4, '18 in Help Room

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

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

Followers

avatar image

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Related Topics

c# another script accessing scripts variables scripting problem variable instantiate list javascript gameobject unity 5 script error access getcomponent bool nullreferenceexception array scriptingbasics component prefab collision programming level-design accessing inheritance


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