Entries from 2022-02-01 to 1 month
$breakpoints: ('sm': 'screen and (max-width: 400px)','md': 'screen and (max-width: 700px)','lg': 'screen and (max-width: 1200px)' ) !default @mixin mq($breakpoint: md) @media #{map-get($breakpoints, $breakpoint)} @content .myBr display: in…
ここをみるとcloudflareを使え、と書いてある cloudflareが何かあまりわかってないが、とりあえず登録する cloudflareにドメインを入力すると既存のネームサーバーの代わりに、これに設定してね、みたいにURLが2個書いてある それをコピペ。私はドメイン取…
deve-cat.com androidはなんか動かなかった
www.jisakeisan.com
Unityでandroidからiosにプラットフォームを変更したときAR foundationが動かなくなる対処。 同じような人がいるかどうかは分かりませんが治った方法を書いておきます。 発生した問題 androidからiosにスイッチした際、iPhone上で動かなくなる。エラーは出な…
//using System; System.DateTime.Now.ToString("yyMMddHHmmss");
UnityでiOSをメインで開発してる人がandroidに対応する platform switch 他のplatformからswitchするときはpreference > general > compress assets on importをオフにしておくとスイッチが早い。 meshにUnityにデフォで組み込まれているcubeやsphereをinspe…
①対象となるメッシュをモデリングした ②その後UVをUV PackingでBoundingBoxというのを選んだ ③Object > Bake Objectでベイクした この手順でプレビューはおかしいがUnityにもっていったら正常だった。 ②のUV展開のやり方なのかなあ、わからん
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseHelper : MonoBehaviour { protected bool _isDown=false; protected virtual void _MouseDown(){ } protected virtual void _MouseUp(){ } //毎フレー…
Shader "Unlit/AboutBg" { Properties { _Width ("_Width", float) = 30 } SubShader { Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"} LOD 100 ZWrite Off Blend SrcAlpha OneMinusSrcAlpha Pass { CGPROGRAM #pragma …
LayerMaskというのがあるのだが、これは単一のレイヤーを指定するものではないようだ。 enumをinspectorに表示し、ドロップダウンで選び、その値をgameObject.layerにつっこむようにした。 enumを定義 スマートでは無いが、layer名が一致するように文字列を…
github.com
プラトーでobjをダウンロード。 2022の最新版https://www.geospatial.jp/ckan/dataset/plateau-tokyo23ku 2020のobj。 3D都市モデル(Project PLATEAU)東京都23区(OBJ 2020年度) - データセット 2020のfbx。https://www.geospatial.jp/ckan/dataset/plate…
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CopySkinnedMesh : MonoBehaviour { [SerializeField] private SkinnedMeshRenderer _srcSkinned; [SerializeField] private MeshFilter _targetMeshFilter; …
float3 getNewVertPos(float3 pos){ float4 hoge = float4(0,0,0,0); hoge.y = _Amp+_Amp*sin( (pos.x*_Detail.x+pos.z*_Detail.z) *3.1415 + _Time.y*4 ); hoge.y *= step(0,pos.y);//マイナスyは無効化する return pos + hoge; } float3 getNewNormal(floa…
インスペクタに独自の型 using UnityEngine; using System.Collections; using System.Collections.Generic; [System.Serializable] public class HogeClass { public string name; public int index2; public int index3; } public class UITest : MonoBeha…