Can I get keyword list from a shader or a material, contens even if those keywords not enabled?,Can I get keywords list form a shader
Actually I'm writing a custom inspector that can show a list of toggles to enable/disable some feature. And those features use multi_compile to switch in shader. I want a way to check if a shader keywrod exist (not "if enabled" API), so I can show the toggle, else don't show toggle. So my problem is, how can I check "keywrod exist"?,
I think I had a plan, using follow steps: 1.use "Is$$anonymous$$eywordEnabled" API, check if the keyword that I concern is enabled, and remember the result named "old" 2.use "Enable$$anonymous$$eyword" API, then check if enabled again, remember it with a bool named "enabled" 3.use "Disable$$anonymous$$eyword" API, then check if enabled again, remember it with a bool named "disabled" 4.if "enabled" is true, and "disabled" is false, then exist, else not exist 5.don't forget revert state use "old"