Class CharacterLoaderBase
- Namespace
- BlazerTech.CharacterManagement.Components
- Assembly
- Assembly-CSharp.dll
[DisallowMultipleComponent]
public abstract class CharacterLoaderBase : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourCharacterLoaderBase
- Derived
Fields
_animator
The Animator to apply the Animator Controller to
[SerializeField]
[ShowIf("setAnimatorController")]
[BoxGroup("References")]
protected Animator _animator
Field Value
- Animator
_renderer
The Renderer to apply the character shader to.
[SerializeField]
[BoxGroup("References")]
protected Renderer _renderer
Field Value
- Renderer
isValid
protected bool isValid
Field Value
loadCharacterOnStart
Toggles if the character should be loaded when the Start method is called.
[SerializeField]
[BoxGroup("Loading")]
protected bool loadCharacterOnStart
Field Value
loadingMode
Option to load character asynchronously or synchronously.
[SerializeField]
[BoxGroup("Loading")]
protected CharacterLoaderLoadingMode loadingMode
Field Value
setAnimatorController
Toggles if the Animator Controller set in Character Type should be used.
[Tooltip("Override the animator controller with the one assigned in the Character Type")]
[SerializeField]
[BoxGroup("References")]
protected bool setAnimatorController
Field Value
Methods
GetAndShowCharacter()
public abstract Task GetAndShowCharacter()
Returns
OnDestroy()
protected virtual void OnDestroy()
ReleaseCharacter()
protected abstract void ReleaseCharacter()
ShowCharacter()
protected abstract void ShowCharacter()
TrySetCharacterAnimator(CharacterTypeBaseSO)
protected void TrySetCharacterAnimator(CharacterTypeBaseSO characterType)
Parameters
characterType
CharacterTypeBaseSO
ValidationCheck()
protected virtual bool ValidationCheck()