Make all nodes position to integer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ditoga

Is there any way to make all nodes position to integer values in every frame without add a script for every single Node?

Thanks

how do you animate them in first place?
2d or 3d?

Omicron | 2020-12-27 22:39

:bust_in_silhouette: Reply From: Lopy

So you want all positions to be rounded? You could use one script, which goes through the entire tree using get_children() recursively, and checking if the Node has a position using “is” or has_property().