Skip to content

Commit

Permalink
[Port] [6000.0] Mark a shader graph dirty when 'Support VFX Graph' is…
Browse files Browse the repository at this point in the history
… toggled

Mark a shader graph dirty when toggling some checkboxes in its Graph Settings.
- [URP] 'Support VFX Graph' checkbox
- [HDRP] 'Support VFX Graph' checkbox
- [HDRP] 'Support High Quality Line Rendering' checkbox
  • Loading branch information
svc-reach-platform-support authored and Evergreen committed Oct 31, 2024
1 parent d4c6eb8 commit eb2b453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ public override void GetPropertiesGUI(ref TargetPropertyGUIContext context, Acti
const string k_VFXToggleTooltip = "When enabled, this shader can be assigned to a compatible Visual Effect Graph output.";
context.AddProperty("Support VFX Graph", k_VFXToggleTooltip, 0, m_SupportVFXToggle, (evt) =>
{
registerUndo("Change Support VFX Graph");
m_SupportVFX = m_SupportVFXToggle.value;
onChange();
});
Expand All @@ -253,6 +254,7 @@ public override void GetPropertiesGUI(ref TargetPropertyGUIContext context, Acti
m_SupportLineRenderingToggle = new Toggle("") { value = m_SupportLineRendering };
context.AddProperty("Support High Quality Line Rendering", "", 0, m_SupportLineRenderingToggle, (evt) =>
{
registerUndo("Change Support High Quality Line Rendering");
m_SupportLineRendering = m_SupportLineRenderingToggle.value;
onChange();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ public override void GetPropertiesGUI(ref TargetPropertyGUIContext context, Acti
m_SupportVFXToggle = new Toggle("") { value = m_SupportVFX };
context.AddProperty("Support VFX Graph", m_SupportVFXToggle, (evt) =>
{
registerUndo("Change Support VFX Graph");
m_SupportVFX = m_SupportVFXToggle.value;
});
}
Expand Down

0 comments on commit eb2b453

Please sign in to comment.