Show / Hide Table of Contents

Class Canvas

An that represents UnityEngine.Canvas.

Inheritance
Object
Canvas
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class Canvas : Behaviour<UnityEngine.Canvas>
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:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:playground="clr-namespace:Mux.Playground;assembly=Assembly-CSharp"
    x:DataType="playground:PlaygroundViewModel">
    <!--
      Note that you can use "using" scheme instead of "clr-namespace" to omit assembly
      specification if:
      - the referenced type is in an assembly already loaded. (interpreter)
      - the referenced type is in the assembly containing the compiled XAML. (compiler)
    -->
    <mu:StandaloneInputModule />
    <mu:Canvas />
    <mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
    <mu:GraphicRaycaster />
    <mu:Text Font="{Binding Path=Resources.Font}">
        <mu:Text.Content>
You have to give property name "Path" to Binding only when you compile
the interpreter with IL2CPP. It is because ContentPropertyAttribute does
not work with IL2CPP.

mu:Canvas is required anything based on uGUI.
See what happens to this text if you remove the mu:Canvas!
        </mu:Text.Content>
    </mu:Text>
</m:RectTransform>

Fields

| Improve this Doc View Source

AdditionalShaderChannelsProperty

Backing store for the AdditionalShaderChannels property.

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

RenderProperty

Backing store for the Render property.

Declaration
public static readonly BindableProperty RenderProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

AdditionalShaderChannels

A property that represents UnityEngine.Canvas.additionalShaderChannels.

Declaration
public UnityEngine.AdditionalCanvasShaderChannels AdditionalShaderChannels { get; set; }
Property Value
Type Description
UnityEngine.AdditionalCanvasShaderChannels
| Improve this Doc View Source

Render

A property that represents UnityEngine.RenderMode.ScreenSpaceCamera and its rendering properties.

Declaration
public Render Render { get; set; }
Property Value
Type Description
Render
Remarks

Setting Render to this property binds its lifetime to the lifetime of this object.

Methods

| Improve this Doc View Source

AddToInMainThread(UnityEngine.GameObject)

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

AwakeInMainThread()

Declaration
protected override void AwakeInMainThread()
| Improve this Doc View Source

DestroyMuxInMainThread()

Declaration
protected override void DestroyMuxInMainThread()
| 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