This file contains 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
/* | |
original: https://qiita.com/OKsaiyowa/items/ecef8e5d50c84664f2a2 | |
modified by liveasnotes | |
> 登録ユーザーは、本サイトに投稿したコード、スニペットなどプログラムに類するものに限り、他の登録ユーザーが商用私用問わず無償で使用することを許諾し、他の登録ユーザーはこれを使用できるものとします。 | |
> 前各項の登録ユーザーによる利用許諾には、地域制限、著作権表示義務その他付随条件はないものとします。 | |
cf. https://qiita.com/terms (2023-01-04 checked) | |
*/ |
This file contains 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
// line 31 | |
ParticleSystem.MainModule p = particles.main; | |
p.startSizeMultiplier *= scale; | |
p.startSpeedMultiplier *= scale; | |
p.gravityModifierMultiplier *= scale; | |
// particles.startSize *= scale; | |
// particles.startSpeed *= scale; | |
// particles.gravityModifier *= scale; |
This file contains 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
// Copyright 2022-2023 liveanotes | |
// Released under the MIT license. | |
// see https://opensource.org/licenses/MIT | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace liveasnotes.Unity.EditorExtension.HOAS |
This file contains 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 UnityEditor; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
namespace liveasnotes.EditorExtension |
This file contains 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
// cf. | |
// https://gametukurikata.com/program/ghost | |
// https://xr-hub.com/archives/20326 | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace liveasnotes | |
{ |
This file contains 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
// (c) https://gist.github.com/tsubaki/8709502 | |
// note: i will made this suit for newer api | |
// cf. | |
// https://gist.github.com/wakepon/b5f2802d988514dbadbc8a143e1fefd6 | |
// https://forum.unity.com/threads/getting-list-of-all-opened-scenes.388599/ | |
// https://webcache.googleusercontent.com/search?q=cache:BXEknzUYN0QJ:https://charcotte.hateblo.jp/entry/2019/03/28/003249 | |
// https://web.archive.org/web/20201123162857/https://webcache.googleusercontent.com/search?q=cache%3ABXEknzUYN0QJ%3Ahttps%3A%2F%2Fcharcotte.hateblo.jp%2Fentry%2F2019%2F03%2F28%2F003249 | |
// https://forum.unity.com/threads/editorapplication-currentscene-obsolete.374669/ | |
using System.Collections; |
This file contains 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
// (c) 2019 liveasnotes | |
// https://gist.github.com/liveasnotes/1e086f9eb6d3c017760d9181d730ba45 | |
using UnityEditor; | |
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; | |
/// <summary> | |
/// ヒエラルキーウィンドウで、選択したオブジェクト(複数選択可)の直上の親オブジェクトを選択できるスクリプト |
This file contains 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
// (c) 2019 liveasnotes | |
// https://gist.github.com/liveasnotes/cdbb66b411d5462bcb90827e51708dde | |
using UnityEditor; | |
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; | |
/// <summary> | |
/// ヒエラルキーウィンドウで、選択したオブジェクト(複数選択可)の直下にある子オブジェクトを選択できるスクリプト |
This file contains 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; | |
public class FixPhysicalState : MonoBehaviour | |
{ | |
public bool fixPosition = true; | |
public bool fixRotation = true; | |
Vector3 own_initialRot; | |
Vector3 own_initialLocalPos; |
This file contains 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; | |
public class ExecEverySecond : MonoBehaviour | |
{ | |
float dt = 0; | |
void Update() | |
{ | |
dt += Time.deltaTime; | |
if (dt > 1) |