- Home /
Question by
Rick74 · Sep 05, 2013 at 09:13 PM ·
javascriptvariableinspectorc #
Assigning C# scripts to a JS variable through the inspector?
Anyone have any experience trying to do this? I'm noticing I can't save out the change in the inspector. (it stays bold) And what's worse, I can't assign that JS with C# variables to any other script.
Comment
What do you mean by assigning a script to a variable? As far as I know you can assign objects to variables, and these objects can have other scripts attached. Could you please write a bit more what you're trying to achieve?
Your answer
![](https://koobas.hobune.stream/wayback/20220613113642im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to expose variables in c# according to selected booleans 1 Answer
How can i assign prefab to variable without drag & drop from project to inspector. 2 Answers
Why isn't the Inspector overriding my variable? 1 Answer
How to set a public variable to a gameObject in the inspector through coding 1 Answer