Smart Gallery v1.1
 
Loading...
Searching...
No Matches
ContentType Class Referenceabstract

The base class for content types. More...

Inheritance diagram for ContentType:
RawImageContent UIPrefabContent AudioContent RemoteTextureContent TextureContent VideoContent LocalVideoContent RemoteVideoContent

Public Member Functions

virtual void Dispose ()
 Disposes the content.
 
virtual Texture GetPreviewTexture ()
 Gets the preview texture of the content.
 
RectTransform Load (Content content)
 Loads the content.
 

Public Attributes

Content content
 The content that is being displayed.
 

Protected Member Functions

void CreateContent (RectTransform container)
 Creates the content.
 
RectTransform LoadContent (Content content)
 Loads the content.
 

Protected Attributes

RectTransform contentRectTransform
 The RectTransform of the content.
 

Properties

virtual bool allowZoom [get]
 Whether the content can be zoomed.
 
string name [get]
 The name of the content type.
 
MessageSystem messageSystem [get]
 The message system of the content.
 

Detailed Description

The base class for content types.

Member Function Documentation

◆ CreateContent()

void CreateContent ( RectTransform container)
protected

Creates the content.

Parameters
containerThe RectTransform of the container.

◆ GetPreviewTexture()

virtual Texture GetPreviewTexture ( )
virtual

Gets the preview texture of the content.

Returns
The preview texture of the content.

Reimplemented in TextureContent.

◆ Load()

RectTransform Load ( Content content)

Loads the content.

Parameters
contentThe content to load.
Returns
The RectTransform of the content.

◆ LoadContent()

RectTransform LoadContent ( Content content)
abstractprotected

Loads the content.

Parameters
contentThe content to load.
Returns
The RectTransform of the content.