summaryrefslogtreecommitdiff
path: root/doc/classes/CanvasGroup.xml
blob: d2bcf3c7ac90cd2ab47b7942d13d974f394a48d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8" ?>
<class name="CanvasGroup" inherits="Node2D" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		Merges several 2D nodes into a single draw operation.
	</brief_description>
	<description>
		Child [CanvasItem] nodes of a [CanvasGroup] are drawn as a single object. It allows to e.g. draw overlapping translucent 2D nodes without blending (set [member CanvasItem.self_modulate] property of [CanvasGroup] to achieve this effect).
		[b]Note:[/b] Since [CanvasGroup] and [member CanvasItem.clip_children] both utilize the backbuffer, children of a [CanvasGroup] who have their [member CanvasItem.clip_children] set to anything other than [constant CanvasItem.CLIP_CHILDREN_DISABLED] will not function correctly.
	</description>
	<tutorials>
	</tutorials>
	<members>
		<member name="clear_margin" type="float" setter="set_clear_margin" getter="get_clear_margin" default="10.0">
		</member>
		<member name="fit_margin" type="float" setter="set_fit_margin" getter="get_fit_margin" default="10.0">
		</member>
		<member name="use_mipmaps" type="bool" setter="set_use_mipmaps" getter="is_using_mipmaps" default="false">
		</member>
	</members>
</class>