Class PetAbilityTemplate
ScriptableObject template for defining a pet ability, including prefab and spawn parameters.
[CreateAssetMenu(fileName = "New Pet Ability", menuName = "FishMMO/Character/Ability/Pet Ability", order = 1)]
public class PetAbilityTemplate : AbilityTemplate, ICachedObject, ITooltip
- Inheritance
-
ObjectScriptableObjectPetAbilityTemplate
- 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
PetAbilities
Abilities the summoned pet starts knowing.
[Tooltip("Abilities the summoned pet starts with. Learned on summon and persisted.")]
public List<AbilityTemplate> PetAbilities
Field Value
Remarks
These are taught to the pet's IAbilityController on summon and persisted with it, so the pet keeps them across a log out. The pet prefab's own Abilities list is learned as well; use that for abilities every pet of this species has, and this list for abilities granted by the summoning spell.
PetPrefab
The prefab for the pet to be spawned.
public NetworkObject PetPrefab
Field Value
- NetworkObject
SpawnBoundingBox
The bounding box for spawning the pet.
public Vector3 SpawnBoundingBox
Field Value
- Vector3
SpawnDistance
The distance from the spawner to spawn the pet.
public float SpawnDistance
Field Value
Methods
OnLoad(string, string, int)
Called when the pet ability is loaded. Calculates spawn parameters based on the prefab's collider.
public override void OnLoad(string typeName, string resourceName, int resourceID)