Exposing internal properties of AnimationNodeStateMachinePlayback #5511
Shnazzy
started this conversation in
Engine Core
Replies: 2 comments 1 reply
-
Related to #4449 (as particle seeking is required for accurate replay playback of particle simulations). |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am also interested in the rollback netcode and would like to be able to support it. However, I am concerned about exposing all properties. Especially the setters is dangerous since it may cause users to break StateMachine. So I think those should be provided as methods such as doing rewind, seek and etc. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently there's no known way to access the internal properties of this class. This normally isn't a problem for a majority of use cases but it presents a hurdle if you want to store the state of the machine so you can restore it at some later point.
A few examples of use cases:
My current solution is to just use a custom build that exposes the properties I need from the engine for my own purposes, however I still see value in finding a general way to achieve this since there are other use cases besides my own. Still, these properties are decently technical, and are likely encapsulated inside the class for good reason. Simply exposing them might not be the best solution.
My only other idea would be to provide access to this information through a module. I haven't tested this yet to know if it would work.
Beta Was this translation helpful? Give feedback.
All reactions