- Select the original Texture (not the GameObject).
- Change
Texture Type
toSprite (2D and UI)
. - Change
Wrap Mode
toRepeat
. - Click
Apply
. - Create a
Quad
object:GameObject -> 3D Object ->Quad
. - Scale the
Quad
to the size you want. - Create a light:
GameObject->Light->Directional Light
. - Adjust the light intensity to whatever you like.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Дан массив N и число k <= len(N)/2 | |
# Как разбить массив N на k подмассивов так, | |
# чтобы длина самого длинного и самого короткого | |
# подмассивов отличалась не более чем на 1. | |
def main(arr, n): | |
tmp_arr = [] | |
lenght_arr = len(arr) | |
lenght_sub_arr = lenght_arr // n | |
rem_div = lenght_arr % n |