Search Issue Tracker

By Design

Votes

0

Found in

2017.1.1f1

Issue ID

959530

Regression

No

[iOS] PlayableAsset returns a null when loading with UnityWebRequest.GetAssetBundle

iOS

-

Steps to reproduce:
1) Open iOSTimelineAsset Project
2) Go to Window -> AssetBundleBrowser -> Build AssetBundle for iOS
3) Upload AssetBundle to a server
4) Open iOSTimelineLoad Project
5) Change the "www" value of GameController.cs to the AssetBundle's address in the server
6) Build and run for iOS
7) Tap "Button"
Expected result: cube starts jumping
Actual result: error "PlayableAsset returned a null Playable on Instantiate"

Reprudced with: iPad3 Mini (iOS 10.3.2)
Did not reproduce with: LG Nexus 5X (Android 8.0)

Reproduced on: 2017.1.2p2, 2017.3.0b2

________
IL2CPP platforms code stripping is always on, so anything that is not used is stripped or not included in the final build. The issue is that if you don't use certain feature in your game, only in asset bundle, that feature is not included and asset bundle will not work nicely.

Comments (6)

  1. seltar_

    May 07, 2018 11:04

    Reproduced on iPhone 6s iOS 11.3.1
    Using Unity 2018.1.0f2 and Unity 2018.2.0b3

    The AssetBundle does contain the PlayableAsset, since loading it in the editor works fine.
    I've also included a DummyTimeline that gets removed on load, to ensure Timeline functionality will be exported with the app.

    Tried with Strip Engine Code off / on.

  2. NinJa

    Feb 07, 2018 03:09

    PlayableAssets under *.playable are all lost after packed into asset bundle.
    All external assets work.

    Used 2017.1.0f3

  3. NinJa

    Feb 07, 2018 03:09

    PlayableAssets under *.playable are all lost after packed into asset bundle.
    All external assets work.

    Used 2017.1.0f3

  4. NinJa

    Feb 07, 2018 03:09

    PlayableAssets under *.playable are all lost after packed into asset bundle.
    All external assets work.

    Used 2017.1.0f3

  5. MartinG

    Feb 02, 2018 09:51

    Also testet with File.ReadAllBytes and get the AssetBundle from bytes. AssetBundle is loaded, all graphics are displayed, but the Timeline does not play:

    PlayableAsset returned a null Playable on Instantiate

    PlayableGraph being evaluated with no outputs. Playables will not be updated

    iOS and AssetBundle with Timeline/PlayableDirector is not working.

  6. MartinG

    Feb 02, 2018 09:31

    Reproduced on iPad 4 iOS 10.3.3
    Reproduced on iPhone 5s iOS 10.2.1
    Used Unity 2017.3.0f3

    No error on Android Devices

    IL2CPP Code Stripping was on and off. Both testet, bug everytime. The Timeline was known and exported to the App. Because DummyTimeLines were included for testing.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.