Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unity3d Unity 2D:使图像完全黑色_Unity3d - Fatal编程技术网

Unity3d Unity 2D:使图像完全黑色

Unity3d Unity 2D:使图像完全黑色,unity3d,Unity3d,我需要制作一个图像的副本,并在运行时使其完全变黑(剪影)。仅仅将颜色更改为黑色并不起作用,因为Unity使某些线条透明: 这是因为您的图像没有完全填充,并且在可以看到这些“线”的地方有间隙这些线很可能是因为您的图像有透明胶片造成的there@derHugo是的,那是有道理的。谢谢你的提示

我需要制作一个图像的副本,并在运行时使其完全变黑(剪影)。仅仅将颜色更改为黑色并不起作用,因为Unity使某些线条透明:


这是因为您的图像没有完全填充,并且在可以看到这些“线”的地方有间隙

这些线很可能是因为您的图像有透明胶片造成的there@derHugo是的,那是有道理的。谢谢你的提示