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
                );
        }
Feature Requests 君佑 (100 포인트) 로 부터
다시 오픈 君佑 로 부터

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.
...