Files
HauntedBloodlines/Assets/PuppetFace/Scripts/LookAtControl.cs
2025-05-29 22:31:40 +03:00

22 lines
405 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class LookAtControl : MonoBehaviour
{
private Mesh _mesh;
void Start()
{
string path = "ViewFinder";
_mesh = (Mesh)Resources.Load(path, typeof(Mesh));
}
private void OnDrawGizmos()
{
Gizmos.DrawMesh(_mesh, 0, transform.position, transform.rotation, transform.localScale);
}
}