1
This commit is contained in:
23
Src/UnityPluginsSupport/Polaris/PolarisCommand.cs
Normal file
23
Src/UnityPluginsSupport/Polaris/PolarisCommand.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user