Class SetSprite2DSizeSystem
SetSprite2DSizeSystem works on entities that have Transform, RectTransform, Sprite2DRenderer, and Sprite2DRendererOptions components. It automatically updates the Sprite2DRendererOptions.size property based on the size of the RectTransform.
Inheritance
System.Object
SetSprite2DSizeSystem
Namespace: Unity.Tiny.UILayout
Syntax
public class SetSprite2DSizeSystem : ComponentSystem
Methods
OnUpdate()
Declaration
protected override void OnUpdate()