Search Results for

    Show / Hide Table of Contents

    Class MaterialBrush

    Implementation of IBrush for MaterialBase rendering.

    Inheritance
    System.Object
    MaterialBrush
    Implements
    IBrush
    Namespace: FlaxEngine.GUI
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class MaterialBrush : Object, IBrush

    Constructors

    MaterialBrush()

    Initializes a new instance of the MaterialBrush class.

    Declaration
    public MaterialBrush()

    MaterialBrush(Material)

    Initializes a new instance of the MaterialBrush struct.

    Declaration
    public MaterialBrush(Material material)
    Parameters
    Material material

    The material.

    Fields

    Material

    The material.

    Declaration
    [ExpandGroups]
    [Tooltip("The material to use for GUI control area rendering. It must be GUI domain.")]
    public MaterialBase Material
    Field Value
    MaterialBase

    Properties

    Size

    Gets the size of the image brush in pixels (if relevant).

    Declaration
    public Float2 Size { get; }
    Property Value
    Float2

    Implements
    IBrush.Size

    Methods

    Draw(Rectangle, Color)

    Draws the specified image using Render2D graphics backend.

    Declaration
    public void Draw(Rectangle rect, Color color)
    Parameters
    Rectangle rect

    The draw area rectangle.

    Color color

    The color.

    Implements
    IBrush.Draw(Rectangle, Color)

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)

    See Also

    IBrush
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat