You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Text;
- using UnityEngine;
- using UnityEngine.EventSystems;
-
- public class PinchEventData : BaseEventData
- {
- public PinchEventData(EventSystem eventSystem) : base(eventSystem)
- {
- }
-
- public GameObject Target { get; set; }
-
- public int Pointers { get; set; }
-
- public Vector2 Center { get; set; }
-
- public Vector2 Delta { get; set; }
-
- public Vector2 Velocity { get; set; }
-
- public float Distance { get; set; }
-
- public float ScaleDelta { get; set; }
-
- public override string ToString()
- {
- StringBuilder stringBuilder = new StringBuilder();
- stringBuilder.AppendLine("<b>target</b>: " + this.Target);
- stringBuilder.AppendLine("<b>pointers</b>: " + this.Pointers);
- stringBuilder.AppendLine("<b>center</b>: " + this.Center);
- stringBuilder.AppendLine("<b>delta</b>: " + this.Delta);
- stringBuilder.AppendLine("<b>velocity</b>: " + this.Velocity);
- stringBuilder.AppendLine("<b>distance</b>: " + this.Distance);
- stringBuilder.AppendLine("<b>scaleDelta</b>: " + this.ScaleDelta);
- return stringBuilder.ToString();
- }
- }
|