string[] 纹理mipmap限制组名称字符串数组。
检索包含项目中所有可用纹理mipmap限制组名称的字符串数组。
using UnityEngine;
public class Example : MonoBehaviour { // Writes the name of all texture mipmap limit groups available in the project to the Unity Console. void Start() { string[] textureMipmapLimitGroupNames = TextureMipmapLimitGroups.GetGroups();
if (textureMipmapLimitGroupNames.Length == 0) { Debug.Log("No texture mipmap limit groups have been created in this project."); } else { Debug.Log(string.Join(" -- ", textureMipmapLimitGroupNames)); } } }
其他资源:RemoveGroup。