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
);
}