This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Media; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Web; | |
namespace VOICEVOX_test | |
{ | |
public partial class Form1 : Form | |
{ | |
[DllImport("user32.dll")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, | |
_In_opt_ HINSTANCE hPrevInstance, | |
_In_ LPWSTR lpCmdLine, | |
_In_ int nCmdShow) | |
{ | |
MessageBox(NULL, L"押して!", L"FirstWindow", MB_OK); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class HandText : MonoBehaviour | |
{ | |
[SerializeField] | |
private OVRHand.Hand HandType = OVRHand.Hand.HandLeft; | |
private TextMesh text = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Valve.VR.InteractionSystem | |
{ | |
public class ColliderChanger : MonoBehaviour | |
{ | |
private void OnHandHoverBegin(Hand hand) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Valve.VR; | |
using Valve.VR.InteractionSystem; | |
public class Walkable : MonoBehaviour | |
{ | |
public Transform bodyCollider; | |
public SteamVR_Action_Vector2 walkAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Valve.VR; | |
public class Walkable : MonoBehaviour | |
{ | |
public SteamVR_Action_Vector2 walkAction; | |
void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Walkable : MonoBehaviour | |
{ | |
public Transform head; | |
public Transform bodyCollider; | |
// Start is called before the first frame update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//======= Copyright (c) Valve Corporation, All rights reserved. =============== | |
// | |
// Purpose: Collider dangling from the player's head | |
// | |
//============================================================================= | |
using UnityEngine; | |
using System.Collections; | |
namespace Valve.VR.InteractionSystem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Eraser : MonoBehaviour { | |
void OnTriggerEnter(Collider other) | |
{ | |
if(other.tag == "Pen") | |
{ | |
Destroy(other.gameObject); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using VRTK; | |
public class Pen : MonoBehaviour { | |
public float LineDistance = 0.1f; // Trackを置き直す距離 | |
public GameObject track; // 軌跡 | |
VRTK_InteractableObject io; // コントローラ用 |
NewerOlder