Calling IEnum_FunctionName()
Using IEnum to run script logic over time.
Starting an IEnum
void Begin(ScriptContext& ctx, float /*dt*/)
{
IEnum_Start(IEnum_RotateSelf);
}Stopping an IEnum
IEnum_Stop(IEnum_RotateSelf);static IEnumHandle rotateTask;
void Begin(ScriptContext& ctx, float)
{
rotateTask = IEnum_Start(IEnum_RotateSelf);
}
void End(ScriptContext& ctx)
{
IEnum_Stop(rotateTask);
}
Toggling IEnum from the Inspector
Running multiple IEnums
Example IEnum function
Last updated
Was this helpful?
