UnityInterface
Class
Read time 4 minutesLast updated 8 months ago
Inheritance
Inherited Members
Namespace: UnityEngine.Pixyz.Unity
public class UnityInterface : Interface
Methods
GetLastError
public static string GetLastError()
Returns
Type | Description |
|---|---|
| string |
ConfigureFunctionLogger
[HandleProcessCorruptedStateExceptions]public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
Parameters
GetD3D11Device
[HandleProcessCorruptedStateExceptions]public IntPtr GetD3D11Device()
Returns
Type | Description |
|---|---|
| IntPtr |
GetD3D11RenderTargetViewFromRenderBuffer
[HandleProcessCorruptedStateExceptions]public IntPtr GetD3D11RenderTargetViewFromRenderBuffer(IntPtr surface)
Parameters
Type | Name | Description |
|---|---|---|
| IntPtr | surface |
Returns
Type | Description |
|---|---|
| IntPtr |
GetD3D11ShaderResourceViewFromNativeTexture
[HandleProcessCorruptedStateExceptions]public IntPtr GetD3D11ShaderResourceViewFromNativeTexture(uint texture)
Parameters
Type | Name | Description |
|---|---|---|
| uint | texture |
Returns
Type | Description |
|---|---|
| IntPtr |
GetD3D11TextureFromNativeTexture
[HandleProcessCorruptedStateExceptions]public IntPtr GetD3D11TextureFromNativeTexture(uint texture)
Parameters
Type | Name | Description |
|---|---|---|
| uint | texture |
Returns
Type | Description |
|---|---|
| IntPtr |
GetD3D11TextureFromRenderBuffer
[HandleProcessCorruptedStateExceptions]public IntPtr GetD3D11TextureFromRenderBuffer(IntPtr buffer)
Parameters
Type | Name | Description |
|---|---|---|
| IntPtr | buffer |
Returns
Type | Description |
|---|---|
| IntPtr |
GetDestroyFunction
[HandleProcessCorruptedStateExceptions]public IntPtr GetDestroyFunction()
Returns
Type | Description |
|---|---|
| IntPtr |
GetDrawFunction
[HandleProcessCorruptedStateExceptions]public IntPtr GetDrawFunction()
Returns
Type | Description |
|---|---|
| IntPtr |
GetInitFunction
[HandleProcessCorruptedStateExceptions]public IntPtr GetInitFunction()
Returns
Type | Description |
|---|---|
| IntPtr |
AsyncPick
Asynchronous function to pick in the current viewer.
[HandleProcessCorruptedStateExceptions]public void AsyncPick(uint session, int x, int y)
Parameters
AsyncResize
Call this function when the texture has to be resized. the resize will take effect during the next render. This will send a ViewSessionResized event when done.
[HandleProcessCorruptedStateExceptions]public void AsyncResize(uint session, int width, int height)
Parameters
CreateUnityViewSession
[HandleProcessCorruptedStateExceptions]public uint CreateUnityViewSession(int width, int height, GraphicAPI graphicAPI, int nbViews = 1)
Parameters
Type | Name | Description |
|---|---|---|
| int | width | Viewer width. |
| int | height | Viewer height. |
| GraphicAPI | graphicAPI | Graphic api used by Unity. |
| int | nbViews | Nb views. |
Returns
Type | Description |
|---|---|
| uint |
AddUnityViewSessionDestroyedCallback
public uint AddUnityViewSessionDestroyedCallback(UnityInterface.UnityViewSessionDestroyedDelegate callback, IntPtr userData)
Parameters
Type | Name | Description |
|---|---|---|
| UnityInterface.UnityViewSessionDestroyedDelegate | callback | |
| IntPtr | userData |
Returns
Type | Description |
|---|---|
| uint |
RemoveUnityViewSessionDestroyedCallback
public void RemoveUnityViewSessionDestroyedCallback(uint id)
Parameters
Type | Name | Description |
|---|---|---|
| uint | id |
AddUnityViewSessionHasPickedCallback
public uint AddUnityViewSessionHasPickedCallback(UnityInterface.UnityViewSessionHasPickedDelegate callback, IntPtr userData)
Parameters
Type | Name | Description |
|---|---|---|
| UnityInterface.UnityViewSessionHasPickedDelegate | callback | |
| IntPtr | userData |
Returns
Type | Description |
|---|---|
| uint |
RemoveUnityViewSessionHasPickedCallback
public void RemoveUnityViewSessionHasPickedCallback(uint id)
Parameters
Type | Name | Description |
|---|---|---|
| uint | id |
AddUnityViewSessionInitializedCallback
public uint AddUnityViewSessionInitializedCallback(UnityInterface.UnityViewSessionInitializedDelegate callback, IntPtr userData)
Parameters
Type | Name | Description |
|---|---|---|
| UnityInterface.UnityViewSessionInitializedDelegate | callback | |
| IntPtr | userData |
Returns
Type | Description |
|---|---|
| uint |
RemoveUnityViewSessionInitializedCallback
public void RemoveUnityViewSessionInitializedCallback(uint id)
Parameters
Type | Name | Description |
|---|---|---|
| uint | id |
AddUnityViewSessionResizedCallback
public uint AddUnityViewSessionResizedCallback(UnityInterface.UnityViewSessionResizedDelegate callback, IntPtr userData)
Parameters
Type | Name | Description |
|---|---|---|
| UnityInterface.UnityViewSessionResizedDelegate | callback | |
| IntPtr | userData |
Returns
Type | Description |
|---|---|
| uint |
RemoveUnityViewSessionResizedCallback
public void RemoveUnityViewSessionResizedCallback(uint id)
Parameters
Type | Name | Description |
|---|---|---|
| uint | id |
GetVulkanDevice
[HandleProcessCorruptedStateExceptions]public IntPtr GetVulkanDevice()
Returns
Type | Description |
|---|---|
| IntPtr |