Skip to content

Instantly share code, notes, and snippets.

View xrdnk's full-sized avatar
🏠
Working from home

Denik xrdnk

🏠
Working from home
View GitHub Profile
@xrdnk
xrdnk / 📊 Weekly development breakdown
Last active May 19, 2021 00:07
Weekly Development Breakdown
C# 16 hrs 32 mins ███████████████████▎░ 91.7%
JSON 35 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.2%
Other 29 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.8%
Text 23 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.2%
Markdown 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
namespace xrdnk.DebugScripts
{
public class DebugAudioHapticsEvents : MonoBehaviour
{
[SerializeField] private XRBaseControllerInteractor _controllerInteractor;
[Header("Audios")]
@xrdnk
xrdnk / VignetteProvider.cs
Created January 31, 2021 14:42
URP Vignette と Continuous Move Provider を用いて VR 空間内の移動処理にビネット効果を適用する【XR Interaction Toolkit】
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using UnityEngine.XR.Interaction.Toolkit;
public class VignetteProvider : MonoBehaviour
{
[SerializeField] private float intensity = 0.75f;
[SerializeField] private float duration = 1.0f;