Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreatePlacemat

Creates and initializes a new placemat in this PlacematContainer.
Read time 1 minuteLast updated 12 days ago

Definition

CreatePlacemat<T>(Rect, int, string)

Creates and initializes a new placemat in this PlacematContainer.
public T CreatePlacemat<T>(Rect placematPosition, int zOrder, string placematTitle) where T : Placemat, new()

Parameters

placematPosition

The position of the new placemat.

zOrder


placematTitle

The title of the new placemat.

Returns

Type

Description

TReturns the created placemat.

CreatePlacemat<T>(Func<T>, Rect, int, string)

Creates and initializes a new placemat in this PlacematContainer.
public T CreatePlacemat<T>(Func<T> creator, Rect placematPosition, int zOrder, string placematTitle) where T : Placemat

Parameters

creator

A function that creates a new placemat of type T.

placematPosition

The position of the new placemat.

zOrder


placematTitle

The title of the new placemat.

Returns

Type

Description

TReturns the created placemat.