ドキュメント

Unity Engine

Unity Engine

CustomObjectIndexerAttribute(Type)

Register a new Indexing function bound to the specific type.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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);}