Skip to content
Bit Quirky Behavior Trees and
State Machines

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.6.0
Menu

BitQuirky.Core.Variable

Public bit quirky core: addressables (optional) symbols in BitQuirky.Core.Variable.

Source snapshot ad0983d00d77.

Assembly: BitQuirky.Core.Addressables

ComponentReferenceSetter<TVariable, TComponent>

Section titled “ComponentReferenceSetter<TVariable, TComponent>”

Category: Low-level runtime

C#
class BitQuirky.Core.Variable.ComponentReferenceSetter<TVariable, TComponent> where TVariable : BitQuirky.Core.Variable.Variable<TComponent> where TComponent : UnityEngine.Component

Source declaration: ../bitquirky-core/Runtime/Addressables/Variable/ComponentReferenceSetter.cs:43-85

Inherits: LoggingBehavior

Loads a Variable asset via Addressables and assigns the host component as its value.

Responsibilities:

  • Resolve an Addressables AssetReference to a Variable.
  • Force-set the loaded variable to this GameObject’s component.

Does NOT:

  • Compile when com.unity.addressables is not installed.
  • Release the Addressables handle after load (legacy behavior preserved).

C#
public TComponent Component { get; }

Source declaration: ../bitquirky-core/Runtime/Addressables/Variable/ComponentReferenceSetter.cs:55

Component found on this game object and published to the loaded variable; null until Awake has run.

C#
protected override void Awake()

Source declaration: ../bitquirky-core/Runtime/Addressables/Variable/ComponentReferenceSetter.cs:64-73

Finds the component on this game object, ready for the variable asset to be loaded and assigned in Start; asserts when either the asset reference or the component is missing.

Source fingerprint: sha256:ad0983d00d773d882bc61865e18d8c5559e009d181e5891575cd7f262515b23e

Full-size image