Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Semantic issues in latest EveryplayUnity.mm (iOS)

Discussion in 'Unity Everyplay' started by efge, Mar 26, 2015.

  1. efge

    efge

    Joined:
    Dec 13, 2007
    Posts:
    59
    Just updated to "1950-1310 - Mar 24th 2015" and now got 2 semantic issues in Xcode:
    Cast from pointer to smaller type 'int' loses information
    (EveryplayFaceCamSetTargetTexture and EveryplaySetThumbnailTargetTexture)

    Thanks,
    FF
     
  2. surathunity3d

    surathunity3d

    Unity Technologies

    Joined:
    Sep 30, 2014
    Posts:
    128
    Hi @efge and others,

    Known issues, we will fix this as soon as we are ready to push the next update.
    This issue only happens when building with x64 binary, so when building 32bit + IL2CPP doesn't trigger the build error.
    In the meanwhile, please follow the following steps.

    1. Open Assets/Plugins/Everyplay/iOS/EveryplayUnity.mm
    2. Search for "reinterpret_cast" (There should be 2 instances: Line #439 and Line #495)
    3. Replace those 2 lines ...
    From:
    [[[EveryplaysharedInstance] capture] setThumbnailTargetTextureId: reinterpret_cast<int>(texturePtr)];
    To:
    [[[Everyplay sharedInstance] faceCam] setTargetTextureId: static_cast<int>(reinterpret_cast<uintptr_t>(texturePtr))];
    4. Build your awesome game.

    Hope this helps!

    Cheers
    Surath
     
  3. infosekr

    infosekr

    Joined:
    Jul 12, 2013
    Posts:
    45
    It took a while to find this blog post. It would be nice if important issues like this were listed somewhere on the Everyplay site.
     
  4. surathunity3d

    surathunity3d

    Unity Technologies

    Joined:
    Sep 30, 2014
    Posts:
    128
    Hi @infosekr

    Thanks for your feedback.
    We will addressing such ongoing known issues in a separate section in the Documentation in the future.

    This is a temp. issue which will be fixed in the following SDK update.
    To keep this thread visible, I have pinned it so that it is the 1st thread in Everyplay section.

    I hope the solution helped you in resolving the issue.

    Cheers
    Surath
     
    infosekr likes this.
  5. surathunity3d

    surathunity3d

    Unity Technologies

    Joined:
    Sep 30, 2014
    Posts:
    128
    The fix for this is now released: Unity SDK version 1960-1320 on Apr 16th 2015
     
unityunity