Skip to content

Chore: Revamped Package to standard package structure #150

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

EffanByte
Copy link
Contributor

@EffanByte EffanByte commented Jun 26, 2025

Used Unity's editor to rearrange all of the files into a standard layout given by https://docs.unity3d.com/6000.1/Documentation/Manual/cus-layout.html.
Primary changes include

  • Moved dependencies folder into separate Editor/ and Runtime/ folders
  • Created a new package.json file for unity and moved npm package file to Editor/
  • Edited CommandManager.cs and UnityBrowserBridge.cs files to only run when unity editor is the platform
  • Downgraded Castle Core to version 4.4.1 (file name not changed, shall update in next commit) to be compatible with NSubstitiute's .NET Standard 2.0 requirement. Previous version of 5.1.1 was using .NET Standard 2.1

@momintlh
Copy link
Collaborator

@EffanByte please write a description of the changes

Since the package can now be pulled from git URL, the path has been updated to /Packages/package instead of Assets/Package.
@momintlh
Copy link
Collaborator

Looking good! need to add node_modules.meta to .gitIgnore

The window is currently a menu item at the top. Functionalities that currently works are
- Refreshing to check node if node works
- Setting nodejs file path
- Going to the download page

Functionality Left to Implement:
- Checking for node_modules
- Running the install script
Changed file path to be consistent with folder location of git packages
Trying to fix the currently directory for npm install.
@momintlh
Copy link
Collaborator

momintlh commented Jul 1, 2025

Need to move node_modules to Assets/playroom/editor, we will also use this for prefabs which come with the package

- Automatically refreshes npm manager now after install
- Node Modules moved to Assets/Playroom from Packages/Playroom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants