Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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,156
    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,156
    It does support it.
     
  7. Royee

    Royee

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