c# 全角と半角のカウント
shift-jisのサポートがない場合。 using System; using han_zen; class Program { static void Main(string[] args)...
26 search resultsShowing 1~20 results
You need to log-in
shift-jisのサポートがない場合。 using System; using han_zen; class Program { static void Main(string[] args)...
ターミナルから新しいターミナルを作って、以下の通りに。 dotnet add package System.Drawing.Common コンソールアプリでも使える。 using System....
RenderTextureに一度コピーしてから取得する。 Texture2D tar; Texture2D dst = tar.Copy(); //Texture2D dst = tar.Cop...
webglはshaderを限定して組み込むらしい。 Edit->ProjectSettings->Graphics-> Always Include Shadersになければ加...
callbackで連れてくる。 //usage colcube.AddComponent<CastScript>(); colcube.GetComponent<CastScr...
極力少ない労力で。 using UnityEngine; public class moveo : MonoBehaviour { void Update() { //カメラをこのオブジェクトの...
このあたりをsprite editor(32x32)で切り分けて。 Quadなどにセットする。 using UnityEngine; public class SpriteToTexture :...
シードがあれば再現性もある。 var r=new Random(100); var x=new int[]{1,2,3,4}.OrderBy(d=>r.Next()); Console.W...
#0000 <-> #000f public async Task FadeIn() { //using DG.Tweening; //#0000 -> #000f bool ...
枠が太い時はpixel per unitの値を変更
//testcode const string s_Arrow0 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6...
1.File->BuildSetting->WebGL ここでモジュールがない場合は、UnityHubからインストール(ダウンロードを促すボタンがある)して、ダウンロード後エディタを...
複数行も可能 var bb="{{{aiueo}}}".capture(@"{{{", @"}}}"); //aiueo public static class RegexStringExten...
1.シーンのライトを消す エディタの、 Window -> Rendering -> Lightning -> (tab)Enviroment-> Enviroment ...
10秒待ち using System.Collections; using System.Collections.Generic; using UnityEngine; public stati...
パネルのサイズを固定にして、その配下に固定で、画像やテキストを配置。 パネルのスケールを変更するのみで、比率に応じた倍率にする。 ここでは640x480に固定。倍率は小さい方に合わせる。画面いっ...
Folderを設定して Ctrl+B using System.Collections; using System.Collections.Generic; using UnityEngine;...
1.適当にクラスを用意する。 public class InpGameObject : MonoBehaviour { public async Task<string> GetKe...
1.GameObjectのExtensionに。 public static async Task<string> GetVKey(this GameObject @this,int...
自分がアクティブじゃない場合は、即リターン。 void Update() { if(!gameObject.activeSelf) return; if (Input.anyKeyDown){ ...
26 search resultsShowing 1~20 results
Qiita is a knowledge sharing service for engineers.