mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add visibility to CanvasLayer
This commit is contained in:
parent
df1724470d
commit
189dab2d76
6 changed files with 74 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ class CanvasLayer : public Node {
|
|||
Viewport *vp = nullptr;
|
||||
|
||||
int sort_index = 0;
|
||||
bool visible = true;
|
||||
|
||||
bool follow_viewport = false;
|
||||
float follow_viewport_scale = 1.0;
|
||||
|
|
@ -69,6 +70,9 @@ public:
|
|||
void set_layer(int p_xform);
|
||||
int get_layer() const;
|
||||
|
||||
void set_visible(bool p_visible);
|
||||
bool is_visible() const;
|
||||
|
||||
void set_transform(const Transform2D &p_xform);
|
||||
Transform2D get_transform() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue