Environment.SetCurrent Method

Sets a BlockReference as current.
Public Sub SetCurrent( _ 
ByVal blockReference As BlockReference, _ 
Optional ByVal updateBoundingBox As Boolean = true _ 
)
This language is not supported or no code example is available.
public void SetCurrent( 
BlockReference blockReference
bool updateBoundingBox = true 
)
This language is not supported or no code example is available.

Parameters

blockReference
BlockReference

The BlockReference to set as current

updateBoundingBox
bool

If true, updates the scene bounding box. Set it to false for better performances in off-screen methods that call this to just use the BlockReference.AccumulatedParentsTransform

Remarks
 

If it is null, the current BlockReference is unset.

The BlockReference must be a first-level child of the one that is currently set (i.e. it must be in the entities of the CurrentBlock).

When a BlockReference is set as current, only the referenced block entities are active on the scene, others are still visible but in a "frozen" state.

.NET Framework

Supported in: 4.8

In this article

Definition