Class AchievementTemplate
ScriptableObject template representing an achievement, including icon, category, description, and tiers.
[CreateAssetMenu(fileName = "New Achievement", menuName = "FishMMO/Character/Achievement/Achievement", order = 1)]
public class AchievementTemplate : CachedScriptableObject<AchievementTemplate>, ICachedObject
- Inheritance
-
ObjectScriptableObjectAchievementTemplate
- Implements
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Fields
Category
The category this achievement belongs to (e.g., Combat, Exploration).
public AchievementCategory Category
Field Value
Description
The description of the achievement, shown to the player.
public string Description
Field Value
IconReference
Addressable reference to the icon sprite for this achievement.
public AssetReferenceSprite IconReference
Field Value
- AssetReferenceSprite
Tiers
The list of tiers for this achievement, each representing a milestone or level.
public List<AchievementTier> Tiers
Field Value
Properties
Icon
The icon for this achievement (loaded at runtime on client).
public Sprite Icon { get; }
Property Value
- Sprite
Name
The name of this achievement template (from the ScriptableObject's name).
public string Name { get; }
Property Value
Methods
OnLoad(string, string, int)
Called when the achievement template is loaded into cache. Loads the icon on the client.
public override void OnLoad(string typeName, string resourceName, int resourceID)
Parameters
OnUnload(string, string, int)
Called when the achievement template is unloaded from cache. Releases the icon on the client.
public override void OnUnload(string typeName, string resourceName, int resourceID)