@needle-tools/needle-component-compiler 3.0.12 → 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 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
@@ -46,6 +46,7 @@ var TYPE_MAP = {
46
46
  "Vector3": "UnityEngine.Vector3",
47
47
  "Vector4": "UnityEngine.Vector4",
48
48
  "Quaternion": "UnityEngine.Quaternion",
49
+ "Euler": "UnityEngine.Vector3",
49
50
  "Color": "UnityEngine.Color",
50
51
  "RGBAColor": "UnityEngine.Color",
51
52
  "THREE.Color": "UnityEngine.Color",
@@ -262,8 +263,8 @@ var CSharpWriter = /** @class */ (function (_super) {
262
263
  assignment = " = ".concat(initialValue);
263
264
  }
264
265
  }
265
- // Array suffix
266
- if (isArray)
266
+ // Array suffix (skip when @type override is present — it defines the exact type)
267
+ if (isArray && !typeOverride)
267
268
  csharpType += "[]";
268
269
  // Editor type wrapping
269
270
  var needsEditorWrap = isEditorType(csharpType.split("[")[0].split("<")[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/needle-component-compiler",
3
- "version": "3.0.12",
3
+ "version": "3.0.14",
4
4
  "description": "Compile Editor components for Needle Engine for C# and Blender",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/cli.js",