Update: The shader name disappeared from the list of available but the following works:
Shader desiredShader = allShaders.FirstOrDefault(s => s.name == "UI/Default");
I got this working with a Unity shader:
Shader[] allShaders = UnityEngine.Resources.FindObjectsOfTypeAll<Shader>();
Shader desiredShader = allShaders.FirstOrDefault(s => s.name == "Custom/Flat");
if (desiredShader != null)
{
material = new Material(desiredShader);
material.color = new...
I managed to get this working with a script that was pretty much just this:
_param = new JSONStorableBool("Left Hand Disable", false, val => {
if(val) {
UserPreferences.singleton.motionHandModelControl.leftHandChoice = "None";
} else {...
Sounds great. I would be curious to see if I could make one for my specific case in the meantime. Can you direct me to any existing simple plugin that does something similar I could use as a template?
Thanks, I was hoping there was an existing GUI thing I was missing. Can you direct me to any existing plugin that does something similar I could use as a template? This would be my first foray into coding something for VAM.