@needle-tools/needle-component-compiler 3.0.13 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +5 -0
- package/dist/impl/csharp-compiler.js +2 -2
- package/package.json +1 -1
package/Changelog.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [3.0.14] - 2026-03-23
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fix `@type` override on array fields producing double array suffix (e.g. `Type[][]` instead of `Type[]`)
|
|
10
|
+
- Map `Euler` to `UnityEngine.Vector3` in C# output
|
|
11
|
+
|
|
7
12
|
## [3.0.12] - 2026-03-23
|
|
8
13
|
### Fixed
|
|
9
14
|
- Fix nullable array types (`Texture[] | null`, `Array<Texture> | null`, `Array<Texture | null>`) not emitting as arrays in C# and Blender output
|
|
@@ -263,8 +263,8 @@ var CSharpWriter = /** @class */ (function (_super) {
|
|
|
263
263
|
assignment = " = ".concat(initialValue);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
// Array suffix
|
|
267
|
-
if (isArray)
|
|
266
|
+
// Array suffix (skip when @type override is present — it defines the exact type)
|
|
267
|
+
if (isArray && !typeOverride)
|
|
268
268
|
csharpType += "[]";
|
|
269
269
|
// Editor type wrapping
|
|
270
270
|
var needsEditorWrap = isEditorType(csharpType.split("[")[0].split("<")[0]);
|