Texture.GetNativeTextureIDfunction GetNativeTextureID () : intDescriptionRetrieve native ('hardware') handle to a texture 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.
JavaScript
var mainTextureNativeId : int = renderer.material.mainTexture.GetNativeTextureID(); using UnityEngine; import UnityEngine |
