/// <summary> /// Unsubscribe from the VideoFeedTextureChanged event, which is called right after the video feed texture has been created /// </summary> /// <param name="onVideoFeedTextureCreated">The delegate to unsubscribe</param> public static void UnsubscribeVideoFeedTextureCreated(this IUsesSimulationVideoFeed obj, Action <Texture> onVideoFeedTextureCreated) { obj.provider.VideoFeedTextureChanged -= onVideoFeedTextureCreated; }
/// <summary> /// Get the focal length of the camera used to capture the video, in pixels /// </summary> /// <returns>The focal length of the camera used to capture the video, in pixels</returns> public static float GetVideoFocalLength(this IUsesSimulationVideoFeed obj) { return(obj.provider.VideoFocalLength); }
/// <summary> /// Get the direction of the camera used to capture the video /// </summary> /// <returns>The direction of the camera used to capture the video</returns> public static CameraFacingDirection GetVideoFacingDirection(this IUsesSimulationVideoFeed obj) { return(obj.provider.VideoFacingDirection); }
/// <summary> /// Get the texture displaying the video feed /// </summary> /// <returns>The texture displaying the video feed</returns> public static Texture GetVideoFeedTexture(this IUsesSimulationVideoFeed obj) { return(obj.provider.VideoFeedTexture); }