Class FlexalonComponent
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Base type for many Flexalon components. Deals with FlexalonNode lifecycle, and provides the ForceUpdate and MarkDirty methods to trigger a Flexalon update.
public abstract class FlexalonComponent : MonoBehaviour
- Inheritance
-
objectFlexalonComponent
- Derived
Fields
_node
protected FlexalonNode _node
Field Value
Properties
Node
The FlexalonNode associated with this gameObject.
public FlexalonNode Node { get; }
Property Value
Methods
DoOnDisable()
Called when the component is disabled.
protected virtual void DoOnDisable()
DoOnEnable()
Called when the component is enabled.
protected virtual void DoOnEnable()
DoUpdate()
Called when the component is updated.
public virtual void DoUpdate()
ForceUpdate()
Forces this component, its parent nodes, and its children nodes to update immediately.
public void ForceUpdate()
Initialize()
Called when the component is first created.
protected virtual void Initialize()
MarkDirty()
Marks this component needing an update. The Flexalon singleton will visit it in dependency order on LateUpdate.
public void MarkDirty()
ResetProperties()
Called when the component is destroyed to reset properties on the FlexalonNode.
protected virtual void ResetProperties()
UpdateProperties()
Called when the component is enabled to apply properties to the FlexalonNode.
protected virtual void UpdateProperties()
Upgrade(int)
Called when the component is upgraded to a new version of Flexalon.
protected virtual void Upgrade(int fromVersion)
Parameters
fromVersionint