Version: 2017.2

CubemapConstructor

Cambiar al Manual
public Cubemap (int size, TextureFormat format, bool mipmap);

Parámetros

size Anchura/altura de una cara de cubo en píxeles.
format Formato de los datos de píxel que se utilizará para el Cubemap.
mipmap Deberían los mipmaps ser creados?

Descripción

Crea una nueva textura cubemap vacía.

La textura será size de cada lado y se puede crear con o sin mipmaps.

Usually you will want to set the colors of the texture after creating it, using SetPixel and Apply functions.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Cubemap texture; void Start() { texture = new Cubemap(128, TextureFormat.RGBA32, false); } }

Mirar también: funciones SetPixel, Apply.