Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Denik Hatsushika xrdnk

🏠
Working from home
View GitHub Profile
View LocalizationPresenter.cs
using Deniverse.UnityLocalizationSample.Domain.Service;
using Deniverse.UnityLocalizationSample.Presentation.Presentation.UIView;
using Deniverse.UnityLocalizationSample.Presentation.UIView;
using UnityEngine;
namespace Deniverse.UnityLocalizationSample.Presentation.Presenter
{
public sealed class LocalizationPresenter : MonoBehaviour
{
[SerializeField] LocalizationService _localizationService;
View LanguageSelectToggleUIView.cs
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Localization;
using UnityEngine.UI;
namespace Deniverse.UnityLocalizationSample.Presentation.UIView
{
public sealed class LanguageSelectToggleUIView : MonoBehaviour
{
[SerializeField] Transform _container;
View LanguageSelectDropdownUIView.cs
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Localization;
using UnityEngine.UI;
namespace Deniverse.UnityLocalizationSample.Presentation.Presentation.UIView
{
public sealed class LanguageSelectDropdownUIView : MonoBehaviour
{
[SerializeField] Dropdown _dropdown;
View LocalizationUIView.cs
using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace Deniverse.UnityLocalizationSample.Presentation.UIView
{
public sealed class LocalizationUIView : MonoBehaviour
{
[SerializeField] Image _image_Flag;
[SerializeField] TextMeshProUGUI _text_HelloWorld;
View LocalizationService.cs
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Localization;
using UnityEngine.Localization.Settings;
using UnityEngine.Localization.Tables;
using UnityEngine.ResourceManagement.AsyncOperations;
namespace Deniverse.UnityLocalizationSample.Domain.Service
{
public sealed class LocalizationService : MonoBehaviour
@xrdnk
xrdnk / HyperLinkExample.cs
Last active Nov 1, 2021
TextMeshPro のテキストに URL 文字列が存在する時,ハイパーリンク化する
View HyperLinkExample.cs
using System;
using System.Text.RegularExpressions;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Denicode
{
public sealed class HyperLinkExample : MonoBehaviour, IPointerDownHandler
{
@xrdnk
xrdnk / 📊 Weekly development breakdown
Last active May 19, 2021
Weekly Development Breakdown
View 📊 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%
View DebugAudioHapticsEvents.cs
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 Jan 31, 2021
URP Vignette と Continuous Move Provider を用いて VR 空間内の移動処理にビネット効果を適用する【XR Interaction Toolkit】
View VignetteProvider.cs
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;