Пример #1
0
        public void Start()
        {
            var textureArray = TextureArrayWizard.CreateTexture2DArray(terrainSettings.textures.ToArray());

            mat.SetTexture("_TexArr", textureArray);

            for (int i = 0; i < 1; i++)
            {
                GenerateVoxelObject(voxelObjectSettings, new Vector3(i * 150, 0f, 0f));
            }
        }
Пример #2
0
    static void CreateWizard()
    {
        TextureArrayWizard textureWizard = ScriptableWizard.DisplayWizard <TextureArrayWizard>("Create Texture Array", "Create");

        textureWizard.minSize = new Vector2(700, 500);
    }