Page 1 of 1

OnStart section for AnimatorGroup

Posted: Fri Mar 09, 2012 9:15 am
by Rado1
Sometimes, it would be handy to have the OnStart section in AnimatorGroup component. This can be used, eg., to set properties of the comprised animations before they actually start. Now, I'm using functions such as:

Code: Select all

void startAnimation(){
  <set properties>
  @StartAnimator(Animator : <animator group>);
}
This is not bad, but conceptually is decreases encapsulation - setting of animation properties belongs to animator itself.

Note: This is probably a low-priority feature request, but I needed it in two of my recent projects, so maybe it would be useful also for other people.

Posted: Fri Mar 09, 2012 10:48 am
by VilleK
Nice workaround using the @-syntax. I'm adding OnStart and uploading a new beta in a few minutes!

Posted: Fri Mar 09, 2012 11:24 am
by Rado1
VilleK wrote:I'm adding OnStart and uploading a new beta in a few minutes!
Great. Thank you.