So, I have finally got SkinExample working! See my modified code!
using System.Collections;using System.Collections.Generic;using UnityEngine;using Spine;using Spine.Unity;using AC;public class SkinExample : MonoBehaviour{ // Drag your skeleton …
I just need to be able to access the SkeletonAnimation, initial Skin dropdown choices in a custom action script so at the start of a scene i can set player prefab to be Clothes/Suit eg or Clothes/UnTuck eg - these work if i manually choose the dropd…
only thing revealed in Console is the same error:
(Quote)
NullReferenceException: Object reference not set to an instance of an object
SkinExample.ChangeSkin () (at Assets/Sleepytime Village/Scripts/SkinExample.cs:42)
UnityEngine.Events.InvokableCa…
Ok, no probs, tried that and got an error, I appreciate it is not related to AC, but any further help you can spare would be greatly received :
NullReferenceException: Object reference not set to an instance of an objectSkinExample.ChangeSkin () (a…
Problem is I cannot get the SkinExample to work or do anything currently, See video and PDF detailing everything.
PDF:
https://www.dropbox.com/s/y0krbbgslmcea18/Switching%20Skins.pdf?dl=0
Video:
https://www.dropbox.com/s/q99zv8op15r7ptk/SpineSki…
Can you help me understand how to incorporate the SpineExample script into a custom action script so I can insert the skin name into the action for the player prefab spineGameObject like in ChangeSkinAction (that currently seems to not do anything :…
updated code to what you updated but getting this error:
Assets/Sleepytime Village/Scripts/CustomActions/ChangeSkinAction.cs(3,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declaration…
Update, so I have made it into a custom action successfully, but get two errors:
PlayerGameObject is NullUnityEngine.Debug:LogError (object)
The Spine GameObject is missing once the scene is stopped.
and
MissingReferenceException: The object of …
in fact, i think this code, but i would need this as a custom script if possible? Ignore code above:
using System.Collections;using System.Collections.Generic;using UnityEngine;using Spine;using Spine.Unity;public class SkinExample : MonoBehaviour …
Hi Chris,
I am trying to use a custom action script to change the skin. But I am getting an error:
Assets/Sleepytime Village/Scripts/CustomActions/ChangeSkinAction.cs(29,13): error CS0246: The type or namespace name 'SkeletonAnimator' could not be…
I did a test and in play positioned the Player into a RL position then ran the action list and the animation did play. So it seems that the Character face direction command isn't working?
So my DR and DL skeleton does have the animation attached, and you can see the animation being called in my actionlist but it is not played and their is an error in console (see screenshots) - can you help me work out why?
https://www.dropbox.com/s…