This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SecToMinSec(sec:int):string= | |
| if: | |
| Minute := Quotient[sec,60] | |
| Second := Mod[sec,60] | |
| then: | |
| var MiniteString:string = "{Minute}" | |
| var SecondString:string = "{Second}" | |
| if(Minute <= 9): | |
| set MiniteString = "0" + MiniteString | |
| if (Second <= 9): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using {/Fortnite.com/Devices } | |
| using {/Fortnite.com/UI} | |
| using {/UnrealEngine.com/Temporary/UI} | |
| using {/UnrealEngine.com/Temporary/SpatialMath} | |
| using {/Verse.org/Assets} | |
| using {/Verse.org/Simulation} | |
| using {/Verse.org/Colors} | |
| ui_practive<public> := module: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// シングルトンパターン(MonoBehaviour) | |
| /// </summary> | |
| /// <typeparam name="T"></typeparam> | |
| public abstract class SingletonMonoBehaviour<T> : MonoBehaviour where T : MonoBehaviour | |
| { | |
| private static T _instance; | |
| private static object _lock = new object(); | |
| // アプリが終了しているかどうかのフラグ | |
| private static bool applicationIsQuitting = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <canvas id="renderCanvas" ref="bjsCanvas"/> | |
| </template> | |
| <script> | |
| import { ref, onMounted } from "@vue/runtime-core"; | |
| import { createScene } from "../scenes/MyFirstScene"; | |
| export default { | |
| name: "BabylonScene", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class ButterflyEffect : MonoBehaviour | |
| { | |
| [SerializeField] Transform ball; //このオブジェクトにTrail Rendererをつけると可愛い | |
| [SerializeField] float scale = 0.002f; //scale=1だと大きすぎてARグラスで観測しにくい | |
| LorenzModel model; | |
| Vector3 initBallPosition; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| public class ObjectActiveControllerEditor : MonoBehaviour { | |
| //Ctrl + gキーを押すと実行される 選択されたオブジェクトのオンオフを切り替える | |
| [MenuItem ("ShotCut/SwitchActive %g")] | |
| private static void SwitchActiveOnOff () { | |
| foreach (var item in Selection.transforms) | |
| { |