您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
398 B
24 行
398 B
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
|
|
public class PathwayHandles
|
|
{
|
|
private Pathway _pathway;
|
|
|
|
public PathwayHandles(Pathway pathway)
|
|
{
|
|
_pathway = pathway;
|
|
}
|
|
|
|
public void DispalyHandles()
|
|
{
|
|
EditorGUI.BeginChangeCheck();
|
|
|
|
for (int i = 0; i < _pathway.Waypoints.Count; i++)
|
|
{
|
|
_pathway.Waypoints[i] = Handles.PositionHandle(_pathway.Waypoints[i], Quaternion.identity);
|
|
}
|
|
}
|
|
|
|
}
|