コード例 #1
0
    void OnSceneGUI()
    {
        WallScript example = (WallScript)target;

        EditorGUI.BeginChangeCheck();
        for (int i = 0; i < example.meshPoints.Length; i++)
        {
            example.meshPoints[i] = Handles.PositionHandle(example.meshPoints[i], Quaternion.identity);
        }
        if (EditorGUI.EndChangeCheck())
        {
            example.SetMesh();
        }
    }