- Home /
Drag and drop a custom script into another script.
I need to make a script (C#) were you can drag and drop a custom class in the inspector, i mean, once a object has the script it should be possible to assign another custom script into the first one from the inspector view.
This is because i have a lot of autogenerated scripts from a 3rd party program that have info and i need to read them.
Comment
Answer by DaveA · Aug 24, 2013 at 11:42 PM
That's just how it works anyway.
var myOtherScript : OtherScript;
Put an OtherScript on some game object, and drop it onto the object containing this script. Or was it more involved than that?
Your answer
![](https://koobas.hobune.stream/wayback/20220613112914im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to Deserialize an XML textasset? 2 Answers
Class enemy in javascript help 1 Answer
Defining a Javascript Class 1 Answer
Default References Problem 1 Answer