0

I've tried all the methods described in this post and wondering if there are limitations if dealt with non-native libraries?

import unreal
print(unreal.load_asset)
>>> <built-in function load_asset>

Now when I run

import inspect
inspect.ismethod(getattr(unreal, 'load_asset'))
>>> False

Is this a C++ Binding issue? Any details on how type check handles this?

martineau
  • 119,623
  • 25
  • 170
  • 301
user1767754
  • 23,311
  • 18
  • 141
  • 164
  • 2
    [`unreal.load_asset`](https://docs.unrealengine.com/en-US/PythonAPI/module/unreal.html#unreal.load_asset)? What makes you think that's a method? Looks like a module level function.. – wim Aug 22 '20 at 19:38
  • Thanks for the hint, I should actually have called `hasattr(unreal.load_asset, '__call__')` to check if it's a function or not, or in my case if it's a callable or not. – user1767754 Aug 22 '20 at 20:14

0 Answers0