Unity Tips and Tricks: Calculate distance between two objects.


The Unity Tips & Tricks tutorial series is for people who are interested in good tips for making games in unity.

This is a link describing calculating the distance between two objects. It is useful if you need to create camera boundaries, calculate distances between player characters, the ground, walls, and other things.

Unity Tips and Tricks: Playing a Spine2D Track Entry at Modified Speed

I came across this article showing how to play a trackentry on a Spine2D game object within Unity.

Spine2D is a software package made by a company called Esoteric Software which we are using to create our newest game.

The code below can be used to change your Character’s animation speed during runtime.

SetAnimation(0, “animation”, true).timeScale = 0.5f;

This link leads to the topic thread on the Spine2D website.