Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - artixpro

Pages: [1]
Share New Actions / Re: Spine Actions
« on: January 15, 2018, 05:45:07 AM »
using UnityEngine;

namespace HutongGames.PlayMaker.Actions

   [Tooltip("Artix Production")]
   public class SendEventEndAnimation : FsmStateAction

      [Tooltip("The GameObject to be observed.")]
      public FsmOwnerDefault gameObject;

      [Tooltip("Send this event when animation finished.")]
      public FsmEvent sendEvent;

      [Tooltip("The name of the animation to be observed.")]
      public FsmString animationName;

      private Animator animator;

      public override void Reset() {
         gameObject = null;
         sendEvent = null;
         animationName = null;

      // Code that runs on entering the state.
      public override void OnEnter() {
         var go = Fsm.GetOwnerDefaultTarget(gameObject);
         animator = go.GetComponent<Animator>();

      // Code that runs every frame.
      public override void OnUpdate() {
         var a = animator.GetCurrentAnimatorStateInfo(0);
         if (a.IsName(animationName.Value) && a.normalizedTime >= 0.98f) {

iOS Help / Re: Xcode error Enable Behaviour Action
« on: February 22, 2017, 04:19:26 AM »
Now it turned out that there was an error on EdgeCollider2d, if you choose PolygonCollider2d then everything is fine.

What could it be?

iOS Help / Xcode error Enable Behaviour Action
« on: February 22, 2017, 12:43:17 AM »
Good afternoon! I encountered the following error:

ArgumentException: Type cannot be null.
  at UnityEngine.GameObject.GetComponent (System.Type type) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Actions.EnableBehaviour.OnEnter () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Actions.RunFSM.CheckIfFinished () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.ActivateActions (Int32 startIndex) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.OnEnter () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.UpdateStateChanges () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)

The method of disabling actions, I found out that the following error occurs when you call the "Enable Behaviour".

Any thoughts on this subject. Thank you in advance!

Please tell me how to modify your script to work with Spine 2D?

Here is what I found on the forum Spine2D:

public SkeletonAnimation skeleUnit;
skeleUnit.gameObject.GetComponent<MeshRenderer>().sortingOrder = 1;

Playmaker Help / Trigger2d Event to send Transition Event
« on: January 05, 2017, 06:01:28 AM »
Good afternoon! More recently I began to study the Playmaker. I have a question. In the scene there trash, it is necessary to throw the 10 subjects, how to do so in order to trigger a defined object touched him, and sent to the desired Transition Event? Sorry for the broken English :)

Pages: [1]