PlayableDirect cannot load PlayableAsset (PlayableDirector.playable) when used in an AssetBundle
Oct 15, 2018
To reproduce:
1. Open attached project "2018.2 Tests.zip"
2. Open "main.unity" scene
3. Build for iOS device
4. Deploy the Xcode project to an iOS device
5. Observe the Xcode console "PlayableAsset returned a null Playable on Instantiate"
Expected result: "PlayableAsset returned a null Playable on Instantiate" is not thrown in the Xcode console
Actual result: getting "PlayableAsset returned a null Playable on Instantiate" error in Xcode console
Reproduced on:
2018.2.13f1 2018.3.0b6
Devices reproduced on:
iPhone 6s Plus iOS 10.3.2
iPhone 7 Plus iOS 12.0
Notes:
Can't build to 2019.1.0a5, getting errors in the console.
Crashes on 2017.4.13f1 (log in the edit)
Uncommenting line 4, line 18, and lines 55 - 67 in "LoadigProcess.cs" script doesn't show the error.
Adding the fixed script "LoadingProcess.cs"
-
Resolution Note (fix version 2019.1):
Resolving by design, as the problem is exactly as stated, timeline code is getting stripped. The problem is the same as 959530. For this particular user, the correct entry for link.xml is
<assembly fullname="UnityEngine.Timeline">
<type fullname="UnityEngine.Timeline.*" preserve="all"/>
</assembly>