// Token: 0x06000D9B RID: 3483 RVA: 0x0003D0CC File Offset: 0x0003B2CC private static void SetPreviewFlags(Transform transform) { transform.gameObject.hideFlags = (HideFlags.DontSaveInEditor | HideFlags.NotEditable | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset); foreach (object obj in transform) { ItemDisplayRuleComponent.SetPreviewFlags((Transform)obj); } }
// Token: 0x06000D9A RID: 3482 RVA: 0x0003D020 File Offset: 0x0003B220 private void BuildPreview() { this.DestroyPreview(); if (this.prefab) { this.prefabInstance = UnityEngine.Object.Instantiate <GameObject>(this.prefab); this.prefabInstance.name = "Preview"; this.prefabInstance.transform.parent = base.transform; this.prefabInstance.transform.localPosition = Vector3.zero; this.prefabInstance.transform.localRotation = Quaternion.identity; this.prefabInstance.transform.localScale = Vector3.one; ItemDisplayRuleComponent.SetPreviewFlags(this.prefabInstance.transform); } }