运行示例场景时,BinaryReader读取报错“Failed to read past end of stream”
info.eventList = new List<AnimationEvent>(); for (int j = 0; j != evtCount; ++j) { AnimationEvent evt = new AnimationEvent(); evt.function = reader.ReadString(); evt.floatParameter = reader.ReadSingle(); evt.intParameter = reader.ReadInt32(); evt.stringParameter = reader.ReadString(); evt.time = reader.ReadSingle(); evt.objectParameter = reader.ReadString(); info.eventList.Add(evt); }
操作顺序:CustomEditor->AssetBundle->BuildAssetBundle 绑定prefab上AnimationInstancing中的prototype为自身。 运行场景
happens with me too
me too, why so many errors......
Delete the Dude_low.bytes file from Assets\AnimationTexture, then delete animationTexture, animationTexture.manifest, assetBundle & assetBundle.manifest in Assets\AssetBundle & Assets\StreamingAssets\AssetBundle. Leave the folder structure intact.
Generate the assets again from (Toolbars) AnimationInstancing > Animation Generator, create the Dude_low prefab from the prototype in scene with AnimationInstancing attached. Select "Generate".
Wait a little, then generate the AssetBundle from (Toolbars) Custom Editor > AssetBundle > BuildAssetBundle. Wait longer until it completes.
Make sure the Dude_low.prefab is assigned into Spawner.cs script in scene and try to run it. Pay attention to any errors along the way.