- Home /
 
               Question by 
               vitorbarbosa · Jan 02, 2019 at 05:13 PM · 
                buildcommand-linecommand line  
              
 
              Class could not be found when executing method from command line (-executeMethod)
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?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                