unity3d-jp / StreamingImageSequence

A package for playing sequential image sequences in Unity Timeline
Other
282 stars 39 forks source link

Windows Build fails to play image sequence #463

Closed Tianpeng2333 closed 1 year ago

Tianpeng2333 commented 1 year ago

Hi there, my unity editor version is 2021.3.10f1, and the Streaming Image Sequence version is 0.15.3-preview, Timeline version is 1.6.4. This package works perfectly in the editor, but builds for Windows don't render the image sequence. btw: I've put my image into the StreamingAssets folder.

More Info:

sindharta commented 1 year ago

Just confirmed that Windows build works using the StreamingImageSequence~ project in this repository. Can you please attach your project here, or any sample that we can look to reproduce this ?

Tianpeng2333 commented 1 year ago

Just confirmed that Windows build works using the StreamingImageSequence~ project in this repository. Can you please attach your project here, or any sample that we can look to reproduce this ?

I just tried to use the StreamingImageSequence~ project in the repository to rebuild my project and it also doesn't work. Here is a test project (development build for Windows Intel x64 can be found in the /Bin folder): https://peng-files.oss-cn-beijing.aliyuncs.com/StreamingImageSequenceTest.zip

It works pretty well in the editor: EditorView

But it doesn't work after compiling: GameView

sindharta commented 1 year ago

Your sample project works for me. Perhaps the clip is too short that it finishes as soon as Unity starts. To test this, try setting the animation extrapolation property to Loop.

image

Tianpeng2333 commented 1 year ago

Your sample project works for me. Perhaps the clip is too short that it finishes as soon as Unity starts. To test this, try setting the animation extrapolation property to Loop.

image

I've changed the animation extrapolation property to loop, and the director component's wrap mode to loop. But it still can't play in the runtime.
To make sure it's not a problem with Playable Director or Timeline, I added another audio source track to Timeline. In the editor both the sequence images and the audio play perfectly, but in the runtime only the audio is playing. image

I'm using editor version 2021.3.10f1 instead of 2020.3.40f1 and I don't know if this will cause any problems.

sindharta commented 1 year ago

That is curious. I am also using 2021.3.10f1 (your project as it is). Let me try in another machine.

sindharta commented 1 year ago

Just tested in another machine and it still works. Do you have any error logs ? And can you try in another machine ?

https://user-images.githubusercontent.com/7379311/192968614-eddd7a58-70c7-45fc-aa8f-2e2f542a33d5.mp4

Tianpeng2333 commented 1 year ago

I found the cause of the problem. On my computer, my project directory contains Chinese characters. When I moved the compiled program to a directory consisting of only numbers and English letters, it worked fine. I think the problem may be due to the support for UTF-8 encoding that causes the program to not read the Streaming Assets in the Chinese directory. Thank you for your continued help!

sindharta commented 1 year ago

That is good info. Thank you for the feedback