A demo for using CriWare plugin.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
public class LoadSound : ScriptableObject
|
||||
{
|
||||
UmaViewerMain Main => UmaViewerMain.Instance;
|
||||
public struct UmaSoundInfo
|
||||
{
|
||||
public string acbPath;
|
||||
public string awbPath;
|
||||
}
|
||||
|
||||
|
||||
public UmaSoundInfo getSoundPath(string name) {
|
||||
UmaSoundInfo info;
|
||||
info.acbPath = UmaViewerBuilder.GetABPath(Main.AbList.FirstOrDefault(a => a.Name.Contains(name) && a.Name.EndsWith("acb")));
|
||||
info.awbPath = UmaViewerBuilder.GetABPath(Main.AbList.FirstOrDefault(a => a.Name.Contains(name) && a.Name.EndsWith("awb")));
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef2081963b0a68f4e8558e38b24cc264
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user