Page 1 of 1

Promote instance var to a family instance var

PostPosted: Sat Dec 21, 2013 12:04 am
by dunebeetle
Is there a reasonable way to refactor the events so that I don't have to manually go through every single usage and change the variable to the family variable before I delete the instance variable?

You could say the same thing for behaviors and effects as well.dunebeetle2013-12-21 00:05:25

Re: Promote instance var to a family instance var

PostPosted: Sat Dec 21, 2013 12:11 am
by blackhornet

Re: Promote instance var to a family instance var

PostPosted: Sat Dec 21, 2013 12:27 am
by dunebeetle
My objects are already in the family, and breaking them apart in an attempt at merging them would be more trouble than it's worth I'm assuming.

Re: Promote instance var to a family instance var

PostPosted: Sat Dec 21, 2013 12:38 am
by dunebeetle
If you create a family variable with the same name as one of your child instance variable, you should be given an option to "promote" the variable to family scope, and all usages in the project are replaced with the family usage.

If this was implemented for variables, behaviors and effects, I would hail it as the greatest added feature of all time.