Hi everyone,
I´m wondering if exist some way to enable a c# script from Unityscript script. Both scripts are in the same GameObject. I tried using the way for the components in the GameObject, but it didn´t work:
namegameobject.getComponent(c#ScriptName).enabled= true;
Thank you for your answer
I moved the c# scritpt and the rest of scripts that it need to the Plugins folder, but still appear the same error using: namegameobject.getComponent(c#ScriptName).enabled= true;
Error Unknown identifier: “c#ScriptName”
I don´t know if there is any other step that I did not make it…
Make sure it’s in the same namespace and that the class name and file name match. If it’s not in the same namespace, then either qualify the class name with the namespace name “someNamespace.someClass” or include the whole namespace in your script at the top like you do for “using UnityEngine;”.