edbeeching / godot_rl_agents_plugin

The Godot plugin asset for the Godot RL Agents library
MIT License
118 stars 15 forks source link

Replace get_data() with get_image() #26

Closed metinc closed 9 months ago

metinc commented 9 months ago

While working on the examples I noticed that get_data() was renamed to get_image() in Godot 4.

Godot 3: https://docs.godotengine.org/en/3.6/classes/class_texture.html Godot 4: https://docs.godotengine.org/en/4.2/classes/class_texture2d.html

edbeeching commented 9 months ago

Thanks, I am not sure this example ever got updated to Godot 4. feel free to merge,

metinc commented 9 months ago

I don't have permission to merge.

Only those with write access to this repository can merge pull requests.

Ivan-267 commented 9 months ago

Thank you for the fix. Merging this so I can apply the fix for CameraSensor on top, I hope it's OK that I merge it.