SurfaceEntityTester
class SurfaceEntityTester
A test-only accessor for SurfaceEntity that enables direct manipulation and inspection of its internal state.
Summary
Public properties |
|
|---|---|
PerceivedResolutionResult |
Configures the perceived resolution of the entity, to be retrieved by |
Surface |
The |
Public functions
Public properties
perceivedResolutionResult
var perceivedResolutionResult: PerceivedResolutionResult
Configures the perceived resolution of the entity, to be retrieved by SurfaceEntity.getPerceivedResolution.
Note: Unlike the real SurfaceEntity.getPerceivedResolution method, the value returned by this getter is independent of any specific viewpoint or scene pose. It simply returns the last value that was set via this property.
surface
var surface: Surface
The Surface used by the SurfaceEntity.
Setting this property replaces the current Surface associated with the SurfaceEntity. In this testing implementation, the Surface can be set at any time and can be retrieved by calling SurfaceEntity.getSurface. This allows tests to provide a specific Surface instance (such as one connected to a test-controlled producer) to verify rendering behavior.