docs.unity3d.com
Version: 

    Class UnityInterface

    Inheritance
    object
    Interface
    UnityInterface
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Pixyz.Unity
    Syntax
    public class UnityInterface : Interface

    Methods

    AddUnityViewSessionDestroyedCallback(UnityViewSessionDestroyedDelegate, IntPtr)

    Declaration
    public uint AddUnityViewSessionDestroyedCallback(UnityInterface.UnityViewSessionDestroyedDelegate callback, IntPtr userData)
    Parameters
    Type Name Description
    UnityInterface.UnityViewSessionDestroyedDelegate callback
    IntPtr userData
    Returns
    Type Description
    uint

    AddUnityViewSessionHasPickedCallback(UnityViewSessionHasPickedDelegate, IntPtr)

    Declaration
    public uint AddUnityViewSessionHasPickedCallback(UnityInterface.UnityViewSessionHasPickedDelegate callback, IntPtr userData)
    Parameters
    Type Name Description
    UnityInterface.UnityViewSessionHasPickedDelegate callback
    IntPtr userData
    Returns
    Type Description
    uint

    AddUnityViewSessionInitializedCallback(UnityViewSessionInitializedDelegate, IntPtr)

    Declaration
    public uint AddUnityViewSessionInitializedCallback(UnityInterface.UnityViewSessionInitializedDelegate callback, IntPtr userData)
    Parameters
    Type Name Description
    UnityInterface.UnityViewSessionInitializedDelegate callback
    IntPtr userData
    Returns
    Type Description
    uint

    AddUnityViewSessionResizedCallback(UnityViewSessionResizedDelegate, IntPtr)

    Declaration
    public uint AddUnityViewSessionResizedCallback(UnityInterface.UnityViewSessionResizedDelegate callback, IntPtr userData)
    Parameters
    Type Name Description
    UnityInterface.UnityViewSessionResizedDelegate callback
    IntPtr userData
    Returns
    Type Description
    uint

    AsyncPick(uint, int, int)

    Asynchronous function to pick in the current viewer

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void AsyncPick(uint session, int x, int y)
    Parameters
    Type Name Description
    uint session
    int x
    int y

    AsyncResize(uint, int, int)

    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

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void AsyncResize(uint session, int width, int height)
    Parameters
    Type Name Description
    uint session
    int width

    Viewer width

    int height

    Viewer height

    ConfigureFunctionLogger(string, bool, bool, bool)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
    Parameters
    Type Name Description
    string functionName
    bool enableFunction
    bool enableParameters
    bool enableExecutionTime

    CreateUnityViewSession(int, int, GraphicAPI, int)

    Declaration
    [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

    GetD3D11Device()

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetD3D11Device()
    Returns
    Type Description
    IntPtr

    GetD3D11RenderTargetViewFromRenderBuffer(IntPtr)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetD3D11RenderTargetViewFromRenderBuffer(IntPtr surface)
    Parameters
    Type Name Description
    IntPtr surface
    Returns
    Type Description
    IntPtr

    GetD3D11ShaderResourceViewFromNativeTexture(uint)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetD3D11ShaderResourceViewFromNativeTexture(uint texture)
    Parameters
    Type Name Description
    uint texture
    Returns
    Type Description
    IntPtr

    GetD3D11TextureFromNativeTexture(uint)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetD3D11TextureFromNativeTexture(uint texture)
    Parameters
    Type Name Description
    uint texture
    Returns
    Type Description
    IntPtr

    GetD3D11TextureFromRenderBuffer(IntPtr)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetD3D11TextureFromRenderBuffer(IntPtr buffer)
    Parameters
    Type Name Description
    IntPtr buffer
    Returns
    Type Description
    IntPtr

    GetDestroyFunction()

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetDestroyFunction()
    Returns
    Type Description
    IntPtr

    GetDrawFunction()

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetDrawFunction()
    Returns
    Type Description
    IntPtr

    GetInitFunction()

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetInitFunction()
    Returns
    Type Description
    IntPtr

    GetLastError()

    Declaration
    public static string GetLastError()
    Returns
    Type Description
    string

    GetVulkanDevice()

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntPtr GetVulkanDevice()
    Returns
    Type Description
    IntPtr

    RemoveUnityViewSessionDestroyedCallback(uint)

    Declaration
    public void RemoveUnityViewSessionDestroyedCallback(uint id)
    Parameters
    Type Name Description
    uint id

    RemoveUnityViewSessionHasPickedCallback(uint)

    Declaration
    public void RemoveUnityViewSessionHasPickedCallback(uint id)
    Parameters
    Type Name Description
    uint id

    RemoveUnityViewSessionInitializedCallback(uint)

    Declaration
    public void RemoveUnityViewSessionInitializedCallback(uint id)
    Parameters
    Type Name Description
    uint id

    RemoveUnityViewSessionResizedCallback(uint)

    Declaration
    public void RemoveUnityViewSessionResizedCallback(uint id)
    Parameters
    Type Name Description
    uint id
    Version 2024.3.0.10
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.