/// <summary> /// Enqueues a waapi command to fetch the specified object and all of its ancestors in the heirarchy. /// Passes the list of WwiseObjectInfo containing the specified object and ancestors to the callback. /// </summary> /// <param name="guid">GUID of the target object.</param> /// <param name="options">Specifies which object properties to include in the response</param> /// <param name="callback">Function accepting a list of WwiseObjectInfo.</param> public static void GetWwiseObjectAndAncestors <T>(System.Guid guid, ReturnOptions options, GetResultListDelegate <T> callback) { var args = new WaqlArgs($"from object \"{guid:B}\" select this, ancestors orderby path"); QueueCommandWithReturnWwiseObjects(args, options, callback); }