Skip to content

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

Description

@fraisty

您好,本地尝试用高版本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()却能够正常显示

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions