Cannot Reproduce

Wwise Integration - Not able to set event

maxspsound 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3

Trying to get Wwise running in the graph, only missing link is that I can't choose an event, or more specifically, it does not keep the selected event.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Merci Lazlo !

I'm talking with the integration's team here to see what is up, Ben and Shawn told me they'd look into it. Sorry for the late reply been busy as heck ;)

I'll let you know what's up and post an example on the bolt site when working ! 

Satisfaction mark by maxspsound 3 years ago
Not a Bug

Salut Max!

So I tested with a minimal fake "event" class/struct because I don't have the Wwise source to test with the actual one.

I can't reproduce the issue at a core level: the property is editable and savable.

Here's my runtime test class:

using System;
public struct WwiseEvent
    public string name;

And here's my drawer class:

using UnityEditor;
using UnityEngine;
public class WwiseEventDrawer : PropertyDrawer
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        var name = property.FindPropertyRelative("name");
        name.stringValue = EditorGUI.TextField(position, label, name.stringValue);

After generating custom inspectors, it shows up properly in Bolt:

And the value is editable, and it persists in play mode.

So I'm guessing there's something wrong on your end!

If you give me the source for the PropertyDrawer I might be able to help you.