Browse Source

Merge pull request #55935 from KoBeWi/get_minimum_size_not

Document get_minimum_size not called in some nodes
Max Hilbrunner 3 years ago
parent
commit
e8e2865f88
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/classes/Control.xml

+ 1 - 0
doc/classes/Control.xml

@@ -102,6 +102,7 @@
 			<description>
 				Virtual method to be implemented by the user. Returns the minimum size for this control. Alternative to [member rect_min_size] for controlling minimum size via code. The actual minimum size will be the max value of these two (in each axis separately).
 				If not overridden, defaults to [constant Vector2.ZERO].
+				[b]Note:[/b] This method will not be called when the script is attached to a [Control] node that already overrides its minimum size (e.g. [Label], [Button], [PanelContainer] etc.). It can only be used with most basic GUI nodes, like [Control], [Container], [Panel] etc.
 			</description>
 		</method>
 		<method name="_gui_input" qualifiers="virtual">