UnityRectTransform
represents a Unity rect transform.
Details
- UnityRectTransform
is a object that represents an existing RectTransform object in the Unity game engine.
- UnityRectTransform
is typically generated by functions such as CreateUnityRectTransform.
- UnityRectTransform
gives a list of possible properties.
- The value associated with a given property "prop" can be extracted using UnityRectTransform
.
- You can make an assignment like UnityRectTransform
to modify a property of the object.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Load the package and open a project:

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-i9rs1

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-ejzug9
Create a Unity rect transform:

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-yulsnf


https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-nsf6ie

Delete the Unity rect transform:

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-h1bm2k
Properties & Relations (4)Properties of the function, and connections to other functions
UnityRectTransformQ checks if an expression is a UnityRectTransform:

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-zzwj4d


https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-zqryn8

PropertyList returns all available properties of the rect transform.

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-kgsb80


https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-5mjsp7

PropertyValue returns the value of the specified property.

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-wol1l0


https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-t1bnqj

SetProperty changes the specified property of the rect tranform.

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-o6plun


https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-xl25i5

https://wolfram.com/xid/0bst6tn6ojxaw99sl9rm2q-xry6wk

Wolfram Research (2019), UnityRectTransform, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html.
Text
Wolfram Research (2019), UnityRectTransform, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html.
Wolfram Research (2019), UnityRectTransform, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html.
CMS
Wolfram Language. 2019. "UnityRectTransform." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html.
Wolfram Language. 2019. "UnityRectTransform." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html.
APA
Wolfram Language. (2019). UnityRectTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html
Wolfram Language. (2019). UnityRectTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html
BibTeX
@misc{reference.wolfram_2022_unityrecttransform, author="Wolfram Research", title="{UnityRectTransform}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html}", note=[Accessed: 04-June-2025
]}
BibLaTeX
@online{reference.wolfram_2022_unityrecttransform, organization={Wolfram Research}, title={UnityRectTransform}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityRectTransform.html}, note=[Accessed: 04-June-2025
]}