23 lines
602 B
C#
23 lines
602 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using MonKey;
|
|
using Pinwheel.Griffin;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Net.Project.B.Po
|
|
{
|
|
public static class PolarisCommand
|
|
{
|
|
[Command(nameof(Shrinkwrap), "Shrinkwrap Terrain By Scene Colliders"), MenuItem("Tools/Terrain/Snrinkwrap")]
|
|
public static void Shrinkwrap()
|
|
{
|
|
var terrain = Object.FindObjectOfType<GStylizedTerrain>();
|
|
if (terrain is null)
|
|
{
|
|
Debug.LogError("未找到地形");
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
} |