Class PolySpatialObjectUtils
Inherited Members
Namespace: Unity.PolySpatial
Assembly: solution.dll
Syntax
public static class PolySpatialObjectUtils
Methods
GetGameObjectForPolySpatialIdentifier(ulong)
Return the GameObject corresponding to the given identifier, if any.
Declaration
public static GameObject GetGameObjectForPolySpatialIdentifier(ulong id)
Parameters
Type | Name | Description |
---|---|---|
ulong | id | The PolySpatial identifier to get the GameObject for. |
Returns
Type | Description |
---|---|
GameObject | The GameObject, or null. |
GetPolySpatialIdentifier(GameObject)
Return an identifier usable by PolySpatial backends to obtain platform-specific resources.
Declaration
public static ulong GetPolySpatialIdentifier(GameObject go)
Parameters
Type | Name | Description |
---|---|---|
GameObject | go |
Returns
Type | Description |
---|---|
ulong | The identifier for the object. |
MarkDirty(RenderTexture)
Marks the specified render texture as changed so that it will be updated over PolySpatial.
Declaration
public static void MarkDirty(RenderTexture renderTexture)
Parameters
Type | Name | Description |
---|---|---|
RenderTexture | renderTexture | The render texture to mark as changed. |