OnStart section for AnimatorGroup

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

OnStart section for AnimatorGroup

Post 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.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Nice workaround using the @-syntax. I'm adding OnStart and uploading a new beta in a few minutes!
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

Post by Rado1 »

VilleK wrote:I'm adding OnStart and uploading a new beta in a few minutes!
Great. Thank you.
Post Reply