Class CharacterLayerOption
- Namespace
- BlazerTech.CharacterManagement.Characters
- Assembly
- Assembly-CSharp.dll
[Serializable]
public class CharacterLayerOption : OwnedResourceTracker<CharacterLayerOption.LoadedSpriteDataContainer>
- Inheritance
-
CharacterLayerOption
- Inherited Members
Constructors
CharacterLayerOption(string, string, string, int, CharacterLayerDefinitionSO, bool)
public CharacterLayerOption(string layerOptionID, string displayName, string key, int index, CharacterLayerDefinitionSO layer, bool ignoreSpriteCheck = false)
Parameters
layerOptionID
stringdisplayName
stringkey
stringindex
intlayer
CharacterLayerDefinitionSOignoreSpriteCheck
bool
Properties
DisplayName
public string DisplayName { get; }
Property Value
Index
public int Index { get; }
Property Value
Key
The Addressables Key used to load the spritesheet attached to this layer option.
public string Key { get; }
Property Value
LayerDefinition
public CharacterLayerDefinitionSO LayerDefinition { get; }
Property Value
LayerOptionID
A unique identifier used to reference a character layer option.
public string LayerOptionID { get; }
Property Value
LoadedSpriteData
public CharacterLayerOption.LoadedSpriteDataContainer LoadedSpriteData { get; }
Property Value
Methods
AcquireResource(object)
Acquires the resource for an owner
public override CharacterLayerOption.LoadedSpriteDataContainer AcquireResource(object owner)
Parameters
owner
objectObject claiming ownership
Returns
- CharacterLayerOption.LoadedSpriteDataContainer
Managed resource
AcquireResourceAsync(object)
Acquires the resource for an owner asynchronously
public override Task<CharacterLayerOption.LoadedSpriteDataContainer> AcquireResourceAsync(object owner)
Parameters
owner
objectObject claiming ownership
Returns
- Task<CharacterLayerOption.LoadedSpriteDataContainer>
Managed resource
GetAndLoadResource()
protected override CharacterLayerOption.LoadedSpriteDataContainer GetAndLoadResource()
Returns
GetAndLoadResourceAsync()
protected override Task<CharacterLayerOption.LoadedSpriteDataContainer> GetAndLoadResourceAsync()
Returns
UnloadResource()
protected override void UnloadResource()