Show / Hide Table of Contents

Class Mask

A that represents UnityEngine.UI.Mask.

Inheritance
Object
Mask
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class Mask : Behaviour<UnityEngine.UI.Mask>
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:Mask />
    <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.

This text is masked by mu:Image.
        </mu:Text.Content>
    </mu:Text>
    <m:RectTransform X="{m:Stretch}" Y="{m:Stretch}">
        <mu:Image Color="{m:Color R=0, G=0, B=1}" />
    </m:RectTransform>
</m:RectTransform>

Fields

| Improve this Doc View Source

ShowMaskGraphicProperty

Backing store for the ShowMaskGraphic property.

Declaration
public static readonly BindableProperty ShowMaskGraphicProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

ShowMaskGraphic

A property that represents UnityEngine.UI.Mask.showMaskGraphic.

Declaration
public bool ShowMaskGraphic { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

AwakeInMainThread()

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