Advertisement
ChaosBeing
Jul 1st, 2025 (edited)
4
0
Never
This is comment for paste GDScript Rust Option type
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I made this while learning GDScript in a beta version of Godot 4.3. As such there may be more optimal solutions to some problems, either that I had overlooked or easier ways to tackle issues in newer versions. (I remember dealing with types in particular was very cumbersome.)
  2. I stayed as true to the Rust standard library as I could, but I did add "is_type_not_none" and "is_type_or_none" for convenience sake.
  3. This wound up working surprisingly well, though this is still Godot and trying to cram it into places it doesn't belong will only result in headaches. (I'm looking at you, exported Resources!)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement