Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Build failure when calling methods with System.Type.IsSubclassOf()

Discussion in 'VR' started by Royee, Oct 13, 2016.

  1. Royee

    Royee

    Joined:
    Aug 6, 2016
    Posts:
    12
    I got a build failure when calling methods with System.Type.IsSubclassOf(type),what can I do for it?
     
  2. KarlosZafra

    KarlosZafra

    Joined:
    Sep 8, 2016
    Posts:
    18
    what build error did you get?
     
  3. Royee

    Royee

    Joined:
    Aug 6, 2016
    Posts:
    12
    upload_2016-10-13_14-37-14.png
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    Either switch to IL2CPP scripting backend, or don't use that method, or find a compatible version with .NET Scripting backend. That method does not exist there.
     
  5. Royee

    Royee

    Joined:
    Aug 6, 2016
    Posts:
    12
    Does the WindowsStore Platform do not support IL2CPP yet?
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    It does support it.
     
  7. Royee

    Royee

    Joined:
    Aug 6, 2016
    Posts:
    12
    Okay, I have solved it。
    Thanks。