Show / Hide Table of Contents

Class UIVertexStream

A UIMeshItem that represents a stream of custom UnityEngine.UIVertex and corresponding indices.

Inheritance
Object
UIMeshItem
UIMeshItemWithCollection
UIVertexStream
Implements
IDisposable
Inherited Members
UIMeshItemWithCollection.CreateBindableCollectionProperty<T>(String, Type)
UIMeshItem.Map(UnityEngine.UIVertex)
Namespace: Mux.Markup.Extras
Assembly: Mux.Markup.UI.dll
Syntax
public class UIVertexStream : UIMeshItemWithCollection, 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 have to wrap items with mue:UIMesh.Items only when you
            compile the interpreter with IL2CPP.
            It is because ContentPropertyAttribute does not work with IL2CPP.
        -->
        <mue:UIMesh.Items>
            <mue:UIVertexStream>
                <mue:UIVertexStream.Verts>
                    <m:UIVertex Color="{m:Color R=0, G=0, B=1}" Position="{m:Vector3 X=-0.5, Y=-0.5, Z=0}" />
                    <m:UIVertex Color="{m:Color R=0, G=1, B=0}" Position="{m:Vector3 X=0, Y=0.5, Z=0}" />
                    <m:UIVertex Color="{m:Color R=1, G=0, B=0}" Position="{m:Vector3 X=0.5, Y=-0.5, Z=0}" />
                </mue:UIVertexStream.Verts>
                <mue:UIVertexStream.Indices>
                    <x:Int32>0</x:Int32>
                    <x:Int32>1</x:Int32>
                    <x:Int32>2</x:Int32>
                </mue:UIVertexStream.Indices>
            </mue:UIVertexStream>
        </mue:UIMesh.Items>
    </mue:UIMesh>
</m:RectTransform>

Fields

| Improve this Doc View Source

IndicesProperty

Backing store for Indices.

Declaration
public static readonly BindableProperty IndicesProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

VertsProperty

Backing store for Verts.

Declaration
public static readonly BindableProperty VertsProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

Indices

The custom stream of indices to add to the UIMesh internal data.

Declaration
public ICollection<int> Indices { get; set; }
Property Value
Type Description
ICollection<Int32>
| Improve this Doc View Source

Verts

The custom stream of verts to add to the UIMesh internal data.

Declaration
public ICollection<UnityEngine.UIVertex> Verts { get; set; }
Property Value
Type Description
ICollection<UnityEngine.UIVertex>

Methods

| Improve this Doc View Source

Dispose()

Declaration
public override void Dispose()
Overrides
UIMeshItem.Dispose()

Implements

IDisposable

See Also

UnityEngine.UI.VertexHelper.AddUIVertexStream
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX