Class IUsesSimulationVideoFeedMethods
Inherited Members
Namespace: Unity.MARS.Simulation
Assembly: Unity.MARS.Interfaces.dll
Syntax
public static class IUsesSimulationVideoFeedMethods
Methods
GetVideoFacingDirection(IUsesSimulationVideoFeed)
Get the direction of the camera used to capture the video
Declaration
public static CameraFacingDirection GetVideoFacingDirection(this IUsesSimulationVideoFeed obj)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesSimulationVideoFeed | obj |
Returns
| Type | Description |
|---|---|
| CameraFacingDirection | The direction of the camera used to capture the video |
GetVideoFeedTexture(IUsesSimulationVideoFeed)
Get the texture displaying the video feed
Declaration
public static Texture GetVideoFeedTexture(this IUsesSimulationVideoFeed obj)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesSimulationVideoFeed | obj |
Returns
| Type | Description |
|---|---|
| Texture | The texture displaying the video feed |
GetVideoFocalLength(IUsesSimulationVideoFeed)
Get the focal length of the camera used to capture the video, in pixels
Declaration
public static float GetVideoFocalLength(this IUsesSimulationVideoFeed obj)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesSimulationVideoFeed | obj |
Returns
| Type | Description |
|---|---|
| float | The focal length of the camera used to capture the video, in pixels |
SubscribeVideoFeedTextureCreated(IUsesSimulationVideoFeed, Action<Texture>)
Subscribe to the VideoFeedTextureChanged event, which is called right after the video feed texture has been created
Declaration
public static void SubscribeVideoFeedTextureCreated(this IUsesSimulationVideoFeed obj, Action<Texture> onVideoFeedTextureCreated)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesSimulationVideoFeed | obj | |
| Action<Texture> | onVideoFeedTextureCreated | The delegate to subscribe |
UnsubscribeVideoFeedTextureCreated(IUsesSimulationVideoFeed, Action<Texture>)
Unsubscribe from the VideoFeedTextureChanged event, which is called right after the video feed texture has been created
Declaration
public static void UnsubscribeVideoFeedTextureCreated(this IUsesSimulationVideoFeed obj, Action<Texture> onVideoFeedTextureCreated)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesSimulationVideoFeed | obj | |
| Action<Texture> | onVideoFeedTextureCreated | The delegate to unsubscribe |