AssetMedia
public class AssetMediaPersistent media attachment for a package, including its remote URL, cached path, preview identity, dimensions, and duration.
Methods
Section titled “Methods”
GetUrl(bool)
Section titled “GetUrl(bool)”public string GetUrl(bool nonEmbedded = true)Returns the media item’s original URL or cached local URL according to the requested preference.
Parameters
| Name | Type |
|---|---|
nonEmbedded |
System.Boolean |
Returns
System.String
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Constructors
Section titled “Constructors”
AssetMedia()
Section titled “AssetMedia()”public AssetMedia()Properties
Section titled “Properties”
[PrimaryKey][AutoIncrement]public int Id { get; set; }Returns
System.Int32
AssetId
Section titled “AssetId”[Indexed]public int AssetId { get; set; }Returns
System.Int32
[Indexed]public string Type { get; set; }Returns
System.String
public int Order { get; set; }Returns
System.Int32
public string Url { get; set; }Returns
System.String
ThumbnailUrl
Section titled “ThumbnailUrl”public string ThumbnailUrl { get; set; }Returns
System.String
WebpUrl
Section titled “WebpUrl”public string WebpUrl { get; set; }Returns
System.String
public int Width { get; set; }Returns
System.Int32
Height
Section titled “Height”public int Height { get; set; }Returns
System.Int32
IsDownloading
Section titled “IsDownloading”[Ignore]public bool IsDownloading { get; set; }Returns
System.Boolean
DownloadFailed
Section titled “DownloadFailed”[Ignore]public bool DownloadFailed { get; set; }Returns
System.Boolean
ThumbnailTexture
Section titled “ThumbnailTexture”[Ignore]public Texture2D ThumbnailTexture { get; set; }Returns
UnityEngine.Texture2D
Texture
Section titled “Texture”[Ignore]public Texture2D Texture { get; set; }Returns
UnityEngine.Texture2D