RemovePostProcessMaterial
From Onset Developer Wiki
Description
Removes a post process material that was previously added with AddPostProcessMaterial
Syntax
RemovePostProcessMaterial(SlotName)
Parameters
- SlotName
Name of the slot to remove. AddPostProcessMaterial.
Return Value
- Returns true on success.
Example
local added = false
function OnKeyPress(key)
if key == "J" then
added = not added
if added then
AddPostProcessMaterial("MyPPMaterial", UMaterialInterface.LoadFromAsset("/MyMod/Material/M_Cellshading"))
else
RemovePostProcessMaterial("MyPPMaterial")
end
end
end
AddEvent("OnKeyPress", OnKeyPress)
See also
__EDIT_ME__