3 Query Examples
Sebastien Phaneuf редактировал(а) эту страницу 2021-11-01 16:47:43 -04:00

Project queries

Find all textures bigger than 4K

p: t=Texture width>=<$number:4096,64,8192$>

query

Find all Materials using X shader

p: t=Material shader=Assets/Personal/ElliottC/Shaders/PBR_StandardSand.shadergraph

query

Find all Materials using X Texture

p: t=Material ref=Assets/Personal/Bondhan/Shaders/3DNoise_T.psd

query

Find all my scenes

p: t=SceneAsset

query

Find assets with tags having X

p: tag=MainCamera

query

Find all Assets referencing a specific prefab

p: ref="Assets/Prefabs/Crystal.prefab"

query

Find all Scenes using specific prefab

p: t:scene ref="Assets/Prefabs/Crystal.prefab"

query

Show me all prefab variants

p: prefab:variant

query

Show me all assets used in selected prefab

p: ref=”Assets/LEGO/Prefabs/LEGO Models/Buildings/Fence.prefab”

query

Find all scene objects with missing scripts

p: missing:scripts scene="Assets/Scenes/Test/SampleScene.unity"

query

Find all prefab objects with missing scripts

p: missing:scripts from=prefab

query

Scene Queries

Find all mesh in scene bigger than X poly/vertices

h: t=MeshFilter vertices>4096

query

h: t=MeshFilter faces>1024

query

Find all Renderers using X Material

h: t=MeshRenderer ref="Assets/Art/Environment/Materials/Architect/M_Metal01.mat"

query

Find all Cameras with X set to X

h: t:Camera #fieldofview>70

query

Find objects on a layer having properties

h: t:Light #m_layer=5 #m_Intensity>0.5

query

Find all mesh renderers in scene where contribute to GI = true

h: t:MeshRenderer #StaticShadowCaster=True

query

Find objects by layer / tag

h: tag=Player layer=9

query

Find all sprites drawn 9-slice style

h: t:SpriteRenderer #DrawMode=Sliced

query

Find all sprites drawn as normal sprite

h: t:SpriteRenderer -#DrawMode=Sliced

query

Find all GameObjects referencing a specific prefab

h: t:SpriteRenderer ref="Assets/Prefabs/Crystal.prefab"

query

Give me all meshes that has no LOD and the triangle count is larger than 2000

h: -t:LODGroup t:MeshRenderer vertices>2000

query

Give me the position and radius of all the lights that casts shadows

h: t:Light #m_Shadows.m_Type=Soft

query

Find all shadow casting light with a diameter bigger than 5m

h: t:Light #m_ShadowRadius<0.3

query

Find all objects lower than the ground

h: #m_LocalPosition<(,0,)

h: y<0

query

Find all mesh with more than 20 faces in the current scene

h: faces>1000

query

Get Playable Director

query

Show me all assets used in selected prefab

h: ref=”Assets/LEGO/Prefabs/LEGO Models/Buildings/Fence.prefab”

query