protected override void Init() { if (this.m_CastShadows == null) { this.m_CastShadows = base.GetProperty0("m_CastShadows"); this.m_ReceiveShadows = base.GetProperty0("m_ReceiveShadows"); this.m_Material = base.GetProperty0("m_Materials.Array.data[0]"); this.m_SortingOrder = base.GetProperty0("m_SortingOrder"); this.m_SortingLayerID = base.GetProperty0("m_SortingLayerID"); this.m_RenderMode = base.GetProperty0("m_RenderMode"); this.m_MaxParticleSize = base.GetProperty0("m_MaxParticleSize"); this.m_CameraVelocityScale = base.GetProperty0("m_CameraVelocityScale"); this.m_VelocityScale = base.GetProperty0("m_VelocityScale"); this.m_LengthScale = base.GetProperty0("m_LengthScale"); this.m_SortingFudge = base.GetProperty0("m_SortingFudge"); this.m_SortMode = base.GetProperty0("m_SortMode"); this.m_NormalDirection = base.GetProperty0("m_NormalDirection"); this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(base.serializedObject, false); this.m_Meshes[0] = base.GetProperty0("m_Mesh"); this.m_Meshes[1] = base.GetProperty0("m_Mesh1"); this.m_Meshes[2] = base.GetProperty0("m_Mesh2"); this.m_Meshes[3] = base.GetProperty0("m_Mesh3"); List<SerializedProperty> list = new List<SerializedProperty>(); for (int i = 0; i < this.m_Meshes.Length; i++) { if ((i == 0) || (this.m_Meshes[i].objectReferenceValue != null)) { list.Add(this.m_Meshes[i]); } } this.m_ShownMeshes = list.ToArray(); } }
protected override void Init() { if (this.m_CastShadows != null) return; this.m_CastShadows = this.GetProperty0("m_CastShadows"); this.m_ReceiveShadows = this.GetProperty0("m_ReceiveShadows"); this.m_Material = this.GetProperty0("m_Materials.Array.data[0]"); this.m_SortingOrder = this.GetProperty0("m_SortingOrder"); this.m_SortingLayerID = this.GetProperty0("m_SortingLayerID"); this.m_RenderMode = this.GetProperty0("m_RenderMode"); this.m_MinParticleSize = this.GetProperty0("m_MinParticleSize"); this.m_MaxParticleSize = this.GetProperty0("m_MaxParticleSize"); this.m_CameraVelocityScale = this.GetProperty0("m_CameraVelocityScale"); this.m_VelocityScale = this.GetProperty0("m_VelocityScale"); this.m_LengthScale = this.GetProperty0("m_LengthScale"); this.m_SortingFudge = this.GetProperty0("m_SortingFudge"); this.m_SortMode = this.GetProperty0("m_SortMode"); this.m_NormalDirection = this.GetProperty0("m_NormalDirection"); this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(this.serializedObject, false); this.m_RenderAlignment = this.GetProperty0("m_RenderAlignment"); this.m_Pivot = this.GetProperty0("m_Pivot"); this.m_Meshes[0] = this.GetProperty0("m_Mesh"); this.m_Meshes[1] = this.GetProperty0("m_Mesh1"); this.m_Meshes[2] = this.GetProperty0("m_Mesh2"); this.m_Meshes[3] = this.GetProperty0("m_Mesh3"); List<SerializedProperty> serializedPropertyList = new List<SerializedProperty>(); for (int index = 0; index < this.m_Meshes.Length; ++index) { if (index == 0 || this.m_Meshes[index].objectReferenceValue != (Object) null) serializedPropertyList.Add(this.m_Meshes[index]); } this.m_ShownMeshes = serializedPropertyList.ToArray(); }
protected override void Init() { if (this.m_CastShadows == null) { this.m_CastShadows = base.GetProperty0("m_CastShadows"); this.m_ReceiveShadows = base.GetProperty0("m_ReceiveShadows"); this.m_Material = base.GetProperty0("m_Materials.Array.data[0]"); this.m_SortingOrder = base.GetProperty0("m_SortingOrder"); this.m_SortingLayerID = base.GetProperty0("m_SortingLayerID"); this.m_RenderMode = base.GetProperty0("m_RenderMode"); this.m_MaxParticleSize = base.GetProperty0("m_MaxParticleSize"); this.m_CameraVelocityScale = base.GetProperty0("m_CameraVelocityScale"); this.m_VelocityScale = base.GetProperty0("m_VelocityScale"); this.m_LengthScale = base.GetProperty0("m_LengthScale"); this.m_SortingFudge = base.GetProperty0("m_SortingFudge"); this.m_SortMode = base.GetProperty0("m_SortMode"); this.m_NormalDirection = base.GetProperty0("m_NormalDirection"); this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(base.serializedObject, false); this.m_Meshes[0] = base.GetProperty0("m_Mesh"); this.m_Meshes[1] = base.GetProperty0("m_Mesh1"); this.m_Meshes[2] = base.GetProperty0("m_Mesh2"); this.m_Meshes[3] = base.GetProperty0("m_Mesh3"); List <SerializedProperty> list = new List <SerializedProperty>(); for (int i = 0; i < this.m_Meshes.Length; i++) { if ((i == 0) || (this.m_Meshes[i].objectReferenceValue != null)) { list.Add(this.m_Meshes[i]); } } this.m_ShownMeshes = list.ToArray(); } }
protected override void Init() { if (this.m_CastShadows == null) { if (RendererModuleUI.s_Texts == null) { RendererModuleUI.s_Texts = new RendererModuleUI.Texts(); } this.m_CastShadows = base.GetProperty0("m_CastShadows"); this.m_ReceiveShadows = base.GetProperty0("m_ReceiveShadows"); this.m_MotionVectors = base.GetProperty0("m_MotionVectors"); this.m_Material = base.GetProperty0("m_Materials.Array.data[0]"); this.m_TrailMaterial = base.GetProperty0("m_Materials.Array.data[1]"); this.m_SortingOrder = base.GetProperty0("m_SortingOrder"); this.m_RenderingLayerMask = base.GetProperty0("m_RenderingLayerMask"); this.m_SortingLayerID = base.GetProperty0("m_SortingLayerID"); this.m_RenderMode = base.GetProperty0("m_RenderMode"); this.m_MinParticleSize = base.GetProperty0("m_MinParticleSize"); this.m_MaxParticleSize = base.GetProperty0("m_MaxParticleSize"); this.m_CameraVelocityScale = base.GetProperty0("m_CameraVelocityScale"); this.m_VelocityScale = base.GetProperty0("m_VelocityScale"); this.m_LengthScale = base.GetProperty0("m_LengthScale"); this.m_SortingFudge = base.GetProperty0("m_SortingFudge"); this.m_SortMode = base.GetProperty0("m_SortMode"); this.m_NormalDirection = base.GetProperty0("m_NormalDirection"); this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(base.serializedObject); this.m_RenderAlignment = base.GetProperty0("m_RenderAlignment"); this.m_Pivot = base.GetProperty0("m_Pivot"); this.m_Meshes[0] = base.GetProperty0("m_Mesh"); this.m_Meshes[1] = base.GetProperty0("m_Mesh1"); this.m_Meshes[2] = base.GetProperty0("m_Mesh2"); this.m_Meshes[3] = base.GetProperty0("m_Mesh3"); List <SerializedProperty> list = new List <SerializedProperty>(); for (int i = 0; i < this.m_Meshes.Length; i++) { if (i == 0 || this.m_Meshes[i].objectReferenceValue != null) { list.Add(this.m_Meshes[i]); } } this.m_ShownMeshes = list.ToArray(); this.m_MaskInteraction = base.GetProperty0("m_MaskInteraction"); this.m_EnableGPUInstancing = base.GetProperty0("m_EnableGPUInstancing"); this.m_UseCustomVertexStreams = base.GetProperty0("m_UseCustomVertexStreams"); this.m_VertexStreams = base.GetProperty0("m_VertexStreams"); this.m_VertexStreamsList = new ReorderableList(base.serializedObject, this.m_VertexStreams, true, true, true, true); this.m_VertexStreamsList.elementHeight = 16f; this.m_VertexStreamsList.headerHeight = 0f; this.m_VertexStreamsList.onAddDropdownCallback = new ReorderableList.AddDropdownCallbackDelegate(this.OnVertexStreamListAddDropdownCallback); this.m_VertexStreamsList.onCanRemoveCallback = new ReorderableList.CanRemoveCallbackDelegate(this.OnVertexStreamListCanRemoveCallback); this.m_VertexStreamsList.drawElementCallback = new ReorderableList.ElementCallbackDelegate(this.DrawVertexStreamListElementCallback); RendererModuleUI.s_VisualizePivot = EditorPrefs.GetBool("VisualizePivot", false); } }
protected override void Init() { if (this.m_CastShadows == null) { this.m_CastShadows = base.GetProperty0("m_CastShadows"); this.m_ReceiveShadows = base.GetProperty0("m_ReceiveShadows"); this.m_Material = base.GetProperty0("m_Materials.Array.data[0]"); this.m_TrailMaterial = base.GetProperty0("m_Materials.Array.data[1]"); this.m_SortingOrder = base.GetProperty0("m_SortingOrder"); this.m_SortingLayerID = base.GetProperty0("m_SortingLayerID"); this.m_RenderMode = base.GetProperty0("m_RenderMode"); this.m_MinParticleSize = base.GetProperty0("m_MinParticleSize"); this.m_MaxParticleSize = base.GetProperty0("m_MaxParticleSize"); this.m_CameraVelocityScale = base.GetProperty0("m_CameraVelocityScale"); this.m_VelocityScale = base.GetProperty0("m_VelocityScale"); this.m_LengthScale = base.GetProperty0("m_LengthScale"); this.m_SortingFudge = base.GetProperty0("m_SortingFudge"); this.m_SortMode = base.GetProperty0("m_SortMode"); this.m_NormalDirection = base.GetProperty0("m_NormalDirection"); this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(base.serializedObject); this.m_RenderAlignment = base.GetProperty0("m_RenderAlignment"); this.m_Pivot = base.GetProperty0("m_Pivot"); this.m_Meshes[0] = base.GetProperty0("m_Mesh"); this.m_Meshes[1] = base.GetProperty0("m_Mesh1"); this.m_Meshes[2] = base.GetProperty0("m_Mesh2"); this.m_Meshes[3] = base.GetProperty0("m_Mesh3"); List <SerializedProperty> list = new List <SerializedProperty>(); for (int i = 0; i < this.m_Meshes.Length; i++) { if (i == 0 || this.m_Meshes[i].objectReferenceValue != null) { list.Add(this.m_Meshes[i]); } } this.m_ShownMeshes = list.ToArray(); this.m_UseCustomVertexStreams = base.GetProperty0("m_UseCustomVertexStreams"); this.m_VertexStreamMask = base.GetProperty0("m_VertexStreamMask"); RendererModuleUI.s_VisualizePivot = EditorPrefs.GetBool("VisualizePivot", false); } }
protected override void Init() { if (this.m_CastShadows != null) { return; } this.m_CastShadows = this.GetProperty0("m_CastShadows"); this.m_ReceiveShadows = this.GetProperty0("m_ReceiveShadows"); this.m_Material = this.GetProperty0("m_Materials.Array.data[0]"); this.m_SortingOrder = this.GetProperty0("m_SortingOrder"); this.m_SortingLayerID = this.GetProperty0("m_SortingLayerID"); this.m_RenderMode = this.GetProperty0("m_RenderMode"); this.m_MinParticleSize = this.GetProperty0("m_MinParticleSize"); this.m_MaxParticleSize = this.GetProperty0("m_MaxParticleSize"); this.m_CameraVelocityScale = this.GetProperty0("m_CameraVelocityScale"); this.m_VelocityScale = this.GetProperty0("m_VelocityScale"); this.m_LengthScale = this.GetProperty0("m_LengthScale"); this.m_SortingFudge = this.GetProperty0("m_SortingFudge"); this.m_SortMode = this.GetProperty0("m_SortMode"); this.m_NormalDirection = this.GetProperty0("m_NormalDirection"); this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(this.serializedObject, false); this.m_RenderAlignment = this.GetProperty0("m_RenderAlignment"); this.m_Pivot = this.GetProperty0("m_Pivot"); this.m_Meshes[0] = this.GetProperty0("m_Mesh"); this.m_Meshes[1] = this.GetProperty0("m_Mesh1"); this.m_Meshes[2] = this.GetProperty0("m_Mesh2"); this.m_Meshes[3] = this.GetProperty0("m_Mesh3"); List <SerializedProperty> serializedPropertyList = new List <SerializedProperty>(); for (int index = 0; index < this.m_Meshes.Length; ++index) { if (index == 0 || this.m_Meshes[index].objectReferenceValue != (Object)null) { serializedPropertyList.Add(this.m_Meshes[index]); } } this.m_ShownMeshes = serializedPropertyList.ToArray(); }
protected override void Init() { if (m_CastShadows != null) { return; } if (s_Texts == null) { s_Texts = new Texts(); } m_CastShadows = GetProperty0("m_CastShadows"); m_ReceiveShadows = GetProperty0("m_ReceiveShadows"); m_MotionVectors = GetProperty0("m_MotionVectors"); m_Material = GetProperty0("m_Materials.Array.data[0]"); m_TrailMaterial = GetProperty0("m_Materials.Array.data[1]"); m_SortingOrder = GetProperty0("m_SortingOrder"); m_RenderingLayerMask = GetProperty0("m_RenderingLayerMask"); m_SortingLayerID = GetProperty0("m_SortingLayerID"); m_RenderMode = GetProperty0("m_RenderMode"); m_MinParticleSize = GetProperty0("m_MinParticleSize"); m_MaxParticleSize = GetProperty0("m_MaxParticleSize"); m_CameraVelocityScale = GetProperty0("m_CameraVelocityScale"); m_VelocityScale = GetProperty0("m_VelocityScale"); m_LengthScale = GetProperty0("m_LengthScale"); m_SortingFudge = GetProperty0("m_SortingFudge"); m_SortMode = GetProperty0("m_SortMode"); m_NormalDirection = GetProperty0("m_NormalDirection"); m_Probes = new RendererEditorBase.Probes(); m_Probes.Initialize(serializedObject); m_RenderAlignment = GetProperty0("m_RenderAlignment"); m_Pivot = GetProperty0("m_Pivot"); m_Meshes[0] = GetProperty0("m_Mesh"); m_Meshes[1] = GetProperty0("m_Mesh1"); m_Meshes[2] = GetProperty0("m_Mesh2"); m_Meshes[3] = GetProperty0("m_Mesh3"); List <SerializedProperty> shownMeshes = new List <SerializedProperty>(); for (int i = 0; i < m_Meshes.Length; ++i) { // Always show the first mesh if (i == 0 || m_Meshes[i].objectReferenceValue != null) { shownMeshes.Add(m_Meshes[i]); } } m_ShownMeshes = shownMeshes.ToArray(); m_MaskInteraction = GetProperty0("m_MaskInteraction"); m_EnableGPUInstancing = GetProperty0("m_EnableGPUInstancing"); m_UseCustomVertexStreams = GetProperty0("m_UseCustomVertexStreams"); m_VertexStreams = GetProperty0("m_VertexStreams"); m_VertexStreamsList = new ReorderableList(serializedObject, m_VertexStreams, true, true, true, true); m_VertexStreamsList.elementHeight = kReorderableListElementHeight; m_VertexStreamsList.headerHeight = 0; m_VertexStreamsList.onAddDropdownCallback = OnVertexStreamListAddDropdownCallback; m_VertexStreamsList.onCanRemoveCallback = OnVertexStreamListCanRemoveCallback; m_VertexStreamsList.drawElementCallback = DrawVertexStreamListElementCallback; s_VisualizePivot = EditorPrefs.GetBool("VisualizePivot", false); }
protected void InitializeProbeFields() { this.m_Probes = new RendererEditorBase.Probes(); this.m_Probes.Initialize(base.serializedObject); }