Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

尝试在高版本Unity中运行未能正确显示 #10

Open
fraisty opened this issue Feb 9, 2025 · 2 comments
Open

尝试在高版本Unity中运行未能正确显示 #10

fraisty opened this issue Feb 9, 2025 · 2 comments

Comments

@fraisty
Copy link

fraisty commented Feb 9, 2025

您好,本地尝试用高版本unity编译使用一下时,发现出现在Scene窗口能正确显示,而在Game窗口没有任何显示的情况:

Image

Image

使用的Unity版本包括2022和6000,都未能正确显示

另外运行时会发现出现以下报错,错误和堆栈相互矛盾,但是搜了一下应该不会太影响显示:
Live2D Cubism 2.1 / RenderMode.DrawMeshNow Error
live2dmodel.draw() must be called in OnPostRender() or OnRenderObject() .
UnityEngine.Debug:LogError (object)
live2d.   :drawLast ()
live2d.ModelContext:draw (live2d.DrawParam)
live2d.Live2DModelUnity:draw ()
Live2DModelComponent:OnRenderObject () (at Assets/Scripts/Components/Live2DModelComponent.cs:123)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

如果将RenderMode改为L2D_RENDER_DRAW_MESH,并在Update中调用live2DModel.draw()却能够正常显示

能帮忙看下是因为什么原因么,十分感谢,谢谢~

@doitian
Copy link
Owner

doitian commented Feb 14, 2025

只支持 5.6.7f1

尝试升级到最新的 Unity,API 改动导致 Live2D 库也要升级,改支太大。

@fraisty
Copy link
Author

fraisty commented Feb 14, 2025

是的,我理解如果正常来说确实不应该在高版本使用它,但作为一个尝试,发现加载是很正常的,scene窗口也能正常显示,但唯独在game窗口显示不了,并且报出的错误log,应该是不会发生的才对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants