Class Extensions
- Namespace
- Framework.Common.Extensions
- Assembly
- Assembly-CSharp.dll
공통 확장 메서드 모음.
public static class Extensions
- Inheritance
-
objectExtensions
Methods
GetOrAdd<T>(GameObject)
컴포넌트가 없으면 추가 후 반환.
public static T GetOrAdd<T>(this GameObject go) where T : Component
Parameters
goGameObject
Returns
- T
Type Parameters
T
SetChildrenActive(Transform, bool)
자식 오브젝트 전체 활성화/비활성화.
public static void SetChildrenActive(this Transform parent, bool active)
Parameters
parentTransformactivebool