[DOCS] add documentation for Material.clearVariants#8089
[DOCS] add documentation for Material.clearVariants#8089aidinabedi wants to merge 1 commit intoplaycanvas:mainfrom
Conversation
|
What use case do you have that needs this to be public? |
|
Did not know about this method, and it actually pretty useful in case when updating global shader chunks, and need to force material shader updates. |
@mvaligursky We need to call it in cases when we inherit |
In this case, you just call |
| } | ||
|
|
||
| /** | ||
| * Clears all cached shader variants from the material and mesh instances that reference it. |
There was a problem hiding this comment.
we should add @protected tag on it - allowing derived classes to use it, but not making a public API
Description
This PR documents the method
clearVariantsinMaterial.Checklist