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)); } }
static void CreateWizard() { TextureArrayWizard textureWizard = ScriptableWizard.DisplayWizard <TextureArrayWizard>("Create Texture Array", "Create"); textureWizard.minSize = new Vector2(700, 500); }