Skip to content

Instantly share code, notes, and snippets.

View GONBEEEproject's full-sized avatar
🎃

GONBEEEproject

🎃
View GitHub Profile
@GONBEEEproject
GONBEEEproject / CameraGyro.cs
Created June 30, 2021 07:22
iOSのジャイロとAirPodsProの耳ジャイロを組み合わせて音聞く方向をいじるやつ
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HearXR;
public class CameraGyro : MonoBehaviour
{
[SerializeField] Transform ear;
private void Start()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AutoDestroy : MonoBehaviour
{
[SerializeField]
private float destroyTime = 1.0f;
private void OnEnable()
@GONBEEEproject
GONBEEEproject / ManipulatorHelper.cs
Last active June 8, 2020 12:14
MRTKのObjectManipulatorに効果音を適用するHelper
using Microsoft.MixedReality.Toolkit.Input;
using Microsoft.MixedReality.Toolkit.UI;
using UnityEditor.Events;
using UnityEngine;
using UnityEditor;
using UnityEngine.Events;
[RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(NearInteractionGrabbable))]
[RequireComponent(typeof(ObjectManipulator))]
@GONBEEEproject
GONBEEEproject / AudioEffect.cs
Created December 9, 2019 04:22
keijiroさんのSpectrum使うやつ、ぬるぬる動くかもしれない
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AudioEffect : MonoBehaviour
{
public AudioSpectrum spectrum;
public Transform[] effects;
public float scale;
@GONBEEEproject
GONBEEEproject / SpeedCheck.cs
Created November 13, 2019 09:54
座標から移動速度算出するやつ
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpeedCheck : MonoBehaviour
{
private Vector3 _lastPos;
private float speed;
private void LateUpdate()
{
@GONBEEEproject
GONBEEEproject / WorldPosViewer.cs
Created October 4, 2019 03:24
シーンギズモにワールド座標を表示する用
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WorldPosViewer : MonoBehaviour
{
private void OnDrawGizmos()
{
#if UNITY_EDITOR
@GONBEEEproject
GONBEEEproject / ItemRot.cs
Last active May 25, 2023 17:50
オブジェクトを特定の軸で回し続ける用
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ItemRot : MonoBehaviour
{
[SerializeField]
private Vector3 worldRot, localRot;
[SerializeField]
@GONBEEEproject
GONBEEEproject / TextLookAt
Last active July 28, 2023 13:49
3dテキストがこっち向く奴
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TransformLookAt : MonoBehaviour
{
[SerializeField]
private Transform target;
@GONBEEEproject
GONBEEEproject / ReCenter
Last active October 24, 2019 06:37
メモ用、カメラの位置をリセットする奴
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ReCenter : MonoBehaviour
{
[SerializeField]
private GameObject Rig, Camera;
private Vector3 RigStartPos;
@GONBEEEproject
GONBEEEproject / ParticleAutoDestroy
Last active January 29, 2019 07:55
パーティクル削除待機奴
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticleAutoDestroy : MonoBehaviour
{
private void Start()
{
StartCoroutine(DestroyParticle());
}