Jump to content

Get source file by user class ID


photo

Recommended Posts

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.

Link to comment

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)

Link to comment
×
×
  • Create New...