Texture.GetNativeTextureID 获取本地纹理ID
var mipMapBias : float
Description描述
function GetNativeTextureID () : int
检索本地纹理(‘硬件’)句柄。
Use this function to retrieve an ID/handle corresponding to a particular texture as it is represented on the native graphics device level. This can be used to enable texture manipulation from native plugins. This function is only supported on OpenGL/ES devices.
使用此函数来检索一个ID/句柄,其对应于一个本地图形设备的特定的贴图(??),这可以从本机用于启用插件纹理操作。此功能仅支持基于OpenGL / ES的设备。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public int mainTextureNativeId = renderer.material.mainTexture.GetNativeTextureID();
}
var mainTextureNativeId : int = renderer.material.mainTexture.GetNativeTextureID();
最后修改:2010年12月14日 Tuesday 18:30