Loading "TestProject2" into vanilla Unity 2020.1.0b5.3485 fails. Assertions, missing items
Loading "TestProject2" into vanilla Unity 2020.1.0b5.3485 fails. Assertions, missing items.
In Unity 2019.1.0f2, I get "Has a higher SerializedFile version" error on load, so it SHOULD work with recent versions of Unity??
(tried on current git head commit #857936dacf394)
In the scene, the 'Characters/U_Character_REF' shows a warning that it is missing an animation controller. Was this forgotten in the upload? Furthermore, in the 'Animation Instancing' script on the "Dude_low_instancing" used with the spawner, the 'prototype' field is empty.
The errormessages, from first:
Unable to open archive file: D:/Animation-Instancing/Assets/StreamingAssets/AssetBundle/animationtexture
Failed to read data for the AssetBundle 'animationtexture'.
The prototype is NULL. Please select the prototype first. UnityEngine.Debug:LogError(Object) AnimationInstancing.AnimationInstancing:InitializeAnimation() (at Assets/AniInstancing/Scripts/AnimationInstancing.cs:227) AnimationInstancing.AnimationInstancingMgr:AddInstance(GameObject) (at Assets/AniInstancing/Scripts/AnimationInstancingMgr.cs:249) AnimationInstancing.AnimationInstancing:Start() (at Assets/AniInstancing/Scripts/AnimationInstancing.cs:179)
Assertion failed UnityEngine.Debug:Assert(Boolean) AnimationInstancing.AnimationInstancing:InitializeAnimation() (at Assets/AniInstancing/Scripts/AnimationInstancing.cs:229) AnimationInstancing.AnimationInstancingMgr:AddInstance(GameObject) (at Assets/AniInstancing/Scripts/AnimationInstancingMgr.cs:249) AnimationInstancing.AnimationInstancing:Start() (at Assets/AniInstancing/Scripts/AnimationInstancing.cs:179) <<<<
These keep repeating for each attempted spawn of a figure.
It doesn't work in 2018 or 2019 either. In addition to the errors you mentioned, there is a missing script on U_Character_REF (not sure what it's is supposed to be).
Good news! I figured out how to get it working... at least the "crowd simulation scene" anyway. Some of the info I got from the "closed issues" section. If possible, don't close this issue so that other people can see this and understand how to get it fixed.
-
Open the crowd simulation scene.
-
Click on U_Character_REF in the scene hierarchy. It has a missing component script. remove it (it doesn't seem to be needed).
-
Click on the "Dude_low_instancing" gameobject. Under the script component "Animation Instancing (Script)" assign the "Dude_low_instancing" prefab to the Prototype slot on the script component (just drag it from the hierarchy).
-
While still clicked on "Dude_low_instancing", the Controller is unassigned. Click on the little circle next to it and choose "IdleRunJump2Bake". I dunno if it's supposed to be that... I tried "IdleRunJump" and it seemed to work as well.
-
You should have a menu item called "Custom Editor". Click this, and then choose "BuildAssetBundle".
-
You should have a menu item called "Animation Instancing". Click that and a window will pop up. Drag "Dude_low_instancing" from the scene hierarchy into the "Asset to Generate" field and press the "Generate" button at the bottom.
Hopefully you can now play the demo!!