Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CustomObjectIndexerAttribute(Type)

Register a new Indexing function bound to the specific type.
Read time 1 minuteLast updated 8 days ago

Definition

public CustomObjectIndexerAttribute(Type type)

Parameters

type

Type of object to be indexed.

Examples

[CustomObjectIndexer(typeof(SceneAsset), version = 2 /* update me when the code below changes */)]internal static void IndexSceneName(CustomObjectIndexerTarget context, ObjectIndexer indexer){ if (!(context.target is SceneAsset sceneAsset)) return; indexer.IndexWordComponents(context.documentIndex, sceneAsset.name);}