KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2024-01-01 to 1 month

random with seed on Unity

//シード値を10に指定 UnityEngine.Random.InitState(10); //ランダム値の生成・出力 for(int i = 0; i < 5; i++) { Debug.Log(UnityEngine.Random.value); }

window.open

js

古の、jsでwindowopen。 なぜかpugです。 a(href='javascript:window.open("https://000690273.codepen.website/","HTML SKETCHES","width=1280,height=720,menubar=0,toolbar=0,locationbar=0")') open!!!!!

Animatorの時間

using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharaBase : MonoBehaviour { [SerializeField] protected Animator _animator; void Update() { CheckAnim(); } void CheckAnim() { if (_animator == null)…

斜め線の繰り返し

https://codepen.io/kitasenjudesign/pen/WNmROJY body{ --col1: #000; --col2: #ea0; width: 2000px; height: 100px; /*background-image: url("circle.png");*/ background-repeat: repeat; background-size: 100px 100px; background-image: repeating-li…

electronを使う

chromeのアドレスバーなしでキャプチャしたかったのだが window.openでもアドレスバーはセキュリティの問題で消すことができない。 そこでElectronを使うことにした。 インストール https://qiita.com/umamichi/items/6ce4f46c1458e89c4cfc コマンドラインで…

pugで一文字ずつspan

pug

How to set span tags randamized class name character by character. (SVOO型) .fuga - var str = "The quick brown fox jumps over the lazy dog. " - var classes = ['a1', 'a2', 'a3'] each char in str - var randomClass = classes[Math.floor(Math.r…

"FOOTER"