语言英语
  • C#

TextureMipmapLimitGroups.GetGroups

声明

public static string[] GetGroups();

返回

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


Did you find this page useful? Please give it a rating: