Show / Hide Table of Contents

Class UIMesh

A class that allows creating or modifying meshes with XAML and data binding.

Inheritance
Object
Graphic<MuxUIMesh>
UIMesh
Inherited Members
Graphic<MuxUIMesh>.ColorProperty
Graphic<MuxUIMesh>.MaterialProperty
Graphic<MuxUIMesh>.RaycastTargetProperty
Graphic<MuxUIMesh>.Color
Graphic<MuxUIMesh>.Material
Graphic<MuxUIMesh>.RaycastTarget
Graphic<MuxUIMesh>.AwakeInMainThread()
Namespace: Mux.Markup.Extras
Assembly: Mux.Markup.UI.dll
Syntax
public class UIMesh : Graphic<MuxUIMesh>
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:UIVertexTriangleStream>
                <!--
                    Wrapping with mue:UIVertexTriangleStream.Verts
                    for the same reason
                -->
                <mue:UIVertexTriangleStream.Verts>
                    <m:UIVertex Position="{m:Vector3 X=-0.5, Y=-0.5, Z=0}" />
                    <m:UIVertex Position="{m:Vector3 X=0, Y=0.5, Z=0}" />
                    <m:UIVertex Position="{m:Vector3 X=0.5, Y=-0.5, Z=0}" />
                </mue:UIVertexTriangleStream.Verts>
            </mue:UIVertexTriangleStream>
        </mue:UIMesh.Items>
    </mue:UIMesh>
</m:RectTransform>

Constructors

| Improve this Doc View Source

UIMesh()

Declaration
public UIMesh()

Fields

| Improve this Doc View Source

ItemsProperty

Backing store for the Items property.

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

ItemsSourceProperty

Backing store for the ItemsSource property.

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

ItemTemplateProperty

Backing store for the ItemTemplate property.

Declaration
public static readonly BindableProperty ItemTemplateProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

Items

A property that represents a collection of UIMeshItem.

Declaration
public ICollection<UIMeshItem> Items { get; }
Property Value
Type Description
ICollection<UIMeshItem>
Remarks

This is the content property; you can write as child elements in XAML.

| Improve this Doc View Source

ItemsSource

Gets or sets the source of entries to template and add.

Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type Description
IEnumerable
| Improve this Doc View Source

ItemTemplate

Gets or sets the to apply to the ItemsSource.

Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type Description
DataTemplate

Methods

| Improve this Doc View Source

AddToInMainThread(UnityEngine.GameObject)

Declaration
protected override sealed void AddToInMainThread(UnityEngine.GameObject gameObject)
Parameters
Type Name Description
UnityEngine.GameObject gameObject
| Improve this Doc View Source

OnBindingContextChanged()

Declaration
protected override void OnBindingContextChanged()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX