Class PolySpatialObjectUtils
Utility methods for working with PolySpatial objects.
Inherited Members
Namespace: Unity.PolySpatial
Assembly: Unity.PolySpatial.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 | The GameObject to get the identifier for. |
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. |
MarkDirty(Renderer)
Marks the specified renderer as changed so that it will be updated over PolySpatial.
Declaration
public static void MarkDirty(Renderer renderer)
Parameters
Type | Name | Description |
---|---|---|
Renderer | renderer | The renderer to mark as changed. |