KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2022-07-01 to 1 month

アプリ内課金を調べる iOS編

参考 【UnityIAP】世界一簡単に課金機能を実装する(サーバー不要)|マカロン【ゲーム開発】|note [Unity] IAP でiOSアプリ課金を実装(実装編) | hirokuma.blog App内課金をSANDBOXユーザーでテストする - AppStoreConnect編(2019年版) - Qiita コードなし…

meshをwireframe化する

using System.Collections; using System.Collections.Generic; using UnityEngine; public class LineMesh : MonoBehaviour { [SerializeField] private int[] _triangles; // Start is called before the first frame update void Start() { MeshFilter me…

DrawMeshIndirectedを何度か呼ぶ

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; public class Duplicator : MonoBehaviour { [SerializeField] protected Mesh _mesh; [SerializeField] protected Material _mat; protecte…

How to use Graphics.DrawMesh

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Duplicator : MonoBehaviour { [SerializeField] private Mesh _mesh; [SerializeField] private Material _mat; private MaterialPropertyBlock _block; pri…

ITMS-90338: Non-public API usage

apple connectにアプリをアップロードすると、メールで以下の項目がダメと言われる。 ITMS-90338: Non-public API usage 以下を確認する twitterで同じ人がいないか確認 別アプリもビルドして送信してみる それで同じ問題が出たら、Apple側の問題である可能…

iosのdialogueをunityで出す

iOSのダイアログを出す github.com _button.onClick.AddListener(_onClick); private void _onClick(){ string url = MyNativeBindings.GetSettingsURL(); CBNativeDialog.Instance.Show(title: "アクセス許可", message: "動画を保存するには写真へのアクセ…

許可

qiita.com

lidar

iwamaのことは知らないけどこのiPhone3Dスキャンアプリまとめ表は知ってるって人が多すぎ問題今日初めてリアルでこのスキャンアプリまとめ表作ってるのワイやで(ドヤ顔)ムーブかましてきた pic.twitter.com/zF8TRqovp7— iwama@iPhone LiDAR (@iwamah1) July …

how to escape SPACE

js

let hoge = "&nbspSLIT";

webdesignに挑戦

index.kitasenju.design ギミック すごく昔2000年台中頃、慶應SFCのサイトだったか、3種類のCSSが用意されていて、それをボタンで変更することができた。フォーマルなバージョン、ポップなバージョンなどあったと思う。今探しても見つからない。 情報の構造…

canvas上のオブジェクトをマウスに追従

void Update(){ var mousePos = Input.mousePosition; var p = new Vector3( (float)mousePos.x / Screen.width-0.5f, (float)mousePos.y / Screen.height-0.5f, 0 ); hoge.localPosition = new Vector3( p.x*1125,//canvasの大きさ p.y*2436, 0 ); }

MyWebcam

gist.github.com

GraphicsFormat/RenderTextureFormatの命名ルールとその性質を調べる

Unity - Scripting API: GraphicsFormat Unity - Scripting API: RenderTextureFormat チャンネルの名称 RGBA D=デプス S=ステンシル 数字=ビット数 8bit=2の8乗=256階調 16bit=2の16乗=65536階調 数値の名称 SNorm=signed normalized=[-1,1]の範囲 UNorm: …

iPhoneのカメラでUnityから利用可能な解像度

11proで調べた。以下のようなコードで調べられた。 WebCamTexture.devices[i].availableResolutions 前面・背面ともに 192x144 352x288 480x360 640x480 1280x720 1920x1080 3840x2160 で、「横長」。 場合によっては縦横方向を変える必要あり。

text mesh pro よく使うtag

c#

http://digitalnativestudios.com/textmeshpro/docs/rich-text/ 縦の位置 <voffset=1em>up</voffset> 任意のスペース挿入 <space=5em>aaa 文字スペース <cspace=-0.2em>space</cspace>

shaderでmatrixを使ってscaleやrotate

float4x4 object2world = (float4x4)0; object2world._11_22_33_44 = float4(scl.xyz, 1.0);//scale float4x4 rotMatrix = eulerAnglesToRotationMatrix(float3(rotX, rotY, rotZ)); object2world = mul(rotMatrix, object2world); rot // オイラー角(ラジ…

obj of ARFace in ARFoundation5.0

obj file of ARFace in AR Foundation ver 5.0 obj of ARFace in ARFoundation5.0 · GitHub

GenerativeArtの技法

参考 http://www.generative-gestaltung.de/1/code http://www.generative-gestaltung.de/2/ P1 色 P2 形 p2.1 グリッド グリッドと整列 グリッドと動き グリッドと複合モジュール p2.2 エージェント ダムエージェント(単純なエージェント) インテリジェン…

"FOOTER"