Skip to content

update: Json schema#159

Merged
IvanMurzak merged 26 commits intomainfrom
dev
Jul 23, 2025
Merged

update: Json schema#159
IvanMurzak merged 26 commits intomainfrom
dev

Conversation

@IvanMurzak
Copy link
Owner

@IvanMurzak IvanMurzak commented Jul 4, 2025

This pull request introduces several changes across different areas of the project, including enhancements to Unity scene setup, improvements to API tooling, and updates to metadata files. Below is a breakdown of the most significant changes:

Unity Scene Setup

  • Added a new Unity scene file NoLightmap.unity with default settings for occlusion culling, render settings, lightmap settings, navigation mesh settings, and basic GameObjects like a camera and directional light. This provides a foundational scene for further development.
  • Created a corresponding .meta file for the new NoLightmap.unity scene to ensure proper asset tracking in Unity.

API Tooling Enhancements

  • Updated the GameObject.DestroyComponents and GameObject.Modify APIs to use the GetTypeName(pretty: false) method for improved type name formatting in error messages and logs. This enhances clarity and debugging. [1] [2] [3] [4]
  • Improved the GameObject.Modify API by reordering method parameters and refining descriptions to better align with expected usage patterns.
  • Updated the Reflection.MethodCall and Reflection APIs to use named parameters for logger injection, improving code readability and maintainability. [1] [2] [3]

Metadata Updates

  • Added .meta files for test runner-related scripts (e.g., TestFilterParameters, TestResultCollector) to ensure Unity tracks these assets correctly. These changes standardize asset metadata across the project. [1] [2] [3] [4] [5] [6]

Miscellaneous

  • Included a new tag, HDRP, in the .vscode/settings.json file, likely for improved IntelliSense or project-specific configuration.

These changes collectively enhance the project's functionality, maintainability, and development environment setup.

Updated ReflectorNet.dll binary and incremented the project version to 0.9.2 in both package.json and Server/version to reflect the new changes.
@IvanMurzak IvanMurzak requested a review from Copilot July 4, 2025 13:47
@IvanMurzak IvanMurzak self-assigned this Jul 4, 2025
@IvanMurzak IvanMurzak added the bug Something isn't working label Jul 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the project version to 0.9.2 to align with the new ReflectorNet.dll binary switch from netstandard2.1 to netstandard2.0.

  • Bumped package.json version to 0.9.2
  • Updated Server/version file to 0.9.2

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
Assets/root/package.json Updated "version" from 0.9.1 to 0.9.2
Assets/root/Server/version Updated version string to 0.9.2

IvanMurzak and others added 25 commits July 15, 2025 22:22
Replaced the ReflectorNet package reference with a direct DLL reference in the server project and added the corresponding .meta file. Updated ObjectRefConverter to throw an exception if ObjectRef type name is null. Adjusted test code to use JsonUtils.Schema for schema and property lookups.
…l.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…or logging and padding for better readability
Added RS_UnityEngineBounds, RS_UnityEngineBoundsInt, RS_UnityEngineRect, and RS_UnityEngineRectInt converters and registered them in startup. Improved logging in reflection converters to include convertor type and better error/success messages. Enhanced type validation for GameObject field/property assignment and updated Sprite/Material converters for more informative output.
… for improved readability

- Updated GameObject.DestroyComponents.cs to use GetTypeName for component type logging.
- Modified GameObject.Modify.cs to utilize GetTypeName for error messages related to missing components.
- Changed GameObject.cs to replace FullName with GetTypeName in error messages for invalid property and field types.
- Refactored Reflection.cs to use IsMatch for parameter type checking instead of FullName.
- Added necessary using directives for ReflectorNet in multiple files.
- Updated Color32Converter, ColorConverter, Matrix4x4Converter, QuaternionConverter, Vector2Converter, Vector3Converter, and Vector4Converter to use GetTypeId and JsonUtils.Schema for JSON schema definitions.
- Enhanced error messages in RS_UnityEngineGameObject.Editor.cs and RS_UnityEngineGameObject.cs to use GetTypeName for better clarity.
- Updated ObjectRefConverter.cs to use GetTypeId for ObjectRef type identification.
- Adjusted test cases in TestJsonSchema.cs and TestJsonSerialize.cs to utilize GetTypeName for improved error reporting.
…packages-lock.json for improved compatibility and performance
@IvanMurzak IvanMurzak changed the title fix: ReflectorNet.dll switched from netstandard2.1 to netstandard2.0 update: Json schema Jul 23, 2025
@IvanMurzak IvanMurzak merged commit dbb596b into main Jul 23, 2025
27 checks passed
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

2 participants