public void OnInputDown(InputEventData eventData) { InteractionSourceInfo sourceKind; eventData.InputSource.TryGetSourceKind( eventData.SourceId, out sourceKind); if (sourceKind == InteractionSourceInfo.Hand) { currentInputSource = eventData.InputSource; id = eventData.SourceId; Vector3 pos; currentInputSource.TryGetGripPosition(id, out pos); GameObject tmp = GameObject.Instantiate( original, pos, Quaternion.identity); obj = tmp; lines.Add(tmp); drag = true; Debug.Log("Down"); } }