FREE TRIAL

|

☀
☾

UIBlock3D

UIBlock3D is a UIBlock which renders an adjustable, rounded corner cuboid mesh.

Shape

Corner Radius

The corner radius of UIBlock3D's front and back faces.

uiBlock.CornerRadius = Length.FixedValue(1f);
uiBlock.CornerRadius = Length.Percentage(0.1f);

Edge Radius

The radius along the edges of a UIBlock3D's front and back faces.

uiBlock.EdgeRadius = Length.FixedValue(1f);
uiBlock.EdgeRadius = Length.Percentage(0.1f);
Note

EdgeRadius is internally clamped to ensure that it is never larger than CornerRadius.

Value vs. Percent Radius

Applies to both CornerRadius and EdgeRadius.

Type Behavior
Value The radius will stay constant and not change with the size of the UIBlock
Percent The radius will change with the size of the UIBlock
uiBlock.CornerRadius = Length.FixedValue(1f);
uiBlock.CornerRadius = Length.Percentage(0.1f);

uiBlock.EdgeRadius = Length.FixedValue(1f);
uiBlock.EdgeRadius = Length.Percentage(0.1f);

Lit Surfaces

Surface

As with all other UIBlocks, UIBlock3D supports Lit Surfaces. See Lighting for more info.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC