rdeioris / LuaMachine

Unreal Engine Plugin for Lua APIs implementation
MIT License
581 stars 120 forks source link

adding `ReadCodeAsset` #41

Closed brno32 closed 2 years ago

brno32 commented 2 years ago

I needed to get the code as a string for my use case so I could manipulate it at runtime

rdeioris commented 2 years ago

@brno32 thanks, but maybe i am missing something, cannot you access the Code field of the asset directly?

brno32 commented 2 years ago

In blueprint I couldn't find a way to get a reference to an arbitrary CodeAsset

rdeioris commented 2 years ago

Generally the quickest way is to create a variable with the type of the asset and set its default value. Then you can reference the variable in your blueprint.

brno32 commented 2 years ago

Understood. This works for me