• 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

Fixes in upcoming releases of Unity Answers

Using a good tone of voice when replying to posts

Requests for new tags/topics

How to use the META space

How to use the Moderator space

Questions in topic: accessing from any script

  • Unanswered Questions
  • Recommended Questions
Once you sign in you will be able to subscribe for any updates here
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

0 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

avatar image

TheGameLearner edited

referring static variable of existing script gives null

Aug 1, '18 in Help Room

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

RLin answered

EnemyAi script

Apr 8, '18 accessing from any script·another script·asset path

1 Reply

0 Votes

avatar image

tomeriksson asked

Get access and Flip between different variables from GameManager

Feb 25, '18 variables·accessing from any script

0 Replies

0 Votes

avatar image

Commoble commented

Accessing a variable from another script without using GetComponent c#

Jan 29, '18 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

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

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.

Follow This Topic

Follow This Topic

Follow by RSS

1 Person is following this topic.

avatar image

Popular Topics

c# animation android unity 5 camera 2d rotation javascript scripting problem collision ui gui error shader movement gameobject physics rigidbody editor ios texture networking raycast instantiate collider transform terrain mesh prefab input
View all

Recent Badges

  • Notable Question   Meikkhaell
  • Popular Question   AlassesLome
  • Popular Question   EternalSouls
  • Editor   DeriaGeorge
  • Famous Question   Hoshahan
  • Popular Question   SomeRandomUnityDev10
  • Popular Question   Frix
  • Famous Question   sotirosn
  • Notable Question   amer-palo
  • Popular Question   xXDurzoXx


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