Skip to content

Instantly share code, notes, and snippets.

View krazyjakee's full-sized avatar

Jake Cattrall krazyjakee

  • Twitch
  • UK
View GitHub Profile
@krazyjakee
krazyjakee / AnimationTreePlus.gd
Last active September 7, 2025 16:13
AnimationTreePlus: A wrapper for the AnimationTree
## A wrapper around AnimationTree to add a more intuitive API
class_name AnimationTreePlus extends AnimationTree
var _param_cache: Dictionary = {}
func _ready() -> void:
_scan_parameters()
## Scans the AnimationTree's properties and populates the parameter cache.
## This is called automatically in _ready(), but can be called again if parameters are changed at runtime.