Asset Transformer SDK (ex Pixyz) UnityInterface Class
Read time 4 minutes
Last updated 19 hours ago Inheritance
Inherited Members
Namespace: UnityEngine.Pixyz.Unity
public class UnityInterface : Interface
Methods
GetLastError
public static string GetLastError()
Returns
ConfigureFunctionLogger
[HandleProcessCorruptedStateExceptions] public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
Parameters
Type Name Description string functionName bool enableFunction bool enableParameters bool enableExecutionTime
GetD3D11Device
[HandleProcessCorruptedStateExceptions] public IntPtr GetD3D11Device()
Returns
GetD3D11RenderTargetViewFromRenderBuffer
[HandleProcessCorruptedStateExceptions] public IntPtr GetD3D11RenderTargetViewFromRenderBuffer(IntPtr surface)
Parameters
Type Name Description IntPtr surface
Returns
GetD3D11ShaderResourceViewFromNativeTexture
[HandleProcessCorruptedStateExceptions] public IntPtr GetD3D11ShaderResourceViewFromNativeTexture(uint texture)
Parameters
Type Name Description uint texture
Returns
GetD3D11TextureFromNativeTexture
[HandleProcessCorruptedStateExceptions] public IntPtr GetD3D11TextureFromNativeTexture(uint texture)
Parameters
Type Name Description uint texture
Returns
GetD3D11TextureFromRenderBuffer
[HandleProcessCorruptedStateExceptions] public IntPtr GetD3D11TextureFromRenderBuffer(IntPtr buffer)
Parameters
Type Name Description IntPtr buffer
Returns
GetDestroyFunction
[HandleProcessCorruptedStateExceptions] public IntPtr GetDestroyFunction()
Returns
GetDrawFunction
[HandleProcessCorruptedStateExceptions] public IntPtr GetDrawFunction()
Returns
GetInitFunction
[HandleProcessCorruptedStateExceptions] public IntPtr GetInitFunction()
Returns
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
Type Name Description uint session int width Viewer width. int height Viewer height.
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
AddUnityViewSessionDestroyedCallback
public uint AddUnityViewSessionDestroyedCallback(UnityInterface.UnityViewSessionDestroyedDelegate callback, IntPtr userData)
Parameters
Returns
RemoveUnityViewSessionDestroyedCallback
public void RemoveUnityViewSessionDestroyedCallback(uint id)
Parameters
Type Name Description uint id
AddUnityViewSessionHasPickedCallback
public uint AddUnityViewSessionHasPickedCallback(UnityInterface.UnityViewSessionHasPickedDelegate callback, IntPtr userData)
Parameters
Returns
RemoveUnityViewSessionHasPickedCallback
public void RemoveUnityViewSessionHasPickedCallback(uint id)
Parameters
Type Name Description uint id
AddUnityViewSessionInitializedCallback
public uint AddUnityViewSessionInitializedCallback(UnityInterface.UnityViewSessionInitializedDelegate callback, IntPtr userData)
Parameters
Returns
RemoveUnityViewSessionInitializedCallback
public void RemoveUnityViewSessionInitializedCallback(uint id)
Parameters
Type Name Description uint id
AddUnityViewSessionResizedCallback
public uint AddUnityViewSessionResizedCallback(UnityInterface.UnityViewSessionResizedDelegate callback, IntPtr userData)
Parameters
Returns
RemoveUnityViewSessionResizedCallback
public void RemoveUnityViewSessionResizedCallback(uint id)
Parameters
Type Name Description uint id
GetVulkanDevice
[HandleProcessCorruptedStateExceptions] public IntPtr GetVulkanDevice()
Returns