文档

Unity Engine

Unity Engine

QueryBuilder

Indicates that the search propositions are fetched for the query block selector.
阅读时间1 分钟最后更新于 1 个月前

Definition

QueryBuilder = 4

Examples

static IEnumerable<SearchProposition> EnumerateDecalPropositions(SearchContext context, SearchPropositionOptions options){ if (!options.flags.HasAny(SearchPropositionFlags.QueryBuilder)) yield break; var shaderIcon = EditorGUIUtility.Load("Shader Icon") as Texture2D; yield return new SearchProposition(category: "Affects", label: "Base Color", replacement: "affectalbedo=1", icon: shaderIcon); yield return new SearchProposition(category: "Affects", label: "Normal", replacement: "affectnormal=1", icon: shaderIcon); yield return new SearchProposition(category: "Affects", label: "Metal", replacement: "affectmetal=1", icon: shaderIcon); yield return new SearchProposition(category: "Affects", label: "Ambient Occlusion", replacement: "affectao=1", icon: shaderIcon); yield return new SearchProposition(category: "Affects", label: "Smoothness", replacement: "affectsmoothness=1", icon: shaderIcon); yield return new SearchProposition(category: "Affects", label: "Emission", replacement: "affectemission=1", icon: shaderIcon);}