CVROSC
CVROSC copied to clipboard
Bools
Bools seem to be ignored, but it's working properly when I send bools as float (0.0/1.0). For compatability with VRC tools, maybe it's worth to autoconvert bool to float?
Confirming this. Both Bools and Ints are ignored in the switch case. Since there's no code but the type is still specified it doesn't error out in console so there's no indication that the data is not getting passed.
{
switch (Data)
{
case bool b:
case int i:
case float f: [...]
}
}
I forgot to change the cast to an actual convert function!
I'll replace it with Convert.ToSingle(Data);
now.
Will this work with non-float parameters in Unity as well or does the target parameter in unity have to be a float? Sorry if this is a dumb question. Haven't had time to do a full review of the code yet.
I am planning to rework my animator to floats regardless to take advantage of the larger parameter memory allowance to do some things I couldn't before, but it would be nice to have my existing animator working as a stopgap while I'm making those changes.
It should work anyway, since any object (integer, boolean, double, even float itself lol) passed to Convert.ToSingle will be converted on runtime.
1.6 should have the fix in place, let me know if it works.