- Home /
How do do i reference standard asset scripts in another script?
How do i reference standard asset scripts in another c# script? i have tried making a variable like i always do but it doesn't work, the main scripts that i'm looking to reference is the AintiAliasing script and the MouseLook
Answer by Cherno · Jul 19, 2015 at 07:25 PM
Standard Assets scripts are in no way different to scripts you or anyone else has created. If they are MonoBehaviour scripts, then they need to be attached to a GameObject as usual, and you have to create a reference to that GameObject and use GetComponent() to access the script. If you still have problems, you will have to show what you have tried so any syntax or logic errors can be corrected.
No, they aren't like other scripts, you can't use the $$anonymous$$ouseLook script as reference in another script.
Your answer
Follow this Question
Related Questions
Easily reference class instance 1 Answer
script type variables 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Component passing self to method 1 Answer