|
Essential Kit
|
Interface to be implemented by media content classes. More...
Public Member Functions | |
| void | AsTexture2D (EventCallback< Texture2D > onComplete) |
| Converts the media content to a Texture2D | |
| void | AsRawMediaData (EventCallback< RawMediaData > onComplete) |
| Converts the media content to a RawMediaData. | |
| void | AsFilePath (string destinationDirectory, string fileName, EventCallback< string > onComplete) |
| Converts the media content to a file path. | |
This interface provides methods to convert the media content to various formats.
| void AsTexture2D | ( | EventCallback< Texture2D > | onComplete | ) |
The callback will be invoked with the converted texture.
| onComplete | Callback to be invoked when the conversion is completed. |
| void AsRawMediaData | ( | EventCallback< RawMediaData > | onComplete | ) |
The callback will be invoked with the converted raw media data.
| onComplete | Callback to be invoked when the conversion is completed. |
| void AsFilePath | ( | string | destinationDirectory, |
| string | fileName, | ||
| EventCallback< string > | onComplete ) |
The callback will be invoked with the converted file path.
| destinationDirectory | The directory to which the file should be saved. |
| fileName | The name of the file to be saved. |
| onComplete | Callback to be invoked when the conversion is completed. |