使用LoadRawTextureData进行问题处理并获得带有随机点颜色的白色纹理

时间:2019-01-20 15:55:12

标签: c# unity3d

我遇到了问题,我尝试使用LoadRawTextureData加载纹理,在游戏中我看到带有随机颜色点的白色纹理

Screenshot of the buggy texture

array = list(range(9, -1, -1))

has_flipped = True

while has_flipped:

    for num in array:

        if array.index(num) == (len(array) - 1):
            continue

        if num > array[array.index(num) + 1]:
            container = array[array.index(num) + 1]
            array[array.index(num) + 1] = num
            num = container
            has_flipped = False

    has_flipped = not has_flipped

0 个答案:

没有答案