|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | ==Members==
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/srecttransform |
− | {{ScriptFunction|void|SetInsetAndSizeFromParentEdge|(int edge, float inset, float size);|Set the distance of this rectangle relative to a specified edge of the parent rectangle, while also setting its size.
| + | |
− | |5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|void|SetParent|(SGameObject parent, bool worldPositionStays);|Set the parent of the transform.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|void|SetSizeWithCurrentAnchors|(bool vertical, float size);|Makes the RectTransform calculated rect be a given size on the specified axis.|5=<pre></pre>}}
| + | |
− | | + | |
− | | + | |
− | ==Properties==
| + | |
− | {{ScriptFunction|SVector|anchoredPosition|{ get;set; }|The position of the pivot of this RectTransform relative to the anchor reference point.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|anchoredPosition3D|{ get;set; }|The 3D position of the pivot of this RectTransform relative to the anchor reference point.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|anchorMax|{ get;set; }|The normalized position in the parent RectTransform that the upper right corner is anchored to.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|anchorMin|{ get;set; }|The normalized position in the parent RectTransform that the lower left corner is anchored to.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|offsetMax|{ get;set; }|The offset of the upper right corner of the rectangle relative to the upper right anchor.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|offsetMin|{ get;set; }|The offset of the lower left corner of the rectangle relative to the lower left anchor.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|pivot|{ get;set; }|The normalized position in this RectTransform that it rotates around.|5=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|SVector|sizeDelta|{ get;set; }|The size of this RectTransform relative to the distances between the anchors.|5=<pre></pre>}}
| + | |
− | | + | |
− | | + | |
− | | + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 06:17, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/srecttransform