Search Unity

(IL2CPP) Error: called non-existent method System.Int64 System.IO.Stream::get_Length()

Discussion in 'Scripting' started by FTGXR10, Oct 14, 2020.

  1. FTGXR10

    FTGXR10

    Joined:
    Nov 27, 2019
    Posts:
    7
    Unity Version: 2019.4.8f1
    Scripting Backend: IL2CPP
    Platform: UWP

    Issue is that any method/field from System.IO.Stream is not consumable getting non-existent method exception. I am using stream type inside my custom assembly which is already specified as 'preserved' in link.xml. Please help me to resolve this.
     
    Last edited: Oct 14, 2020
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Can you provide the full stack trace for the error message?