Skip to content

Bug: Method usages not working right when used in prefab events without being applied to prefab. #33

@ThisSome1

Description

@ThisSome1

Describe the bug
When you use a method in unity events in a scene/prefab variant, on a prefab object, without applying it to the base prefab, the method doesn't get recognized by the parser and doesn't show correct references in the scene or prefab.
Also the references doesn't update on file change or frequently.

To Reproduce
Steps to reproduce the behavior:

  1. create a prefab with your component and a serialized event (any component can be used)
  2. place that prefab in the scene and use your component method in the unity event on that prefab
  3. save the scene and check for method usages in vs code.
  4. usages should be zero
    [in case of prefab variant you can do the steps replacing a scene with a prefab variant. the key is that the event component should be serialized in a separate file than the one calling your method.]

Expected behavior
Should detect and show usages correctly in this cases.

Screenshots
the serialized file looks like this when it's the case:

Image Image
  • OS: [Windows 11]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions