Bearbeiten

Freigeben über


ProximityEffect Class

Definition

ProximityEffect scales and switches out materials for registered objects whenever a pointer is in proximity. Scaling is done on three different stages: far / medium and close proximity whereas material switching will only be done on close proximity.

public ref class ProximityEffect
public class ProximityEffect
type ProximityEffect = class
Public Class ProximityEffect
Inheritance
ProximityEffect

Methods

ClearObjects()

Clears all registered objects in the proximity effect

RegisterObjectProvider(IProximityEffectObjectProvider)

register objects for proximity effect via a IProximityEffectObjectProvider

ResetProximityScale()

Resets all objects that had a proximity effect applied. This will reset them to their default size and reset to the base material

UpdateScaling(Vector3, Vector3)

Updates proximity effect and its registered objects. Highlights and scales objects in proximity according to the pointer distance

Applies to