Jump to content

Get source file by user class ID


photo

Recommended Posts

Posted

Hi,

I am developing an editor plugin and I need finding the source code file from user class ID. Does the engine provide any way to find this archive? 

Thanks a lot.

Posted

Hi Javier,

 

I'm afraid there is no any straightforward way to determine the path to the file where the class was defined.

And we can't think of any clever trick for this, except the class itself will tell where it is (then the __FILE__ macro can be useful)

Posted

Thanks for your response. It was really useful and I got a nice solution using __FILE__ macro.

×
×
  • Create New...