Quantcast
Channel: Questions in topic: "command line"
Viewing all articles
Browse latest Browse all 123

Class could not be found when executing method from command line (-executeMethod)

$
0
0
Hi all, I'm trying to call a method from the command line. The process is the following: - I call a method from class MyClass from the command line using **-executeMethod MyClass.MyMethod** - This class MyClass is downloaded when the project is opened - After downloading the class script file and importing it to Assets folder I call AssetDatabase.Refresh() After that Unity tries to call MyMethod, but it throws me the following error: executeMethod: class MyClass could not be found Argument was -executeMethod MyClass.MyMethod I can guarantee that the file is downloaded correctly and the method exists. One weird thing is that if I have this class imported before calling the command line command the method is called perfectly. Does anyone know why this is happening?

Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>