// Constructor public PresentLayer(RendererLayer layer, BlendingMode blending) { this.layer = layer; this.blending = blending; this.alpha = 1f; this.antialiasing = false; }
// Constructor public PresentLayer(RendererLayer layer) { this.layer = layer; this.blending = BlendingMode.None; this.alpha = 1f; this.antialiasing = false; }
// Constructor public PresentLayer(RendererLayer layer, BlendingMode blending, float alpha, bool antialiasing) { this.layer = layer; this.blending = blending; this.alpha = alpha; this.antialiasing = antialiasing; }
public override void OnInspectorGUI() { RendererLayer rendererLayer = (RendererLayer)target; EditorGUILayout.Space(); if (Enum.TryParse <RendererLayer.UiSortLayer>(rendererLayer.SortingLayer, out var selected)) { rendererLayer.SortingLayer = EditorGUILayout.EnumPopup("Sorting Layer", selected).ToString(); } rendererLayer.OrderInLayer = EditorGUILayout.IntField("Order In Layer", rendererLayer.OrderInLayer); if (!rendererLayer.IsTransparentQueue()) { EditorGUILayout.HelpBox("Render Queue is not 'Transparent' or not equal 3000, it may not desired effect.", MessageType.Warning); } }