class LoopAnimationLogicController extends inkLogicController
{
	private editable var m_defaultAnimation : CName;
	private editable var m_selectionRule : inkSelectionRule;
	default m_selectionRule = inkSelectionRule.Single;

	protected event OnInitialize()
	{
		var animationOptions : inkAnimOptions;
		animationOptions = inkAnimOptions();
		animationOptions.loopInfinite = true;
		animationOptions.loopType = inkanimLoopType.Cycle;
		PlayLibraryAnimationOnTargets( m_defaultAnimation, SelectWidgets( GetRootWidget(), m_selectionRule ), animationOptions );
	}

}

