Class LocalizedAssetData<T>
To be used with AssetMapComponentLocalizer<LT, CT, AT, LAD>.
Inheritance
LocalizedAssetData<T>
Namespace: NoSuchStudio.Localization
Assembly: NoSuchStudio-Localization.dll
Syntax
[Serializable]
public class LocalizedAssetData<T>
Type Parameters
| Name | Description |
|---|---|
| T | Type of the asset. It should be Serializable by Unity. |
Remarks
Use a non-generic subclass of this class for localizing different field types.
Examples
public class SpriteLocalizedAssetData : LocalizedAssetData<Sprite> {
public SpriteLocalizedAssetData(string name, Sprite data) : base(name, data) { }
}
Constructors
LocalizedAssetData(String, T)
Declaration
public LocalizedAssetData(string name, T data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | |
| T | data |
Properties
data
Declaration
public T data { get; }
Property Value
| Type | Description |
|---|---|
| T |
locale
Declaration
public string locale { get; }
Property Value
| Type | Description |
|---|---|
| String |