fix:1、添加项目。2、基本箭头生成

This commit is contained in:
2026-06-12 18:10:00 +08:00
commit 2d5012e37e
6588 changed files with 665673 additions and 0 deletions
@@ -0,0 +1,24 @@
using UnityEngine;
namespace ChillConnect
{
public static class GameObjectExtend
{
public static void SetParent(this GameObject gameObject, GameObject parentGo, bool worldPositionStays = false)
{
if (parentGo)
{
gameObject.transform.SetParent(parentGo.transform, worldPositionStays);
}
}
public static void SetLayer(this GameObject gameObject, string layerName)
{
Transform[] transArr = gameObject.transform.GetComponentsInChildren<Transform>();
for (int i = 0; i < transArr.Length; i++)
{
transArr[i].gameObject.layer = LayerMask.NameToLayer(layerName);
}
}
}
}