Raymarcher Attributes - RMAttributes
Namespace: Raymarcher.Attributes
Raymarcher features a custom attributes library that enhances the Raymarcher in the Unity editor.
You are free to use this library to enhance your editor visuals and create conditional fields with dynamic backgrounds.
[ShowIf(string fieldNames, int fieldValue, bool addIndentLevel = true, bool notEquals = false, bool setFieldToOppositeValueIfConditionNotMet = false, bool orOperator = true, float backColorPanelOpacity = 0, bool backColorPanelAdjustToTopField = false)]
[ShowIf("useDithering|useSSAO", 1)]
[ReadOnly]
[Button(string displayText, string methodNameWithNoParameter)]
[Button("Destroy Object", "DestroyObject")]
[DrawBackgroundPanel(float backColorPanelOpacity, float backColorContentPanelOpacity = 0)]
[DrawBackgroundPanel(0.8f, 1f)]
[Required]
[Dependency(string dependentOn, string fieldToHighlight, Type typeToSelect, bool plural = false, string dependencySubject = "global feature")]
[Dependency("Fresnel Effect", "fresnelEffect", typeof(RMRenderMaster))]