Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
I already learned how to create a folder like this, but I want to create an event as the folder's children, which codes can I use?

mycode:
        public static void CallCreatEvent(IWampRealmProxy realmProxy)
        {
            Console.WriteLine("Calling 'ak.wwise.core.create'");

            IDictionary<string, object> jsonArgsDictionary = new Dictionary<string, object>
            {
                {"parent", "\\Events\\Default Work Unit"},
                {"type", "Folder" },
                { "name", "newGun" },
                {"onNameConflict", "rename" },
                //{"children",
                //    {"type", "Event" },
                //    { "name", "newGunShoots" },
                //    {"onNameConflict", "rename" },
                //}
            };
            realmProxy.RpcCatalog.Invoke(
                new CreatCallBack(),
                new CallOptions(),
                "ak.wwise.core.object.create",
                new object[]{ }
                , jsonArgsDictionary
                );
        }
in Feature Requests by 君佑 (100 points)
reopened by 君佑

1 Answer

0 votes

I would suggest you use the new WAAPI C# client. It will make the code much easier.

Details here: https://www.audiokinetic.com/library/edge/?source=SDK&id=wamp_cs.html

For example:

// Create an object for our tests, using C# anonymous types
var testObj = await client.Call(
    ak.wwise.core.@object.create,
    new
    {
      name = "WaapiObject",
      parent = @"\Actor-Mixer Hierarchy\Default Work Unit",
      type = "ActorMixer",
      onNameConflict = "rename"
    }, null);
by Bernard R. (Audiokinetic) (35.8k points)
Thanks a lot!
The manual of 2019 version has a greatful upgrade from the 2018, it's became more useful.
...