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 UniRx.Async; | |
public static class ADX2ExtensionsTask | |
{ | |
public static UniTask<CriAtomCueSheet>.Awaiter GetAwaiter(this CriAtomCueSheet cueSheet) | |
{ | |
UniTask<CriAtomCueSheet> task = new UniTask<CriAtomCueSheet>(async ()=> | |
{ | |
await UniTask.WaitWhile(() => cueSheet.IsLoading); | |
return cueSheet; |
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 DG.Tweening.Core; | |
using DG.Tweening.Plugins.Options; | |
using UnityEngine; | |
namespace DG.Tweening | |
{ | |
public static class CriAtomDotweenExtension | |
{ | |
#region AtomCraft |
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 static class ADX2ExtensionsTask | |
{ | |
public static Task<CriAtomCueSheet> ToTask(this CriAtomCueSheet cueSheet, CancellationToken ct = default) | |
{ | |
var tcs = new TaskCompletionSource<CriAtomCueSheet>(); | |
if (ct != CancellationToken.None) | |
{ | |
ct.Register(() => tcs.TrySetCanceled(ct)); | |
} |
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.IO; | |
using UnityEngine; | |
public class CriAtomRecoder: MonoBehaviour | |
{ | |
private WaveFileCreator waveFileCreator; | |
public string fileName = "recordedaudio"; | |
public const string Wavext = ".wav"; |
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.IO; | |
using System.Text; | |
public class WaveFileCreator | |
{ | |
private int numChannels = 2; | |
private int samplingRate = 44100; | |
private int numbites = 16; |
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 FontTextureFilterModeToPointImportSetting : AssetPostprocessor | |
{ | |
//このパスに対象のフォントファイルを入れる// | |
private static readonly string FontAssetPath = "Assets/Fonts"; | |
static void OnPostprocessAllAssets( | |
string[] importedAssets, |
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.Threading; | |
using System.Threading.Tasks; | |
public static class ADX2AddCueSheetToTask | |
{ | |
public static Task<CriAtomCueSheet> ToTask(this CriAtomCueSheet cueSheet, CancellationToken ct) | |
{ | |
var tcs = new TaskCompletionSource<CriAtomCueSheet>(); | |
if (ct != CancellationToken.None) |
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; | |
namespace CriWareExtensions | |
{ | |
public static class CriAtomExSequencerExtension | |
{ | |
public delegate void EventCbFunc(CriSequenceParam param); | |
public static void SetEventCallback(EventCbFunc callback) | |
{ |
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.Linq; | |
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class AutoAddImageToSplashScreen | |
{ | |
private static string IMAGEPATH = "Assets/Textures/SplashScreen/Image.png"; | |
private static string THISPATH = "Assets/Editor/AutoAddImageToSplashScreen.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; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
public static class AudioSourceExtention | |
{ | |
public static async Task PlayWithCompCallback(this AudioSource audioSource, AudioClip audioClip, float volume = 1f) |