2023-09-01から1ヶ月間の記事一覧
ソースコード using UnityEngine; using UnityEngine.Splines; public class Example : MonoBehaviour { [SerializeField] private SplineContainer m_splineContainer; private void Awake() { var spline = m_splineContainer.Spline; spline.Add( new( Ve…
ソースコード textureImporter.GetSourceTextureWidthAndHeight ( out var width, out var height ); Debug.Log( width ); Debug.Log( height );
ソースコード /// <summary> /// 可変長引数で SetPositions を呼び出します /// </summary> public static void SetPositions ( this LineRenderer self, params Vector3[] positions ) { self.SetPositions( positions ); }
概要 using UnityEngine; public sealed class Example : MonoBehaviour { [SerializeField] private Sprite m_sourceSprite; [SerializeField] private SpriteRenderer m_spriteRenderer; private Sprite m_sprite; private void Start() { var texture = m…
概要 上記のページで紹介している 3 つのエディタ拡張のスクリプトを Unity プロジェクトに追加したらビルドできるようになった 開発環境 Unity 2022.1.23f1 Firebase 9.6.0 Xcode 15.0
概要 error: The operation couldn’t be completed. Unable to log in with account 'XXXX'. The login details for account 'XXXX' were rejected. (in target 'Unity-iPhone' from project 'Unity-iPhone') error: No signing certificate "iOS Developmen…
ソースコード using System; using UnityEngine; namespace Kogane { [DisallowMultipleComponent] internal sealed class GameViewMaximizedChecker : MonoBehaviour { #if UNITY_EDITOR private UnityEditor.EditorWindow m_gameView; private bool m_maxi…
ソースコード using System; using UnityEngine; namespace Kogane { [DisallowMultipleComponent] internal sealed class ScreenSizeChecker : MonoBehaviour { private int m_width; private int m_height; public event Action OnChanged; private void A…