Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor extensions placed in Editor folder doesn't link properly #24

Closed
Eastrall opened this issue May 19, 2023 · 1 comment
Closed

Editor extensions placed in Editor folder doesn't link properly #24

Eastrall opened this issue May 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Eastrall
Copy link
Owner

馃 Bug Report

Unity version: 2021.3.16f1
Rosalina version: 2.0.0

Description

When creating an UIDocument inside an Editor folder for editor extensions, unity places the UIDocument inside the Assembly-CSharp-Editor and the generated file is in the Assembly-CSharp project (folder: Assets/Rosalina/AutoGenerated)

Two partial classes cannot be in two different project, they must be in the same project.

Steps to Reproduce

  1. Create an Editor folder in Assets folder.
  2. Create an UIDocument in the Editor folder.
  3. Right click on the UIDocument -> Rosalina -> Generate UI Script
  4. Error on OnCreateGUI() method:

No defining declaration found for implementing declaration of partial method.

Current Behavior

The following C# error appears:

No defining declaration found for implementing declaration of partial method.

Expected Behavior

There should not be any error.

Possible Solution

A possible solution would be to have the generated file next to the UIDocument definition OR when dealing with an editor extension, create an Editor folder inside Assets/Rosalina/AutoGenerated folder.

@Eastrall Eastrall added the bug Something isn't working label May 19, 2023
@Eastrall
Copy link
Owner Author

Fixed in 3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant