Execution Error: Specified method is not supported

Welcome to Portals United! / Forums / Troubleshooting / Execution Error: Specified method is not supported

  • Author
    Posts
  • April 7, 2025 at 12:03 pm #1436

    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?

    April 8, 2025 at 3:10 pm #1437

    try this, call

    var components = FindObjectsOfType<DataComponentBase();

    and then foreach


    if (component is MyCustomClass)
    {
    //do something with it
    }

    That might work.

  • You must be logged in to reply to this topic.