Beispiel #1
0
 // Constructor
 public PresentLayer(RendererLayer layer, BlendingMode blending)
 {
     this.layer        = layer;
     this.blending     = blending;
     this.alpha        = 1f;
     this.antialiasing = false;
 }
Beispiel #2
0
 // Constructor
 public PresentLayer(RendererLayer layer)
 {
     this.layer        = layer;
     this.blending     = BlendingMode.None;
     this.alpha        = 1f;
     this.antialiasing = false;
 }
Beispiel #3
0
 // Constructor
 public PresentLayer(RendererLayer layer, BlendingMode blending, float alpha, bool antialiasing)
 {
     this.layer        = layer;
     this.blending     = blending;
     this.alpha        = alpha;
     this.antialiasing = antialiasing;
 }
Beispiel #4
0
        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);
            }
        }