Skip to main content

unity_reflect

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: docs  ·  Module: services.tools.unity_reflect

Description

Inspect Unity's live C# API via reflection. Use this to verify that classes, methods, and properties exist before writing C# code — training data may be wrong or outdated.

Actions:

  • get_type: Member summary (names only) for a class. Requires class_name.
  • get_member: Full signature detail for one member. Requires class_name + member_name.
  • search: Type name search across loaded assemblies. Requires query. Optional scope.

Parameters

NameTypeRequiredDescription
actionstryesThe reflection action to perform.
class_namestr | NoneFully qualified or simple C# class name.
member_namestr | NoneMethod, property, or field name to inspect.
querystr | NoneSearch query for type name search.
scopestr | NoneAssembly scope for search: unity, packages, project, all.

Returns

A dict containing the Unity response. The exact shape depends on the action.

Examples

No examples yet. Add usage examples here — they will be preserved across regenerations.