public static void SetAnimationCullingMode(GameObject gameObj, AnimationCullingType cullingType) { if (null != gameObj.animation) { gameObj.animation.cullingType = cullingType; } for (int i = 0; i < gameObj.transform.childCount; i++) { NkUtil.SetAnimationCullingMode(gameObj.transform.GetChild(i).gameObject, cullingType); } }