/// <summary> /// Returns a pooled asset manager query with a tag-criteria matching the specifiedd tag. /// This is a shorthand for retrieving a query from <see cref="AssetManagerQueryPool{T}"/> and manually calling <see cref="AddTypeCriteria(Type)"/>. /// </summary> public static AssetManagerQuery GetPooledTypeQuery(Type type) { var query = AssetManagerQueryPool <AssetManagerQuery> .Get(); query.AddTypeCriteria(type); return(query); }
/// <summary> /// Returns a pooled asset manager query with a tag-criteria matching the specifiedd tag. /// This is a shorthand for retrieving a query from <see cref="AssetManagerQueryPool{T}"/> and manually calling <see cref="AddNameCriteria(string)"/>. /// </summary> /// <param name="name">The name the query should match for.</param> public static AssetManagerQuery GetPooledNameQuery(string name) { var query = AssetManagerQueryPool <AssetManagerQuery> .Get(); query.AddTagCriteria(name); return(query); }
/// <summary> /// Returns a pooled asset manager query with a tag-criteria matching the specifiedd tag. /// This is a shorthand for retrieving a query from <see cref="AssetManagerQueryPool{T}"/> and manually calling <see cref="AddTypeCriteria{T}"/>. /// </summary> public static AssetManagerQuery GetPooledTypeQuery <T>() where T : UnityEngine.Object { var query = AssetManagerQueryPool <AssetManagerQuery> .Get(); query.AddTypeCriteria <T>(); return(query); }
/// <summary> /// Returns a pooled asset manager query with a tag-criteria matching the specifiedd tag. /// This is a shorthand for retrieving a query from <see cref="AssetManagerQueryPool{T}"/> and manually calling <see cref="AddTagCriteria(string)"/>. /// </summary> /// <param name="tag">The tag the query should match for.</param> public static AssetManagerQuery GetPooledTagQuery(string tag) { var query = AssetManagerQueryPool <AssetManagerQuery> .Get(); query.AddTagCriteria(tag); return(query); }