Unity3D插件Paint in 3D涂鸦之后如何重置? Paint in 3D 是Unity的涂鸦插件

Paint in 3D 是Unity的涂鸦插件

找了半天发现是P3D_Paintable的Awake能够重置。将protected改为Public然后调用即可
public virtual void Awake()
{
if (Textures != null)
{
for (var i = Textures.Count - 1; i >= 0; i--)
{
var texture = Textures[i];


if (texture != null)
{
texture.Awake(gameObject);
}
}
}


UpdateTree();
}

猜你喜欢

转载自blog.csdn.net/u011423279/article/details/80727234