QualitySettings.masterTextureLimit 主纹理限制

static var masterTextureLimit : int


A texture size limit applied to all textures.


Setting this to one uses the first mipmap of each texture (so all textures are half size), setting this to two uses the second mipmap of each texture (so all textures are quarter size), etc.. This can be used to decrease video memory requirements on low-end computers. The default value is zero.


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		QualitySettings.masterTextureLimit = 1;
// Use half-size textures.

QualitySettings.masterTextureLimit = 1;
Page last updated: 2011-3-13