Unity物体打组
作者:
独步江雪 | 来源:发表于
2020-12-12 03:26 被阅读0次using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
public class Toolbag
{
[MenuItem("Toolbag/打组 %G")] // & alt #shift
static void MakeGroup( )
{
GameObject group = new GameObject("group");
foreach (var e in Selection.gameObjects.Where(e => e.activeInHierarchy))
{
e.transform.parent = group.transform;
}
}
}
本文标题:Unity物体打组
本文链接:https://www.haomeiwen.com/subject/adcegktx.html
网友评论