// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine;
using UnityEngine.EventSystems;
namespace Microsoft.MixedReality.Toolkit
{
///
/// Describes placement of objects events.
///
public class PlacementEventData : GenericBaseEventData
{
///
/// The game object that is being placed.
///
public GameObject ObjectBeingPlaced { get; private set; }
///
public PlacementEventData(EventSystem eventSystem) : base(eventSystem) { }
///
/// Populates the event with data.
///
public void Initialize(IMixedRealityEventSource eventSource, GameObject objectBeingPlaced)
{
BaseInitialize(eventSource);
ObjectBeingPlaced = objectBeingPlaced;
}
}
}