public virtual void Awake() { this.m_IsVisible = InternalEditorUtility.GetIsInspectorExpanded(this.target); if (GetPreviewType(this.target as Material) == PreviewType.Skybox) { this.m_PreviewDir = new Vector2(0f, 50f); } }