Version: 2017.3 (switch to 2017.4)
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.


Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.



public method GetUnsafePointerToBuffer(): IntPtr;
public IntPtr GetUnsafePointerToBuffer();


IntPtr A native COM pointer to the IMFMediaBuffer which contains the image data.


Provides a COM pointer to the native IMFMediaBuffer that contains the image data.

This method provides very low level access to the native COM IMFMediaBuffer object. Therefore care and caution should be applied when using this method.
Please note that each time this method is invoked, an added reference will be applied to the IMFMediaBuffer COM pointer.
The caller is responsible for releasing each instance of the COM pointer.

For more information about the WinRT IMFMediaBuffer object, please visit

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