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

The data of the remote texture. More...

Public Member Functions

Texture2D GetTexture ()
 Gets the texture.
 
IEnumerator Load (RemoteTextureContent content)
 Loads the texture.
 
bool Validate (ContentType contentType)
 Validates the data.
 

Public Attributes

RemoteTextureSource source = RemoteTextureSource.Url
 The source of the texture.
 
string url
 The URL of the texture.
 
string path
 The path of the texture.
 

Detailed Description

The data of the remote texture.

Member Function Documentation

◆ GetTexture()

Texture2D GetTexture ( )

Gets the texture.

Returns
The texture.

◆ Load()

IEnumerator Load ( RemoteTextureContent content)

Loads the texture.

Parameters
contentThe content.
Returns
The coroutine.

◆ Validate()

bool Validate ( ContentType contentType)

Validates the data.

Parameters
contentTypeThe content type.
Returns
Whether the data is valid.