Refactor VisibilityNotifier
* Works from RenderinServer * Accurately tells when on or off-scren, its no longer approximate. * VisibilityEnabler also simplified to use the process mode instead.
This commit is contained in:
@ -1301,6 +1301,8 @@ public:
|
||||
|
||||
virtual void canvas_item_set_use_parent_material(RID p_item, bool p_enable) = 0;
|
||||
|
||||
virtual void canvas_item_set_visibility_notifier(RID p_item, bool p_enable, const Rect2 &p_area, const Callable &p_enter_callbable, const Callable &p_exit_callable) = 0;
|
||||
|
||||
enum CanvasGroupMode {
|
||||
CANVAS_GROUP_MODE_DISABLED,
|
||||
CANVAS_GROUP_MODE_OPAQUE,
|
||||
|
||||
Reference in New Issue
Block a user