小米的Unity3d UI问题

时间:2019-01-19 15:00:29

标签: user-interface unity3d xiaomi

在小米设备中,在相机的信箱外面绘制了图像 在其他设备上,一切正确 我同时附上了sumsung和xiaomi的图片,看起来很丑的屏幕截图是xiaomi,并且在三星中很好看

float targetaspect = 750f / 1334f;

import numpy as np
import matplotlib.pyplot as plt

# create image
image = np.zeros((25,25))
image[:10,5:10] = 1.
# create subplots
fig, axes = plt.subplots(2,2)
for i in axes.flatten(): i.axis('off')

with tf.Session() as sess:
    for i in range(4):
        distorted_img = sess.run(distort(image, i))
        axes[i % 2][i // 2].imshow(distorted_img, cmap='gray')

    plt.show()

Issue in top and in bottom Issue in top and in bottom How it suppose to look. It is in Samsung

2 个答案:

答案 0 :(得分:0)

尝试将图像设置为钳位而不是重复。

这将产生黑色边框的结果,但是您将不会具有怪异的纹理

enter image description here

答案 1 :(得分:0)

我不知道是什么引起了这个问题,但是我以棘手的方式解决了它。我刚刚添加了第二台相机以​​显示黑色背景。仅“我的主相机”的视口带有字母框,而没有第二个相机。因此使显示看起来不错