Class Vert
A UIMeshItem that represents a single vertex.
Implements
IDisposable
Namespace: Mux.Markup.Extras
Assembly: Mux.Markup.UI.dll
Syntax
public class Vert : UIMeshItem, IDisposable
Examples
<m:RectTransform
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:m="clr-namespace:Mux.Markup;assembly=Mux.Markup"
xmlns:mu="clr-namespace:Mux.Markup;assembly=Mux.Markup.UI"
xmlns:mue="clr-namespace:Mux.Markup.Extras;assembly=Mux.Markup.UI"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<mu:StandaloneInputModule />
<mu:Canvas />
<mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
<mu:GraphicRaycaster />
<mue:UIMesh>
<!--
You only have to wrap items with mue:UIMesh.Items
when you compile the interpreter with IL2CPP.
It is because ContentPropertyAttribute does not work with IL2CPP.
-->
<mue:UIMesh.Items>
<mue:Triangle Indices="{m:Vector3Int X=0, Y=1, Z=2}" />
<mue:Vert Value="{m:UIVertex Color={m:Color R=0, G=0, B=1}, Position={m:Vector3 X=-0.5, Y=-0.5, Z=0}}" />
<mue:Vert Value="{m:UIVertex Color={m:Color R=0, G=1, B=0}, Position={m:Vector3 X=0, Y=0.5, Z=0}}" />
<mue:Vert Value="{m:UIVertex Color={m:Color R=1, G=0, B=0}, Position={m:Vector3 X=0.5, Y=-0.5, Z=0}}" />
</mue:UIMesh.Items>
</mue:UIMesh>
</m:RectTransform>
Fields
| Improve this Doc View SourceValueProperty
Backing store for Value.
Declaration
public static readonly BindableProperty ValueProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceValue
A property that represents a vertex.
Declaration
public UnityEngine.UIVertex Value { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.UIVertex |
Implements
IDisposable