Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

get warning in unity2020.3.0f1c1 #5

Open
oceancx opened this issue Mar 21, 2021 · 2 comments
Open

get warning in unity2020.3.0f1c1 #5

oceancx opened this issue Mar 21, 2021 · 2 comments

Comments

@oceancx
Copy link

oceancx commented Mar 21, 2021

SetSubMesh #1 shares part of its index buffer with SubMesh #2. Sharing part of an index buffer can result in undefined behavior and will be deprecated soon. To future-proof your Project, fix the indexStart/indexCount
UnityEngine.Mesh:SetSubMesh (int,UnityEngine.Rendering.SubMeshDescriptor,UnityEngine.Rendering.MeshUpdateFlags)
ImGuiNET.Unity.ImGuiRendererMesh:UpdateMesh (ImGuiNET.ImDrawDataPtr,UnityEngine.Vector2) (at Packages/dear-imgui-unity/ImGuiNET.Unity/Renderer/ImGuiRendererMesh.cs:127)
ImGuiNET.Unity.ImGuiRendererMesh:RenderDrawLists (UnityEngine.Rendering.CommandBuffer,ImGuiNET.ImDrawDataPtr) (at Packages/dear-imgui-unity/ImGuiNET.Unity/Renderer/ImGuiRendererMesh.cs:71)
ImGuiNET.Unity.DearImGui:Update () (at Packages/dear-imgui-unity/ImGuiNET.Unity/DearImGui.cs:157)

@ryantrawick
Copy link

I'm getting the same warning and having no luck modifying the ImGuiRendererMesh.cs. I wish Unity would let us suppress this warning somehow.

@oceancx
Copy link
Author

oceancx commented May 17, 2021

I'm getting the same warning and having no luck modifying the ImGuiRendererMesh.cs. I wish Unity would let us suppress this warning somehow.

you can use this realgamessoftware/dear-imgui-unity#24

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

No branches or pull requests

2 participants