void ClearCache(bool allow_to_create_components) { _meshFilter = SwfUtils.GetComponent <MeshFilter> (gameObject, allow_to_create_components); _meshRenderer = SwfUtils.GetComponent <MeshRenderer>(gameObject, allow_to_create_components); _sortingGroup = SwfUtils.GetComponent <SortingGroup>(gameObject, allow_to_create_components); _dirtyMesh = true; _curSequence = null; _curPropBlock = null; }
void ClearCache() { _meshFilter = SwfUtils.GetOrCreateComponent <MeshFilter>(gameObject); _meshRenderer = SwfUtils.GetOrCreateComponent <MeshRenderer>(gameObject); #if UNITY_5_6_OR_NEWER _sortingGroup = SwfUtils.GetOrCreateComponent <SortingGroup>(gameObject); #endif _dirtyMesh = true; _curSequence = null; _curPropBlock = null; }