2026-06-17 highlight 에셋추가. 스틱그랩 추가중

This commit is contained in:
2026-06-17 19:06:09 +09:00
parent b162d9fcc7
commit 997c1affbe
274 changed files with 19475 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
using HighlightPlus;
namespace HighlightPlus.Demos {
public class CreateOnTargetExample : MonoBehaviour {
public HighlightManager manager;
public GameObject prefab;
void Start () {
manager.OnObjectClicked += OnObjectClicked;
}
void OnObjectClicked (GameObject clickedGameObject, Vector3 clickPosition, Vector3 normal) {
// Align capsule's up direction with the surface normal to make it stand upright
Quaternion rotation = Quaternion.FromToRotation(Vector3.up, normal);
GameObject newObject = Instantiate(prefab, clickPosition, rotation);
newObject.name = "New Object";
}
}
}