mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-26 13:12:35 -05:00
Merge pull request #2500 from ousttrue/fix/test_NoTexture
[test] unittest 修正
This commit is contained in:
commit
4afba0ec53
|
|
@ -89,10 +89,14 @@ namespace UniVRM10.Test
|
|||
|
||||
// remove textures
|
||||
instance.Vrm.Meta.Thumbnail = null;
|
||||
var m = new Material(Shader.Find("Unlit/Color"));
|
||||
|
||||
foreach (var r in instance.GetComponentsInChildren<Renderer>())
|
||||
{
|
||||
r.sharedMaterials = r.sharedMaterials.Select(x => m).ToArray();
|
||||
r.sharedMaterials = r.sharedMaterials.Select(x =>
|
||||
{
|
||||
var m = new Material(Shader.Find("UniGLTF/UniUnlit"));
|
||||
return m;
|
||||
}).ToArray();
|
||||
}
|
||||
|
||||
var settings = new GltfExportSettings();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user