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

The class for content types that use the RawImage to display audio content. More...

Inheritance diagram for AudioContent:
RawImageContent ContentType

Public Member Functions

override void Dispose ()
 Disposes the content.
 

Static Public Member Functions

static Frame CreateFrame (AudioClip audioClip, Texture2D poster=null)
 Creates a frame with the audio.
 

Public Attributes

AudioClip audioClip
 The AudioClip of the content.
 
bool loop
 Whether the audio should be played in a loop.
 
Texture2D poster
 The poster of the content.
 

Protected Member Functions

override void LoadContentData (Content content)
 Loads the data of the content.
 

Properties

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

Additional Inherited Members

Detailed Description

The class for content types that use the RawImage to display audio content.

Member Function Documentation

◆ CreateFrame()

static Frame CreateFrame ( AudioClip audioClip,
Texture2D poster = null )
static

Creates a frame with the audio.

Parameters
audioClipAudioClip of the frame.
posterPoster of the frame.
Returns
The frame.

◆ LoadContentData()

override void LoadContentData ( Content content)
protected

Loads the data of the content.

Parameters
contentThe content.