added class for an on screen arrow to point to whatever transform you want

This commit is contained in:
FreezeDriedMangoes 2022-06-13 22:22:48 -04:00
parent e049df7b65
commit 18e77c4c7a

View File

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace NewHorizons.Utility.DebugUtilities
{
class DebugArrow : MonoBehaviour
{
public Transform target;
void Start()
{
// make the mesh in code so we don't need an assetbundle or anything
/* E
* (0, .5)
* /\
* / \
* C (-.5,0) || (.5,0) D
* ||
* (-.1,-.5) (.1,-.5)
* A B
*/
Vector3[] topVerts = new Vector3[]
{
new Vector3(-0.1f, -0.5f, 0.1f), // A
new Vector3( 0.1f, -0.5f, 0.1f), // B
new Vector3(-0.5f, 0f, 0.1f), // C
new Vector3( 0.5f, 0f, 0.1f), // D
new Vector3( 0f, 0.5f, 0.1f), // E
};
}
}
}