Search Unity

  1. 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

Is Caching supported ? The name `Caching' does not exist in the current context

Discussion in 'PSM' started by treygner, Jun 20, 2014.

  1. treygner

    treygner

    Joined:
    Apr 15, 2013
    Posts:
    15
    Hello,

    I am trying the PSM to port our current project. But when I build for the PlaystationMobile target, I get this compile error , everywhere we use the "Caching" API. :

    error CS0103: The name `Caching' does not exist in the current context


    This does not happen when building from the editor, or an other target.

    Is there anything wrong with the Caching API and the PSM deployment ?

    (I am using the version 4.3.4f1)
     
  2. StudentGameDev

    StudentGameDev

    Joined:
    Aug 27, 2012
    Posts:
    7
    I believe it's for Pro only, since Caching handles assetbundles.

    I found an old forum post on it, back from 2011, so I could be mistaken.
     
  3. PeteD

    PeteD

    Joined:
    Jul 30, 2013
    Posts:
    71
    Certainly creating asset bundles is pro only however, surely PSM should have all features enabled. It seems odd that, given PSM is a free resource paid for by Sony, it still has a separation between pro and free features based on your personal Unity user license. As far as I am aware there is no provision to obtain a pro version of Unity PSM.

    Is this just an oversight by Unity?
     
  4. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    This is not entirely correct. Unity for PSM has a split between basic/advanced. But the Unity for PSM add-on itself doesn't cost anything.
    If you already use Unity Free you get Unity for PSM 'basic' for free.
    If you already own a Unity Pro license you get Unity for PSM 'advanced' for free.

    That said - I'm not sure that is the root to this problem.

    Possibly - We will have to investigate it.
     
  5. treygner

    treygner

    Joined:
    Apr 15, 2013
    Posts:
    15
    I have tested with the trial license which should be "Pro".

    So I think there is a problem, unless the trial is not considered "Pro" by Unity for PSM ?
     
  6. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    Hi,
    I've had a look at the Caching API and the cached asset bundle loading through WWW : turns out this part is currently not available with PSM.
    But we plan to add it - it will be available in the future.
     
  7. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    Um..how does IAP with new downloadable content work in this case?
    I'm pretty uncomfortable doing a capcom i.e. all the content in the app and then having people pay to unlock what they effectively already have. That may just be my own personal creepout zone though.
     
  8. treygner

    treygner

    Joined:
    Apr 15, 2013
    Posts:
    15
    Thanks for the answer.
    Do you have any idea of the delay ?
     
  9. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    Unless I'm mistaken - you can still download and add asset bundle content. It's just the "built-in" caching that is currently disabled for PSM.
     
unityunity