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; | |
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 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
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 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
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.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"; |
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
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); |