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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Third party asset doesn't run in il2cpp but run fine in mono backend scripting

Discussion in 'Editor & General Support' started by AGS8884, Feb 8, 2023.

  1. AGS8884

    AGS8884

    Joined:
    Jun 16, 2017
    Posts:
    2
    Hi, I've been build my project using third party asset https://github.com/sebheron/TikTokLiveSharp, when I use mono everything works normally all comments shows up. But when I use il2cpp, comments doesn't show up anymore. I'm trying to use preserve the attribute, in case there's a possibility of script stripping, but it doesn't help at all. Any idea what's wrong with this?
     
    Last edited: Feb 8, 2023
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,951
    Does that package use System.Diagnostics.Process? I know IL2CPP doesn't implement this feature.

    Otherwise, look in the device runtime logs for clues and exceptions.
     
  3. AGS8884

    AGS8884

    Joined:
    Jun 16, 2017
    Posts:
    2
    It does, they use System.Diagnostics. Is there any solution for Android/IOS build?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,951
    I think there might be but I haven't done it. You might check over in the Platforms / Android group:

    https://forum.unity.com/forums/android.30/

    There might even be a simple drop-in solution, but I'm not sure.