unity-types 6000.3.0
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/README.md +42 -0
- package/UnityEngine.AudioModule.d.ts +8 -0
- package/UnityEngine.CoreModule.d.ts +8 -0
- package/UnityEngine.InputLegacyModule.d.ts +8 -0
- package/UnityEngine.PhysicsModule.d.ts +8 -0
- package/UnityEngine.UIElementsModule.d.ts +10 -0
- package/index.d.ts +8 -0
- package/package.json +22 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# unity-types
|
|
2
|
+
|
|
3
|
+
TypeScript definitions for Unity, designed for use with [OneJS](https://onejs.com).
|
|
4
|
+
|
|
5
|
+
> **Note:** Only Unity 6000.3 and later versions are supported.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Install the version matching your Unity version:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install unity-types@6000.3.0
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
The types are automatically available after installation:
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
const go = new CS.UnityEngine.GameObject("MyObject")
|
|
21
|
+
const pos: CS.UnityEngine.Vector3 = go.transform.position
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Included Assemblies
|
|
25
|
+
|
|
26
|
+
- `UnityEngine.CoreModule` - GameObject, Transform, Vector3, Color, etc.
|
|
27
|
+
- `UnityEngine.UIElementsModule` - VisualElement, Button, Label, etc.
|
|
28
|
+
- `UnityEngine.InputLegacyModule` - Input, KeyCode, etc.
|
|
29
|
+
- `UnityEngine.PhysicsModule` - Rigidbody, Collider, Physics, etc.
|
|
30
|
+
- `UnityEngine.AudioModule` - AudioSource, AudioClip, etc.
|
|
31
|
+
|
|
32
|
+
## Versioning
|
|
33
|
+
|
|
34
|
+
Package versions match Unity versions directly:
|
|
35
|
+
|
|
36
|
+
| Package Version | Unity Version |
|
|
37
|
+
|-----------------|---------------|
|
|
38
|
+
| `6000.3.0` | Unity 6000.3 |
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Unity 6000.3 Type Definitions
|
|
2
|
+
// https://github.com/Singtaa/unity-types
|
|
3
|
+
|
|
4
|
+
/// <reference path="./UnityEngine.CoreModule.d.ts" />
|
|
5
|
+
/// <reference path="./UnityEngine.UIElementsModule.d.ts" />
|
|
6
|
+
/// <reference path="./UnityEngine.InputLegacyModule.d.ts" />
|
|
7
|
+
/// <reference path="./UnityEngine.PhysicsModule.d.ts" />
|
|
8
|
+
/// <reference path="./UnityEngine.AudioModule.d.ts" />
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "unity-types",
|
|
3
|
+
"version": "6000.3.0",
|
|
4
|
+
"description": "TypeScript definitions for Unity 6000.3",
|
|
5
|
+
"types": "index.d.ts",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Singtaa/unity-types.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"unity",
|
|
12
|
+
"typescript",
|
|
13
|
+
"types",
|
|
14
|
+
"onejs"
|
|
15
|
+
],
|
|
16
|
+
"author": "Singtaa",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/Singtaa/unity-types/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/Singtaa/unity-types#readme"
|
|
22
|
+
}
|