Edytuj

Udostępnij za pośrednictwem


PlacementEventData Class

Definition

Describes placement of objects events.

public ref class PlacementEventData : Microsoft::MixedReality::Toolkit::GenericBaseEventData
public class PlacementEventData : Microsoft.MixedReality.Toolkit.GenericBaseEventData
type PlacementEventData = class
    inherit GenericBaseEventData
Public Class PlacementEventData
Inherits GenericBaseEventData
Inheritance
UnityEngine.EventSystems.BaseEventData
PlacementEventData

Constructors

PlacementEventData(EventSystem)

Constructor.

Properties

EventSource

The Event Source that the event originates from.

(Inherited from GenericBaseEventData)
EventTime

The UTC time at which the event occurred.

(Inherited from GenericBaseEventData)
ObjectBeingPlaced

The game object that is being placed.

selectedObject

The BaseEventData.selectedObject is explicitly hidden because access to it (either via get or set) throws a NullReferenceException in typical usage within the MRTK. Prefer using the subclasses own fields to access information about the event instead of fields on BaseEventData.

(Inherited from GenericBaseEventData)

Methods

BaseInitialize(IMixedRealityEventSource)

Used to initialize/reset the event and populate the data.

(Inherited from GenericBaseEventData)
Initialize(IMixedRealityEventSource, GameObject)

Populates the event with data.

Applies to