Jump to content

Ashly Berry

Members
  • Posts

    2
  • Joined

  • Last visited

Ashly Berry's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. void Start () { GameObject p = Instantiate(player) as GameObject; p.transform.parent = transform; } // Update is called once per frame void Update() { if (animator == null) { animator = FindObjectOfType<SpriterDotNetBehaviour>().Animator; animator.EventTriggered += e => Debug.Log("Event Triggered. Source: " + animator.CurrentAnimation.Name + ". Value: " + e); } public GameObject p; I did some more digging and it's getting me a nullreferenceException and I already reset the order of my scripts but no dice
  2. I'm super new to all of this, I came from Unreal's blueprint system and Just moved over to Unity (better support for 2d) I just need to know how on earth do I get the animation I made in spriter to display in the game with a script. I can drag it up in the hierarchy easy enough and see it but when I try to instantiate it in a script I can't get it to show no matter what. Is there anyway we can get a video or a code snippet to show how to do this? (super noob here)
×
×
  • Create New...