Class TransformExtension

Namespace: AppMana.InteractionToolkit.MaterialUI

Static class with Transform extension methods.

public static class TransformExtension

Inheritance

object ← TransformExtension

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

GetRootCanvas(Transform)

Gets the root canvas from a transform.

public static Canvas GetRootCanvas(this Transform transform)

Parameters

transform Transform

The transform to use.

Returns

Canvas

Returns root canvas if one found, otherwise returns null.

SetParentAndScale(Transform, Transform, Vector3, bool)

Sets the parent and scale of a Transform.

public static void SetParentAndScale(this Transform transform, Transform parent, Vector3 localScale, bool worldPositionStays = false)

Parameters

transform Transform

The transform to modify.

parent Transform

The new parent to set.

localScale Vector3

The local scale to set.

worldPositionStays bool

if set to true [world position stays].