Class TCastleTransformReference

Unit

Declaration

type TCastleTransformReference = class(TCastleTransform)

Description

Reference another TCastleTransform instance, to render one TCastleTransform multiple times within the same viewport.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Published property Reference: TCastleTransform read FReference write SetReference;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Published property Reference: TCastleTransform read FReference write SetReference;

Reference another TCastleTransform instance, rendering and processing it as our child. This makes the referenced instance being visible multiple times within the same viewport.

The referenced instance doesn't have to be present itself in any viewport. But if it is present in some viewport, it has to be the same viewport as our own. In other words, you cannot use the same TCastleTransform instance in 2 different viewports.

To be more precise, you actually cannot use the same TCastleTransform instance in 2 different TCastleAbstractRootTransform instances (see TCastleTransform.World). When 2 viewports share the same Items then (and only then) the same TCastleTransform instance are present in multiple viewports. See https://castle-engine.io/multiple_viewports_to_display_one_world .


Generated by PasDoc 0.16.0.