Jump to content

BTA

Members
  • Posts

    6
  • Joined

  • Last visited

BTA's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I just downloaded the Unity plugin and copy-past my Spriter project into my Unity project. The plugin did generated a prefab as expected but when I try to get a reference to the SpriterDotNetBehaviour Animator property it returns null. My code is pretty simple : public class DevilBoyController : MonoBehaviour { private UnitySpriterAnimator spriterAnimator; // Use this for initialization void Start () { SpriterDotNetBehaviour sdnb = gameObject.GetComponentInChildren<SpriterDotNetBehaviour>(); spriterAnimator = sdnb.Animator; spriterAnimator.Play("Attack1"); } } The script is attached to a game object which contains a prefab instance as a child. The sdnb variable it's not null - it means that the component is correctly retrieved. Any idea why the Animator is null ? Thank you EDIT : actually this issue was solved by using the same tips as the previous issue I had - Reimporting the assets ! I don't know why it just does not work the first time - but in my case I had to use the "reimport" option twice in order to have the character correctly displayed and the Animator correctly created.
  2. Hi, Actually I already did that and tested it again but it didn't work. I create a box, left-click, copy it, go to the desired next frame and then past-it in the canvas. Doing that make the box visible in the frame where it was created and in the frame where it has been pasted - but between those 2 frames the box it's not visible. I tried many times - and never succeeded. Can you point me to a video which specifically shows box creation and make it visible between 2 frames ? I'm working on windows with the latest Spriter pro version. Thank you.
  3. Hi guys, I need to add an hitbox in my character animation in order to detect when his attack can hit the ennemies. Creating a box is easy but I can't find out how to make it stay visible between two different frames - so far I need to manually make the box visible for each frame between the two frames I'm targeting. Is it possible to do something like "start making the box visible" and in a later frame "stop making the box visible" ? Thank you
  4. Hi, I'm new to Spriter and even more to the Unity plugin. I was wondering if it's possible to play more than one animation at the same time if those animations don't affect the same bones ? To be honest I ask this question because I'm used to work with Spine and it's a feature that I really like. About Spriter, is it possible to create nested animations ? If not, is it possible to create separate animations, instantiate both in Unity and then make one animation follow another animation bone ? Thank you
  5. Hi, Thanks for the quick-fix, at least I'm not longer stuck !
  6. Hi, I tried for the first time the plugin and I got this error : InvalidOperationException: 'bezier' is not a valid value for Spriter2UnityDX.Importing.CurveType. Then no prefab or animationController are created. Any idea why I get this error message and what I have to do to fix that ? Thank you
×
×
  • Create New...