Contents

render(_:to:at:)

Renders a USD stage to an entity in manual mode.

Declaration

nonisolated(nonsending) static func render(_ stage: USDStage, to entity: Entity, at timeCode: USDStage.TimeCode = .default) async -> USDStageComponent.RenderResult

Parameters

  • stage:

    The USD stage to render.

  • entity:

    The entity to render into.

  • timeCode:

    The time code to render at.

Return Value

The result of the render operation.

Discussion

If the entity does not have a USDStageComponent attached, or if the attached component is in automatic mode, the result is .failed.

See Also

Rendering the stage