Initial Wwise Integration
Created wwise project Integrated inventory UI sounds Improved projectile weapon behavior (randomized start position, stopped them from self-destructing at target range when airburst is disabled)
This commit is contained in:
parent
b53e4aec8c
commit
db8c3c7779
1019 changed files with 76372 additions and 110 deletions
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise banks as Unity assets.
|
||||
public class WwiseAcousticTextureReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AcousticTexture; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 06f5301867c001e498bacd60229f97b4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise aux buses as Unity assets.
|
||||
public class WwiseAuxBusReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.AuxBus; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 349962f0079c3a144b1a5c347e639b60
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise banks as Unity assets.
|
||||
public class WwiseBankReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Soundbank; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c22c2793049fddb4f9d86aff4ed3758a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise events as Unity assets.
|
||||
public class WwiseEventReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Event; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6ef9016339588f1468b0a265018b774b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,328 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise objects as Unity assets.
|
||||
public abstract class WwiseObjectReference : UnityEngine.ScriptableObject
|
||||
{
|
||||
#region Serialized fields
|
||||
[AkShowOnly]
|
||||
[UnityEngine.SerializeField]
|
||||
private string objectName = string.Empty;
|
||||
|
||||
[AkShowOnly]
|
||||
[UnityEngine.SerializeField]
|
||||
private uint id = AkSoundEngine.AK_INVALID_UNIQUE_ID;
|
||||
|
||||
[AkShowOnly]
|
||||
[UnityEngine.SerializeField]
|
||||
private string guid = string.Empty;
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
/// <summary>
|
||||
/// The Wwise GUID which is represented by the ScriptableObject's asset file name.
|
||||
/// </summary>
|
||||
public System.Guid Guid
|
||||
{
|
||||
get { return string.IsNullOrEmpty(guid) ? System.Guid.Empty : new System.Guid(guid); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the Wwise object.
|
||||
/// </summary>
|
||||
public string ObjectName { get { return objectName; } }
|
||||
|
||||
/// <summary>
|
||||
/// The display name for the Wwise object.
|
||||
/// </summary>
|
||||
public virtual string DisplayName { get { return ObjectName; } }
|
||||
|
||||
/// <summary>
|
||||
/// The Wwise ID.
|
||||
/// </summary>
|
||||
public uint Id { get { return id; } }
|
||||
|
||||
/// <summary>
|
||||
/// The type of the Wwise object resource (for example: Event, State or Switch).
|
||||
/// </summary>
|
||||
public abstract WwiseObjectType WwiseObjectType { get; }
|
||||
#endregion
|
||||
|
||||
#if UNITY_EDITOR
|
||||
#region Creation and File Management
|
||||
private static readonly System.Collections.Generic.Dictionary<WwiseObjectType, System.Type> m_WwiseObjectReferenceClasses
|
||||
= new System.Collections.Generic.Dictionary<WwiseObjectType, System.Type>
|
||||
{
|
||||
{ WwiseObjectType.AcousticTexture, typeof(WwiseAcousticTextureReference) },
|
||||
{ WwiseObjectType.AuxBus, typeof(WwiseAuxBusReference) },
|
||||
{ WwiseObjectType.Soundbank, typeof(WwiseBankReference) },
|
||||
{ WwiseObjectType.Event, typeof(WwiseEventReference) },
|
||||
{ WwiseObjectType.GameParameter, typeof(WwiseRtpcReference) },
|
||||
{ WwiseObjectType.StateGroup, typeof(WwiseStateGroupReference) },
|
||||
{ WwiseObjectType.State, typeof(WwiseStateReference) },
|
||||
{ WwiseObjectType.SwitchGroup, typeof(WwiseSwitchGroupReference) },
|
||||
{ WwiseObjectType.Switch, typeof(WwiseSwitchReference) },
|
||||
{ WwiseObjectType.Trigger, typeof(WwiseTriggerReference) },
|
||||
};
|
||||
|
||||
private static WwiseObjectReference Create(WwiseObjectType wwiseObjectType)
|
||||
{
|
||||
System.Type type = null;
|
||||
if (m_WwiseObjectReferenceClasses.TryGetValue(wwiseObjectType, out type))
|
||||
return (WwiseObjectReference)CreateInstance(type);
|
||||
|
||||
return CreateInstance<WwiseObjectReference>();
|
||||
}
|
||||
|
||||
private static WwiseObjectReference FindExistingWwiseObject(WwiseObjectType wwiseObjectType, System.Guid guid, string path)
|
||||
{
|
||||
var asset = UnityEditor.AssetDatabase.LoadAssetAtPath<WwiseObjectReference>(path);
|
||||
if (asset)
|
||||
return asset;
|
||||
|
||||
System.Type type = null;
|
||||
if (!m_WwiseObjectReferenceClasses.TryGetValue(wwiseObjectType, out type))
|
||||
return null;
|
||||
|
||||
var guids = UnityEditor.AssetDatabase.FindAssets("t:" + type.Name);
|
||||
foreach (var assetGuid in guids)
|
||||
{
|
||||
var assetPath = UnityEditor.AssetDatabase.GUIDToAssetPath(assetGuid);
|
||||
asset = UnityEditor.AssetDatabase.LoadAssetAtPath<WwiseObjectReference>(assetPath);
|
||||
if (asset && asset.WwiseObjectType == wwiseObjectType && asset.Guid == guid)
|
||||
return asset;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private static bool UpdateWwiseObjectData(WwiseObjectReference wwiseObjectReference, string name)
|
||||
{
|
||||
var id = AkUtilities.ShortIDGenerator.Compute(name);
|
||||
if (wwiseObjectReference.objectName == name && wwiseObjectReference.id == id)
|
||||
return false;
|
||||
|
||||
wwiseObjectReference.objectName = name;
|
||||
wwiseObjectReference.id = id;
|
||||
return true;
|
||||
}
|
||||
|
||||
public static string GetParentPath(WwiseObjectType wwiseObjectType)
|
||||
{
|
||||
return System.IO.Path.Combine(AkWwiseEditorSettings.WwiseScriptableObjectRelativePath, wwiseObjectType.ToString());
|
||||
}
|
||||
|
||||
public static string GetAssetFileName(System.Guid guid)
|
||||
{
|
||||
return guid.ToString().ToUpper() + ".asset";
|
||||
}
|
||||
|
||||
public static WwiseObjectReference FindOrCreateWwiseObject(WwiseObjectType wwiseObjectType, string name, System.Guid guid)
|
||||
{
|
||||
var parentPath = GetParentPath(wwiseObjectType);
|
||||
var path = System.IO.Path.Combine(parentPath, GetAssetFileName(guid));
|
||||
var asset = FindExistingWwiseObject(wwiseObjectType, guid, path);
|
||||
var assetExists = asset != null;
|
||||
if (!assetExists)
|
||||
{
|
||||
AkUtilities.CreateFolder(parentPath);
|
||||
asset = Create(wwiseObjectType);
|
||||
asset.guid = guid.ToString().ToUpper();
|
||||
}
|
||||
|
||||
var changed = UpdateWwiseObjectData(asset, name);
|
||||
if (!assetExists)
|
||||
UnityEditor.AssetDatabase.CreateAsset(asset, path);
|
||||
else if (changed)
|
||||
UnityEditor.EditorUtility.SetDirty(asset);
|
||||
|
||||
return asset;
|
||||
}
|
||||
|
||||
public static void UpdateWwiseObject(WwiseObjectType wwiseObjectType, string name, System.Guid guid)
|
||||
{
|
||||
var path = System.IO.Path.Combine(GetParentPath(wwiseObjectType), GetAssetFileName(guid));
|
||||
var asset = FindExistingWwiseObject(wwiseObjectType, guid, path);
|
||||
if (asset && UpdateWwiseObjectData(asset, name))
|
||||
UnityEditor.EditorUtility.SetDirty(asset);
|
||||
}
|
||||
|
||||
public static void DeleteWwiseObject(WwiseObjectType wwiseObjectType, System.Guid guid)
|
||||
{
|
||||
var path = System.IO.Path.Combine(GetParentPath(wwiseObjectType), GetAssetFileName(guid));
|
||||
var guidString = UnityEditor.AssetDatabase.AssetPathToGUID(path);
|
||||
if (!string.IsNullOrEmpty(guidString))
|
||||
UnityEditor.AssetDatabase.DeleteAsset(path);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region WwiseMigration
|
||||
private class WwiseObjectData
|
||||
{
|
||||
public string objectName;
|
||||
}
|
||||
|
||||
private static System.Collections.Generic.Dictionary<WwiseObjectType, System.Collections.Generic.Dictionary<System.Guid, WwiseObjectData>> WwiseObjectDataMap
|
||||
= new System.Collections.Generic.Dictionary<WwiseObjectType, System.Collections.Generic.Dictionary<System.Guid, WwiseObjectData>>();
|
||||
|
||||
public static void ClearWwiseObjectDataMap()
|
||||
{
|
||||
WwiseObjectDataMap.Clear();
|
||||
}
|
||||
|
||||
public static void UpdateWwiseObjectDataMap(WwiseObjectType wwiseObjectType, string name, System.Guid guid)
|
||||
{
|
||||
System.Collections.Generic.Dictionary<System.Guid, WwiseObjectData> map = null;
|
||||
if (!WwiseObjectDataMap.TryGetValue(wwiseObjectType, out map))
|
||||
{
|
||||
map = new System.Collections.Generic.Dictionary<System.Guid, WwiseObjectData>();
|
||||
WwiseObjectDataMap.Add(wwiseObjectType, map);
|
||||
}
|
||||
|
||||
WwiseObjectData data = null;
|
||||
if (!map.TryGetValue(guid, out data))
|
||||
{
|
||||
data = new WwiseObjectData();
|
||||
map.Add(guid, data);
|
||||
}
|
||||
|
||||
data.objectName = name;
|
||||
}
|
||||
|
||||
public static WwiseObjectReference GetWwiseObjectForMigration(WwiseObjectType wwiseObjectType, byte[] valueGuid, int id)
|
||||
{
|
||||
if (valueGuid == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
System.Collections.Generic.Dictionary<System.Guid, WwiseObjectData> map = null;
|
||||
if (!WwiseObjectDataMap.TryGetValue(wwiseObjectType, out map) || map == null)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: Cannot find WwiseObjectReferences of type <WwiseObjectType." + wwiseObjectType + ">.");
|
||||
return null;
|
||||
}
|
||||
|
||||
var guid = System.Guid.Empty;
|
||||
WwiseObjectData data = null;
|
||||
|
||||
try
|
||||
{
|
||||
guid = new System.Guid(valueGuid);
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: Invalid guid for WwiseObjectReference of type <WwiseObjectType." + wwiseObjectType + ">.");
|
||||
return null;
|
||||
}
|
||||
|
||||
var formattedId = (uint)id;
|
||||
if (guid != System.Guid.Empty && !map.TryGetValue(guid, out data))
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: Cannot find guid <" + guid.ToString() + "> for WwiseObjectReference of type <WwiseObjectType." + wwiseObjectType + "> in Wwise Project.");
|
||||
|
||||
foreach (var pair in map)
|
||||
{
|
||||
if (AkUtilities.ShortIDGenerator.Compute(pair.Value.objectName) == formattedId)
|
||||
{
|
||||
guid = pair.Key;
|
||||
data = pair.Value;
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: Found guid <" + guid.ToString() + "> for <" + pair.Value.objectName + ">.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (data == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var objectReference = FindOrCreateWwiseObject(wwiseObjectType, data.objectName, guid);
|
||||
if (objectReference && objectReference.Id != formattedId)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: ID mismatch for WwiseObjectReference of type <WwiseObjectType." + wwiseObjectType + ">. Expected <" + formattedId + ">. Found <" + objectReference.Id + ">.");
|
||||
}
|
||||
|
||||
return objectReference;
|
||||
}
|
||||
#endregion
|
||||
#endif
|
||||
}
|
||||
|
||||
/// @brief Represents Wwise group value objects (such as states and switches) as Unity assets.
|
||||
public abstract class WwiseGroupValueObjectReference : WwiseObjectReference
|
||||
{
|
||||
#region Properties
|
||||
/// <summary>
|
||||
/// The group object reference.
|
||||
/// </summary>
|
||||
public abstract WwiseObjectReference GroupObjectReference { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The type of the Wwise object resource (for example: Event, State or Switch).
|
||||
/// </summary>
|
||||
public abstract WwiseObjectType GroupWwiseObjectType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The display name for the Wwise object.
|
||||
/// </summary>
|
||||
public override string DisplayName
|
||||
{
|
||||
get
|
||||
{
|
||||
#if AK_DISPLAY_GROUP_TYPES_WITH_SINGLE_NAME
|
||||
return ObjectName;
|
||||
#else
|
||||
var groupReference = GroupObjectReference;
|
||||
if (!groupReference)
|
||||
return ObjectName;
|
||||
|
||||
return groupReference.ObjectName + " / " + ObjectName;
|
||||
#endif // AK_DISPLAY_GROUP_TYPES_WITH_SINGLE_NAME
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public void SetupGroupObjectReference(string name, System.Guid guid)
|
||||
{
|
||||
var objectReference = FindOrCreateWwiseObject(GroupWwiseObjectType, name, guid);
|
||||
if (objectReference != GroupObjectReference)
|
||||
{
|
||||
GroupObjectReference = objectReference;
|
||||
UnityEditor.EditorUtility.SetDirty(this);
|
||||
}
|
||||
}
|
||||
|
||||
#region WwiseMigration
|
||||
public static WwiseGroupValueObjectReference GetWwiseObjectForMigration(WwiseObjectType wwiseObjectType, byte[] valueGuid, int id, byte[] groupGuid, int groupId)
|
||||
{
|
||||
var objectReference = GetWwiseObjectForMigration(wwiseObjectType, valueGuid, id);
|
||||
if (!objectReference)
|
||||
return null;
|
||||
|
||||
var groupValueObjectReference = objectReference as WwiseGroupValueObjectReference;
|
||||
if (!groupValueObjectReference)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: Not setting WwiseObjectReference since it is not a WwiseGroupValueObjectReference.");
|
||||
return null;
|
||||
}
|
||||
|
||||
var groupObjectReference = GetWwiseObjectForMigration(groupValueObjectReference.GroupWwiseObjectType, groupGuid, groupId);
|
||||
if (!groupObjectReference)
|
||||
{
|
||||
UnityEngine.Debug.LogWarning("WwiseUnity: Not setting WwiseObjectReference since its GroupObjectReference cannot be determined.");
|
||||
return null;
|
||||
}
|
||||
|
||||
groupValueObjectReference.GroupObjectReference = groupObjectReference;
|
||||
UnityEditor.EditorUtility.SetDirty(groupValueObjectReference);
|
||||
return groupValueObjectReference;
|
||||
}
|
||||
#endregion
|
||||
#endif
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 711311f5a3d011a4a9cfbd5297e0ef17
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration of Wwise object types that can be found in a Wwise project.
|
||||
/// </summary>
|
||||
public enum WwiseObjectType
|
||||
{
|
||||
None,
|
||||
AuxBus,
|
||||
Bus,
|
||||
Event,
|
||||
Folder,
|
||||
PhysicalFolder,
|
||||
Project,
|
||||
Soundbank,
|
||||
State,
|
||||
StateGroup,
|
||||
Switch,
|
||||
SwitchGroup,
|
||||
WorkUnit,
|
||||
GameParameter,
|
||||
Trigger,
|
||||
AcousticTexture
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 36da97e70be47ef40ad74c5296e76f2f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise RTPCs as Unity assets.
|
||||
public class WwiseRtpcReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.GameParameter; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b970bf2906600d142bf17beed92ebdb7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise state groups as Unity assets.
|
||||
public class WwiseStateGroupReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.StateGroup; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0e72cc3e5b2e00e41bd595068b549224
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise states as Unity assets.
|
||||
public class WwiseStateReference : WwiseGroupValueObjectReference
|
||||
{
|
||||
[AkShowOnly]
|
||||
[UnityEngine.SerializeField]
|
||||
private WwiseStateGroupReference WwiseStateGroupReference;
|
||||
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.State; } }
|
||||
|
||||
public override WwiseObjectReference GroupObjectReference
|
||||
{
|
||||
get { return WwiseStateGroupReference; }
|
||||
set { WwiseStateGroupReference = value as WwiseStateGroupReference; }
|
||||
}
|
||||
|
||||
public override WwiseObjectType GroupWwiseObjectType { get { return WwiseObjectType.StateGroup; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: da2228710d4534f4bbbf09cae8e507e0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise switch groups as Unity assets.
|
||||
public class WwiseSwitchGroupReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.SwitchGroup; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ead763eca402fa047a3594e01b51b4f6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise states as Unity assets.
|
||||
public class WwiseSwitchReference : WwiseGroupValueObjectReference
|
||||
{
|
||||
[AkShowOnly]
|
||||
[UnityEngine.SerializeField]
|
||||
private WwiseSwitchGroupReference WwiseSwitchGroupReference;
|
||||
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Switch; } }
|
||||
|
||||
public override WwiseObjectReference GroupObjectReference
|
||||
{
|
||||
get { return WwiseSwitchGroupReference; }
|
||||
set { WwiseSwitchGroupReference = value as WwiseSwitchGroupReference; }
|
||||
}
|
||||
|
||||
public override WwiseObjectType GroupWwiseObjectType { get { return WwiseObjectType.SwitchGroup; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: af5d3be874e467c4ba76e417c2fac362
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// @brief Represents Wwise triggers as Unity assets.
|
||||
public class WwiseTriggerReference : WwiseObjectReference
|
||||
{
|
||||
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Trigger; } }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6b1f2e8fb79fbe04a8f34e9b2da1c8aa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue