Region Order

Discuss issues pertaining to the Creature Animation Editor here.
Post Reply
Heartigan
Posts: 7
Joined: Fri Feb 17, 2017 1:19 pm

Region Order

Post by Heartigan » Sat May 13, 2017 5:26 pm

Hi,

When I export to Unity the region order of my images gets swapped for some reason (the arm of a soldier is now in front when in Creature is on the far back).
I have tried the following:

1) Export with the Unity Method (create asset, place bytes file and also mdata renamed to json hoping it would help :D)
2) Export images/spritesheet and create a sprite renderer with the usual Unity method. With this method the order is correct.

What can it be?

Cheers,
Heartigan

chong
Posts: 702
Joined: Thu Feb 19, 2015 2:21 am

Re: Region Order

Post by chong » Sat May 13, 2017 5:53 pm

Hello,

There are 2 options you should try first:

1) There is a Counterclockwise Toggle on the Unity Plugin. Switch that ON/OFF to change triangle order

2) There is an offset_z parameter which decides how much z depth each region is pushed forwards or backwards. Again that value can be negative or positive. Try playing around with that as well.

I think with 2), it should address your issue. Depending on the type of shader you are using, you might have to toggle 1) to make it appear ( but the default Sprite Shader does not, the others might need a different clockwise/counterclockwise order ) while you adjust 2).

Cheers

Heartigan
Posts: 7
Joined: Fri Feb 17, 2017 1:19 pm

Re: Region Order

Post by Heartigan » Sat May 13, 2017 6:06 pm

Hi,

The region offset solution worked. Thanks for the fast reply!

Cheers,
Heartigan

Post Reply