Execution Error: Specified method is not supported
- This topic has 1 reply, 2 voices, and was last updated 1 week, 3 days ago by .
- You must be logged in to reply to this topic.
Welcome to Portals United! / Forums / Troubleshooting / Execution Error: Specified method is not supported
Hi,
I get several time the following error:
Execution Error: Specified method is not supported
A: here I am trying to call:
var o = JsonConvert.DeserializeObject(myCustomClassString);
with using Vector3
instead of MyCustomClass
it works.
B: here I am trying to find all objects of type MyCustomClass : DataComponentBase
. Both versions doesn’t work:
_autoAdaptiveObjects = FindObjectsOfType(true);
_autoAdaptiveObjects = FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None);
with using Transform
instead of MyCustomClass
it works.
Any idea how to solve this issue?
try this, call
var components = FindObjectsOfType<DataComponentBase();
and then foreach
if (component is MyCustomClass)
{
//do something with it
}
That might work.