Closed audse closed 5 months ago
The rive viewer extends Control – which means it can't easily be used as a child of Node2D.
Control
Node2D
RiveViewer
RiveViewerBase
RiveViewer2D
Multiple inheritance may not be possible, so composition is fine as an alternative.
The rive viewer extends
Control
– which means it can't easily be used as a child ofNode2D
.RiveViewer
logic into a separate class (e.g.RiveViewerBase
)RiveViewer
class to inheritControl
andRiveViewerBase
RiveViewer2D
class, inheritNode2D
andRiveViewerBase
Multiple inheritance may not be possible, so composition is fine as an alternative.