UnityEngine.RenderBuffer.GetNativeRenderBufferPtr C# (CSharp) Метод

GetNativeRenderBufferPtr() публичный Метод

Returns native RenderBuffer. Be warned this is not native Texture, but rather pointer to unity struct that can be used with native unity API. Currently such API exists only on iOS.

public GetNativeRenderBufferPtr ( ) : IntPtr
Результат System.IntPtr
        public IntPtr GetNativeRenderBufferPtr()
        {
            return RenderBufferHelper.GetNativeRenderBufferPtr(this.m_BufferPtr);
        }
    }

Usage Example

Пример #1
0
// fields

// properties

// methods

    static bool RenderBuffer_GetNativeRenderBufferPtr(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 0)
        {
            UnityEngine.RenderBuffer argThis = (UnityEngine.RenderBuffer)vc.csObj;                JSApi.setIntPtr((int)JSApi.SetType.Rval, (System.IntPtr)(argThis.GetNativeRenderBufferPtr()));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }