2022-01-01ãã1å¹´éã®è¨äºä¸è¦§
æ¦è¦ ãShader Graph to PNGãã Unity ããã¸ã§ã¯ãã«å°å ¥ãããã¨ã§ ShaderGraph ã®ã¹ã¯ãªã¼ã³ã·ã§ãããä¿åã§ããããã«ãªãã¾ã 使ãæ¹ ShaderGraph ã®ã¦ã£ã³ãã¦ãå³ã¯ãªãã¯ãã¦ãGraph To PNGããæ¼ã㨠ãAssets/ShaderGraphScreenshotsãã«ã¹ã¯ãªâ¦
æ¦è¦ ãã¯ã¹ãã£ã®ãRead/Writeãããªã³ã«ãã¦ãApplyãããç¶æ 㧠using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class Example : MonoBehaviour, IPointerClickHandler { private void Awake() { var image = GetCompâ¦
æ¦è¦ ãUnity - Easing Library Visualisationãã Unity ããã¸ã§ã¯ãã«å°å ¥ãããã¨ã§ Ease ã AnimationCurve ã§ä½¿ç¨ã§ããããã«ãªãã¾ã 使ãæ¹ GitHub ãªãã¸ããªã«å«ã¾ãã¦ãããNoiseCrimeStudiosEaseEquations.curvesãã Unity ããã¸ã§ã¯ãã® Ediâ¦
æ¦è¦ ãFixPackageManagerSeeAllVersionsãã Unity ããã¸ã§ã¯ãã«å°å ¥ãããã¨ã§ Package Manager ã§ãã¹ã¦ã®ãã¼ã¸ã§ã³ãè¦ãããããã«ãªãã¾ã å°å ¥å å°å ¥å¾ Project Settings ã®ãPlayer > See All Versionsãããªã³ã«ãã㨠Package Manager ã«ãSeeâ¦
æ¦è¦ ç»åã® Texture Type ããEditor GUI and Legacy GUIããã ãSprite (2D and UI)ãã«å¤æ´ãããç´ã£ã
æ¦è¦ Build Settings ã§ãSymlink Sourcesããæå¹ã«ãã¦ããã ã¹ã¯ãªãããããã«ãããæã« BuildOptions.SymlinkSources ã使ç¨ãã¦ãã㨠Project Settings ã§è¨å®ãã iOS ã® Launch Screen ã®å 容ã Xcode ã«åæ ãããªã
æ¦è¦ using Cysharp.Threading.Tasks; using DG.Tweening; using UnityEngine; public class Example : MonoBehaviour { private Tween m_tween; private async UniTaskVoid Update() { if ( Input.GetMouseButtonDown( 0 ) ) { Debug.Log( "éå§" ); m_tweeâ¦
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEngine; using UnityEngine.EventSystems; public class Example : MonoBehaviour { [SerializeField] private CustomStandaloneInputModule m_module; private void Update() { if ( EventSystem.current.IsPoiâ¦
ãªãã¸ã㪠使ç¨ä¾ using System; using Kogane; using UnityEditor; public static class Example { [MenuItem( "Tools/Hoge" )] public static void Hoge() { SetAndroidHomeToEnvironmentVariable.Set( EnvironmentVariableTarget.Process ); } }
æ¦è¦ BuildOptions.DetailedBuildReport ã使ç¨ãã㨠ãã«ãæã« Unity ã¨ãã£ã¿ãå¼·å¶çµäºããããã«ãªã£ã Editor.log ãè¦ãã¨ä»¥ä¸ã®ãã°ãåºåããã¦ãã Calling OnPostBuildPlayerScriptDLLs callbacks. For faster build speeds, consider not usingâ¦
æ¦è¦ var options = new BuildPlayerOptions { scenes = EditorBuildSettings.scenes.Select( x => x.path ).ToArray(), locationPathName = "app.apk", target = BuildTarget.Android, options = BuildOptions.CleanBuildCache }; var buildReport = BuildPâ¦
æ¦è¦ var options = new BuildPlayerOptions { scenes = EditorBuildSettings.scenes.Select( x => x.path ).ToArray(), locationPathName = "app.apk", target = BuildTarget.Android, options = BuildOptions.ShowBuiltPlayer }; var buildReport = BuildPâ¦
æ¦è¦ ffmpeg -y -i "${waveFile}" -vn -ac 2 -ar 44100 -ab 128k -acodec libvorbis -f ogg "${oggFile}" ffmpeg 㧠.wav ã .ogg ã«å¤æãããã¨ããã No such file or directory ä¸è¨ã®ã¨ã©ã¼ãçºçããç¾è±¡ã«ééãã ãã¡ã¤ã«ã¯æ£å¸¸ã«åå¨ããç¶æ ã ã£â¦
æ¦è¦ y, sr = librosa.load(file, sr=None, mono=False) soundfile.write(file=file, data=y, samplerate=sr) mono=False ã§èªã¿è¾¼ãã é³å£°ãã¡ã¤ã«ã soundfile.write ã§ä¿åãããã¨ããã Format not recognised. ä¸è¨ã®ã¨ã©ã¼ãçºçã㦠0 ãã¤ãã®ãã¡â¦
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { private void Start() { ApplicationRestarter.Restart(); } } 対å¿ãã¦ãããã©ãããã©ã¼ã Unity Editor Android
æ¦è¦ import librosa import soundfile as sf path = "input.ogg" y, sr = librosa.load(path, sr=None, mono=False) yt, index = librosa.effects.trim(y, top_db=60) sf.write("output.ogg", yt.T, sr) pip install librosa 㧠librosa ãå ¥æãã¦ãã pipâ¦
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEngine; using UnityEngine.EventSystems; public sealed class Example : MonoBehaviour, IPointerClickHandler { void IPointerClickHandler.OnPointerClick( PointerEventData eventData ) { // ã·ã³ã°ã«ã¿ãâ¦
ãªãã¸ã㪠使ç¨ä¾ #if UNITY_IOS using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { private void Start() { SFSafariView.OpenURL( "https://www.google.co.jp/" ); } } #endif #if UNITY_IOS using Cysharp.Threading.Tasâ¦
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEditor; [InitializeOnLoad] public static class Example { static Example() { // éçºãã«ãããªãªã¼ã¹ãã«ããè¨å®ãã¾ã SetXcodePushNotificationOnPostProcessBuild.OnIsProduction = () => false; } }
æ¦è¦ git patch trailing whitespace patch é©ç¨æã«ä¸è¨ã®ã¨ã©ã¼ãçºçããç¾è±¡ã«ééãã git apply --reject --whitespace=fix "ãpatch ã®ãã¡ã¤ã«ãã¹ã" ä¸è¨ã®ã³ãã³ããªãã¨ã©ã¼ãçºçããæ£å¸¸ã« patch ãé©ç¨ã§ãã åèãµã¤ãæ§
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { private void Start() { var texts = new[] { "Awake", "Start", "Update", "FixedUpdate", "LateUpdate", }; // Update Debug.Log( texts.GetMostSimilâ¦
ãªãã¸ã㪠使ç¨ä¾ ApplicationBackgroundChecker.OnChanged = isBackground => Debug.Log( isBackground );
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using System.IO; using UnityEngine; public class Example : MonoBehaviour { private string m_text = string.Empty; private void OnGUI() { GUILayout.Label( ApplicationPath.PersistentDataPath ); GUILayout.Label(â¦
ãªãã¸ã㪠使ç¨ä¾ // ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ãã¦ãã Android 端æ«ã® API Level Debug.Log( AndroidApiLevel.Value ); // ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ãã¦ãã Android 端æ«ã®ãã¼ã¸ã§ã³ã 13 以ä¸ãªã true Debug.Log( AndroidApiLevel.IsAndroidVersion13OrHâ¦
æ¦è¦ error: No profiles for 'XXXX' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'XXXX'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProviâ¦
ãªãã¸ã㪠使ç¨ä¾ using System; using UnityEngine; [Flags] public enum Attribute { FIRE = 1 << 1, AQUA = 1 << 2, GRASS = 1 << 3, } public sealed class Example : MonoBehaviour { [SerializeField] private Attribute m_attribute; } using Koganeâ¦
ãªãã¸ã㪠使ç¨ä¾ using Cysharp.Threading.Tasks; using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { private async UniTaskVoid Start() { var result = await NotificationPermissionRequest.RequestAsync( this ); Debuâ¦
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { // Pokémon GO ã®ã¹ãã¢ãã¼ã¸ãéã private readonly OpenStorePage m_openStorePage = new ( iosId: "1094591345", androidId: "com.nianticlabs.pokâ¦
æ¦è¦ Rider ã¡ãã¥ã¼ã®ãView > Active Editor > Soft-Wrapãããªãã«ãã
ãªãã¸ã㪠使ç¨ä¾ using Kogane; using UnityEditor; using UnityEngine; public static class Example { [MenuItem( "Tools/Hoge" )] public static void Hoge() { var data = new InstallPlayAssetDeliveryAndroidAppBundleData ( androidAppBundlePath: â¦