Forum rules - please read before posting.

Playtest utility: ShowPlayerLocation

edited September 2015 in Adventure talk
Here's a tiny little script I've started adding to my Player prefab for playtest builds. It simply displays the player location in the upper left corner, and makes it so much easier to navigate to problems in big complicated scenes: just instruct your playtesters to take a screenshot and you'll know exactly where to look.


using UnityEngine;
using System.Collections;

public class ShowPlayerLocation : MonoBehaviour
{
void OnGUI ()
{
float posX = transform.position.x;
float posZ = transform.position.z;
GUI.Label (new Rect (10, 10, 200, 40), "X: " + posX.ToString () + "  Y: " + posZ.ToString ());
}
}
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.