class MAGES::ComponentLibrary::Whiteboard

Overview

A component that creates a whiteboard. More…

class Whiteboard: public MonoBehaviour
{
public:
    // properties

    int PaintLayer;
    float PaintDepth;
    Vector2Int Resolution;
    Color BackgroundColor;
    Material Material;

    // methods

    void Clear();
};

Detailed Documentation

A component that creates a whiteboard.

See also:

WhiteboardMarker, WhiteboardEraser

Properties

int PaintLayer

Gets or sets the layer of the objects that will be able to paint on the whiteboard.

float PaintDepth

Gets or sets the distance from the whiteboard that a marker/eraser will paint.

Vector2Int Resolution

Gets or sets the texture resolution of the whiteboard.

Color BackgroundColor

Gets or sets the background color of the whiteboard.

Material Material

Gets or sets the material of the whiteboard. If null, the default material will be used.

Methods

void Clear()

Clears the whiteboard in the next frame.