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; | |
| using UnityEngine; | |
| using UnityEngine.Serialization; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| public class RopeGenerator : MonoBehaviour | |
| { | |
| public Rigidbody attachementBody; |
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.Generic; | |
| using System.Linq; | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| // License: MIT | |
| // Created by: Aceria_ | |
| // Edited by: Nesh108 | |
| // To use, add these to any MonoBehaviour: | |
| // OnEnable: `Application.logMessageReceived += DiscordLogger.HandleLog;` |
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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace Fiftytwo | |
| { | |
| public static class TransformAllChildren | |
| { | |
| public static IEnumerable<Transform> AllChildren ( this Transform t ) |
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
| private Dictionary<int, Action<Localisation.VariableSetter>> localisationVariableFuncs; | |
| private void InitLocalisation() { | |
| Localisation.Instance.DefaultVariableCallback = LocalisationVariableCallback; | |
| localisationVariableFuncs = new Dictionary<int, Action<Localisation.VariableSetter>>{ | |
| {LocalisationConsts.Variables.ShotStyleBonusHash, setter => setter.SetValue(shotStyleBonuses)}, | |
| {LocalisationConsts.Variables.ShotPegScoreHash, setter => setter.SetValue(shotPegScore)} | |
| }; | |
| // Iterate over all strings and pre-convert action tags to IDs so we only do this once | |
| Localisation.Instance.ProcessMessages(InitLocalisationMessage); |
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
| // Staggart Creations | |
| // http://staggart.xyz | |
| using UnityEngine; | |
| [ExecuteInEditMode] | |
| public class HeightmapToMesh : MonoBehaviour | |
| { | |
| public MeshFilter meshFilter; | |
| public Texture2D heightmap; |
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; | |
| using UnityEditor.Experimental.AssetImporters; | |
| using System.IO; | |
| using UnityEditor; | |
| // refer to | |
| // https://docs.unity3d.com/ja/current/Manual/ScriptedImporters.html | |
| // https://github.com/unity3d-jp/AlembicForUnity/blob/master/com.unity.formats.alembic/Editor/Importer/AlembicImporter.cs |
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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class MarkUnused | |
| { | |
| private const string UnusedLabel = "Unused"; // All unused assets will be tagged with this label |
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
| //---------------------------------------------------------------------------------- | |
| // Copyright (c) 2018 David Maas | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for any purpose | |
| // with or without fee is hereby granted. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
| // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
| // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS |
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
| #if CSHARP_7_OR_LATER | |
| #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member | |
| using System; | |
| using UnityEngine; | |
| using UnityEngine.AddressableAssets; | |
| using UnityEngine.ResourceManagement; | |
| namespace UniRx.Async | |
| { |
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
| // Script made by aleks01010101 | |
| // Slightly modified | |
| // Displays avg and median ms + frames sampled during clipLenght | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PerfTracker : MonoBehaviour { | |
| public float clipLength = 20.0f; |
NewerOlder