Skip to content

Instantly share code, notes, and snippets.

@Masterexa
Masterexa / RubyExample.cs
Created March 26, 2022 13:09
TextMeshProのルビ振りコード
using System.Text;
using TMPro;
using UnityEngine;
namespace Kimiguna.Unity
{
public class RubyExample : MonoBehaviour
{
[SerializeField] TMP_Text m_text;
@Masterexa
Masterexa / asciidoc.css
Last active March 3, 2020 12:04
NotePoi Style Sheet
body{
font-family: 'UD デジタル 教科書体 NP-R', '游ゴシック', serif;
padding: 0 4em;
max-width: 840px;
margin: 0 auto;
font-size: 15px;
}
/* 見出し */
@Masterexa
Masterexa / HumanoidPlayerControl.cs
Created January 21, 2020 13:32
Unity : Simple Character Controller
using Cinemachine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
namespace Masterexa.CharactorControl {
/// <summary>
/// プレイヤー入力用のHumanoidMotorコントローラー( InputSystem, Cinemachine2 必須 )
@Masterexa
Masterexa / main.css
Last active July 26, 2019 07:56
My simple CSS for VSCode
/* font-family */
h3,h4,h5,h6{
font-family: 'Yu Gothic', sans-serif;
}
h1,h2,p{
font-family: 'Yu Mincho', serif;
}
b,em,strong{
font-family: 'Yu Gothic', sans-serif;
}
@Masterexa
Masterexa / Class.lua
Created April 24, 2019 15:06
Class definition in Lua
-------------------- Base Class --------------------
local Base = {}
---- Member Methods ----
function Base:foo()
return 'foo.'
end