Beispiel #1
0
 /// <summary>
 /// 获取该gameObject下的组件,不包括剔除的组件类型
 /// </summary>
 /// <param name="self"></param>
 /// <param name="excludeComponentTypes">剔除的组件类型</param>
 /// <param name="excludeSplit"></param>
 /// <returns></returns>
 public static Component[] GetComponentsExclude(this GameObject self, string excludeComponentTypes,
                                                string excludeSplit = StringConst.String_Vertical)
 {
     return(GameObjectUtil.GetComponentsExclude(self, excludeComponentTypes, excludeSplit));
 }
Beispiel #2
0
 /// <summary>
 /// 获取该gameObject下的组件,不包括剔除的组件类型
 /// </summary>
 /// <param name="self"></param>
 /// <param name="excludeComponentTypes">剔除的组件类型</param>
 /// <returns></returns>
 public static Component[] GetComponentsExclude(this GameObject self, params Type[] excludeComponentTypes)
 {
     return(GameObjectUtil.GetComponentsExclude(self, excludeComponentTypes));
 }