Table of Contents

Class BehaviorComponent

Namespace
Lime
Assembly
Lime.dll

BehaviorComponent is NodeComponent that used for scripting node behavior.

public class BehaviorComponent : NodeComponent, IDisposable, IAnimable
Inheritance
BehaviorComponent
Implements
Derived
Inherited Members
Extension Methods

Properties

Suspended

Determines if behavior is suspended.

public bool Suspended { get; }

Property Value

bool

Methods

OnOwnerFrozenChanged()

Occurs when the GloballyFrozen property of the owner node changes.

protected virtual void OnOwnerFrozenChanged()

Resume()

Resumes the Update calls.

public bool Resume()

Returns

bool

Start()

Start is called on the frame in which the component had added just before Update method is called first time. Note: Start doesn't called immediately at the time it is adding.

protected virtual void Start()

Stop(Node)

Stop is called immediately after component had removed

protected virtual void Stop(Node owner)

Parameters

owner Node

Previous owner node.

Suspend()

Stops the Update calls.

public bool Suspend()

Returns

bool

Update(float)

Update is called on every frame if the owner node isn't frozen and the behavior isn't suspended.

protected virtual void Update(float delta)

Parameters

delta float

Elapsed time between frames.