Animation-Instancing icon indicating copy to clipboard operation
Animation-Instancing copied to clipboard

运行示例场景时,BinaryReader读取报错“Failed to read past end of stream”

Open longtimedcf opened this issue 7 years ago • 3 comments

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为自身。 运行场景

longtimedcf avatar Sep 04 '18 08:09 longtimedcf

happens with me too

Athomield avatar Oct 15 '18 17:10 Athomield

me too, why so many errors......

MonkeyTomato avatar Oct 26 '18 09:10 MonkeyTomato

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.

ursasenior avatar Nov 12 '18 14:11 ursasenior