CubemapConstructor

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

Parámetros

sizeAnchura/altura de una cara de cubo en píxeles.
formatFormato de los datos de píxel que se utilizará para el Cubemap.
mipmapDeberí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.