How to use get_viewport().set_canvas_transform() in Godot3.0 ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By willu2
:bust_in_silhouette: Reply From: Zylann

This function applies a global transformation to the whole 2D world (offset, scale, rotation).
Note: in Godot 3 it is also available as a Viewport property named canvas_transform.

However, you might not need to use it, because that transform does the same job as a Camera2D node, except the latter is more intuitive.