menu
 

AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

0 支持
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
                );
        }
君佑 (100 ポイント) Feature Requests
君佑 閉鎖解除

回答 1

0 支持

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);
Bernard R. (Audiokinetic) (35.8k ポイント)
Thanks a lot!
The manual of 2019 version has a greatful upgrade from the 2018, it's became more useful.
...