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.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
namespace NetcodeExtension | |
{ | |
[InitializeOnLoad] | |
public static class MultiPlayerPlayModeExtensions | |
{ |
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.InputSystem; | |
using R3; | |
namespace R3.Triggers | |
{ | |
public static class InputSystemObservableTriggerExtensions | |
{ | |
public static Observable<InputAction.CallbackContext> AsObservable(this InputAction action) => | |
Observable.FromEvent<InputAction.CallbackContext>( | |
h => |
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 Unity.Netcode; | |
namespace R3.Trigger | |
{ | |
public static class UnityNetcodeR3Extensions | |
{ | |
public static Observable<(T previousValue, T newValue)> AsObservable<T>(this NetworkVariable<T> networkVariable) | |
{ | |
return Observable.FromEvent<NetworkVariable<T>.OnValueChangedDelegate, (T, T)>( | |
h => (previousValue, newValue) => h((previousValue, newValue)), |
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 Unity.Netcode; | |
namespace UniRx | |
{ | |
public static class UnityNetcodeUniRxExtensions | |
{ | |
public static IObservable<(T previousValue, T newValue)> AsObservable<T>(this NetworkVariable<T> networkVariable) | |
{ | |
return Observable.FromEvent<NetworkVariable<T>.OnValueChangedDelegate, (T, 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
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using UnityEngine; | |
using CsvHelper; | |
using UnityEditor; | |
using UnityEditor.Timeline; | |
using UnityEngine.Timeline; |
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 UNITY_EDITOR | |
using System.Collections.Generic; | |
using System.Reflection; | |
using TMPro; | |
using UnityEditor; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
public class ExcludeTMPDefaultFontAssetInBuild : IPreprocessBuildWithReport, IPostprocessBuildWithReport |
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
public class SomeClass | |
{ | |
[MenuItem("Assets/UnlockHideFlags")] | |
public static void UnlockHideFlags() | |
{ | |
var selected = Selection.objects[0]; | |
string targetPath = AssetDatabase.GetAssetPath(selected); | |
var asset = AssetDatabase.LoadAssetAtPath<Object>(targetPath); | |
EditorUtility.SetDirty(asset); |
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
public class DownloadAcbFromUnityCCD : MonoBehaviour | |
{ | |
public CriAtomSource atomSource; | |
public string cueSheetName = {cuesheet name}; | |
public string cueName = {cue name}; | |
public string addressableRemotePathUrl = {Addressable Remote Path Url}; | |
private IEnumerator Start() | |
{ | |
var request = UnityWebRequest.Get(addressableRemotePathUrl+cueSheetName+".acb"); |
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.IO; | |
using System.Text; | |
using UnityEngine; | |
using UnityEditor; | |
public class CriWareAcbConverter : Editor | |
{ | |
private static CriAtomWindowInfo projInfo = new CriAtomWindowInfo(); | |
private static string exportPath = Application.dataPath + "/CueDataConstants.cs"; |
NewerOlder