CanvasSource
public sealed class CanvasSource : ILedSourceSource adapter for uGUI Canvas content captured via a Camera.
The caller provides a Camera that renders the Canvas; this source
creates and manages its own RenderTexture at a configurable render
resolution and assigns it as UnityEngine.Camera.targetTexture.
The compositor then downscales via FitMode.
Properties
Section titled “Properties”
SourceType
Section titled “SourceType”public LedSourceType SourceType { get; }No description is available for this member.
Returns
LEDStudio.LedSourceType — No return description is available.
IsReady
Section titled “IsReady”public bool IsReady { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
IsDirty
Section titled “IsDirty”public bool IsDirty { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
OutputTexture
Section titled “OutputTexture”public Texture OutputTexture { get; }No description is available for this member.
Returns
UnityEngine.Texture — No return description is available.
Constructors
Section titled “Constructors”
CanvasSource(Camera, Vector2Int)
Section titled “CanvasSource(Camera, Vector2Int)”public CanvasSource(Camera camera, Vector2Int renderResolution)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
camera |
UnityEngine.Camera | |
renderResolution |
UnityEngine.Vector2Int |
Methods
Section titled “Methods”
SetCamera(Camera)
Section titled “SetCamera(Camera)”public void SetCamera(Camera camera)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
camera |
UnityEngine.Camera | |
SetRenderResolution(Vector2Int)
Section titled “SetRenderResolution(Vector2Int)”public void SetRenderResolution(Vector2Int resolution)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
resolution |
UnityEngine.Vector2Int | |
Prepare(Vector2Int)
Section titled “Prepare(Vector2Int)”public void Prepare(Vector2Int targetResolution)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
targetResolution |
UnityEngine.Vector2Int | |
UpdateSource(in TimeStep)
Section titled “UpdateSource(in TimeStep)”public void UpdateSource(in TimeStep step)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
step |
ImpossibleRobert.Common.Timing.TimeStep | |
MarkClean()
Section titled “MarkClean()”public void MarkClean()No description is available for this member.
GetDirtyRects(List)
Section titled “GetDirtyRects(List)”public void GetDirtyRects(List<RectInt> outRects)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
outRects |
System.Collections.Generic.List{UnityEngine.RectInt} | |
Release()
Section titled “Release()”public void Release()No description is available for this member.