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. Dismiss Notice

External Texture Problem

Discussion in 'iOS and tvOS' started by Lanre, Nov 7, 2015.

  1. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,960
    Hi guys.

    I was experimenting with the iOS external texture package off the asset store. Turns out you can do just about nothing with an external texture apart from view it (Can't encode to png or jpeg, can't call get pixels, and so on). When GetPixels is called, Xcode logs 'Texture '' has no data'. Likewise, calling any encode to binary array method yield 'Can't find image pointer'. I'd like to hear a Unity Dev's take on this.

    Oh and calling Apply does nothing, already checked out of curiosity.
     
  2. Tuitive

    Tuitive

    Joined:
    Mar 25, 2013
    Posts:
    36
    Anyone know the answer to this? I'm having the same problem. (That this question remains unanswered since 2015 doesn't sound promising, but I thought I'd ask anyway.)
     
  3. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,960
    So textures reside in two places: in system memory and in graphics memory. The former is where calls like GetPixels can access while the latter is what lets a texture be displayed or rendered. External textures reside solely in graphic memory; there isn't a backing data store resident in sysmem.