Smart Gallery v1.1
 
Loading...
Searching...
No Matches
UIPrefabContent Class Reference

The content type for displaying UI prefabs. More...

Inheritance diagram for UIPrefabContent:
ContentType

Static Public Member Functions

static Frame CreateFrame (GameObject prefab)
 Creates a frame with the prefab.
 
static Frame CreateFrame (RectTransform prefab)
 Creates a frame with the prefab.
 

Public Attributes

RectTransform prefab
 The prefab of the content.
 

Protected Member Functions

override RectTransform LoadContent (Content content)
 Loads the content.
 

Properties

override string name [get]
 The name of the content type.
 

Additional Inherited Members

Detailed Description

The content type for displaying UI prefabs.

Member Function Documentation

◆ CreateFrame() [1/2]

static Frame CreateFrame ( GameObject prefab)
static

Creates a frame with the prefab.

Parameters
prefabThe prefab.
Returns
The frame.
Exceptions
ExceptionThe prefab must have a RectTransform component.

◆ CreateFrame() [2/2]

static Frame CreateFrame ( RectTransform prefab)
static

Creates a frame with the prefab.

Parameters
prefabThe prefab.
Returns
The frame.

◆ LoadContent()

override RectTransform LoadContent ( Content content)
protected

Loads the content.

Parameters
contentThe content.
Returns
The RectTransform of the content.