unity-types 6000.3.3 → 6000.3.7
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/OneJS.d.ts +16 -16
- package/README.md +3 -3
- package/Unity.InputSystem.d.ts +11 -11
- package/UnityEngine.CoreModule.d.ts +90 -85
- package/UnityEngine.UIElementsModule.d.ts +6 -6
- package/_system.d.ts +11 -2
- package/index.d.ts +4 -0
- package/package.json +1 -1
package/OneJS.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ declare namespace CS {
|
|
|
12
12
|
public static GetPeakHandleCount(): number;
|
|
13
13
|
public static ResetHandleMonitoring(): void;
|
|
14
14
|
public static RegisterStructType<T>(): void;
|
|
15
|
-
public static RegisterStructType($type: System.
|
|
15
|
+
public static RegisterStructType($type: System.TypeLike): void;
|
|
16
16
|
public static RegisterStructType<T>($serializer: System.Func$2<T, string>, $deserializer: System.Func$2<System.Collections.Generic.Dictionary$2<string, any>, T>): void;
|
|
17
|
-
public static IsSerializableStruct($type: System.
|
|
17
|
+
public static IsSerializableStruct($type: System.TypeLike): boolean;
|
|
18
18
|
public static SerializeStruct($value: any): string;
|
|
19
|
-
public static DeserializeStruct($json: string, $targetType: System.
|
|
20
|
-
public static DeserializeFromDict($dict: System.Collections.Generic.Dictionary$2<string, any>, $targetType: System.
|
|
19
|
+
public static DeserializeStruct($json: string, $targetType: System.TypeLike): any;
|
|
20
|
+
public static DeserializeFromDict($dict: System.Collections.Generic.Dictionary$2<string, any>, $targetType: System.TypeLike): any;
|
|
21
21
|
public static RegisterTask($task: System.Threading.Tasks.Task): number;
|
|
22
|
-
public static IsTaskType($type: System.
|
|
22
|
+
public static IsTaskType($type: System.TypeLike): boolean;
|
|
23
23
|
public static ProcessCompletedTasks($ctx: QuickJSContext): number;
|
|
24
24
|
public static ClearPendingTasks(): void;
|
|
25
25
|
public static GetPendingTaskCount(): number;
|
|
@@ -172,7 +172,7 @@ declare namespace CS {
|
|
|
172
172
|
public static Struct<T>($pack: QuickJSNative.StructPacker$1<T>, $unpack?: QuickJSNative.StructUnpacker$1<T>, $fromDict?: QuickJSNative.DictConverter$1<T>): void;
|
|
173
173
|
public static BlittableStruct<T>(): void;
|
|
174
174
|
public static HasStructHandler<T>(): boolean;
|
|
175
|
-
public static HasStructHandler($type: System.
|
|
175
|
+
public static HasStructHandler($type: System.TypeLike): boolean;
|
|
176
176
|
public static Clear(): void;
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -417,7 +417,7 @@ declare namespace CS {
|
|
|
417
417
|
class TypeAnalyzer {
|
|
418
418
|
protected [__keep_incompatibility]: never;
|
|
419
419
|
constructor($options?: OneJS.Editor.TypeGenerator.AnalyzerOptions);
|
|
420
|
-
public AnalyzeType($type: System.
|
|
420
|
+
public AnalyzeType($type: System.TypeLike): OneJS.Editor.TypeGenerator.TsTypeInfo;
|
|
421
421
|
public AnalyzeTypes($types: System.Collections.Generic.IEnumerable$1<System.Type>): System.Collections.Generic.List$1<OneJS.Editor.TypeGenerator.TsTypeInfo>;
|
|
422
422
|
}
|
|
423
423
|
|
|
@@ -432,12 +432,12 @@ declare namespace CS {
|
|
|
432
432
|
|
|
433
433
|
class TypeMapper {
|
|
434
434
|
protected [__keep_incompatibility]: never;
|
|
435
|
-
public static MapType($type: System.
|
|
436
|
-
public static ShouldSkipType($type: System.
|
|
437
|
-
public static ShouldEmitAsAny($type: System.
|
|
435
|
+
public static MapType($type: System.TypeLike): OneJS.Editor.TypeGenerator.TsTypeRef;
|
|
436
|
+
public static ShouldSkipType($type: System.TypeLike): boolean;
|
|
437
|
+
public static ShouldEmitAsAny($type: System.TypeLike): boolean;
|
|
438
438
|
public static SanitizeTypeName($name: string): string;
|
|
439
439
|
public static ShouldSkipMember($member: System.Reflection.MemberInfo): boolean;
|
|
440
|
-
public static GetTsFriendlyName($type: System.
|
|
440
|
+
public static GetTsFriendlyName($type: System.TypeLike): string;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
class TypeScriptEmitter {
|
|
@@ -655,12 +655,12 @@ declare namespace CS {
|
|
|
655
655
|
class TypeGenerator {
|
|
656
656
|
protected [__keep_incompatibility]: never;
|
|
657
657
|
public static readonly DefaultOutputPath: string;
|
|
658
|
-
public static Generate($outputPath: string, ...types: System.
|
|
658
|
+
public static Generate($outputPath: string, ...types: System.TypeLike[]): void;
|
|
659
659
|
public static GenerateFromAssembly($outputPath: string, $assemblyNamePattern: string): void;
|
|
660
660
|
public static GenerateFromAssemblies($outputPath: string, ...assemblyNamePatterns: string[]): void;
|
|
661
661
|
public static GenerateFromNamespace($outputPath: string, $namespaceName: string): void;
|
|
662
662
|
public static GenerateProjectTypes($outputPath?: string): void;
|
|
663
|
-
public static GenerateToResult(...types: System.
|
|
663
|
+
public static GenerateToResult(...types: System.TypeLike[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
664
664
|
public static Create(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
665
665
|
public static CombinePresets(...results: OneJS.Editor.TypeGenerator.TypeGeneratorResult[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
666
666
|
public static GetAssemblies($namePattern: string): System.Collections.Generic.IEnumerable$1<System.Reflection.Assembly>;
|
|
@@ -687,9 +687,9 @@ declare namespace CS {
|
|
|
687
687
|
public get Types(): System.Collections.Generic.IReadOnlyCollection$1<System.Type>;
|
|
688
688
|
constructor();
|
|
689
689
|
public AddType<T>(): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
690
|
-
public AddType($type: System.
|
|
690
|
+
public AddType($type: System.TypeLike): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
691
691
|
public AddTypeByName($fullTypeName: string): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
692
|
-
public AddTypes(...types: System.
|
|
692
|
+
public AddTypes(...types: System.TypeLike[]): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
693
693
|
public AddTypes($types: System.Collections.Generic.IEnumerable$1<System.Type>): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
694
694
|
public AddAssemblyByName($assemblyNamePattern: string): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
695
695
|
public AddAssembly($assembly: System.Reflection.Assembly): OneJS.Editor.TypeGenerator.TypeGeneratorBuilder;
|
|
@@ -719,7 +719,7 @@ declare namespace CS {
|
|
|
719
719
|
public static Audio(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
720
720
|
public static InputSystem(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
721
721
|
public static All(): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
722
|
-
public static CreateCustom($name: string, ...types: System.
|
|
722
|
+
public static CreateCustom($name: string, ...types: System.TypeLike[]): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
723
723
|
public static FromNamespace($namespaceName: string): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
724
724
|
public static FromAssembly($assemblyPattern: string): OneJS.Editor.TypeGenerator.TypeGeneratorResult;
|
|
725
725
|
}
|
package/README.md
CHANGED
|
@@ -47,12 +47,12 @@ pos.x = 10
|
|
|
47
47
|
const button = new CS.UnityEngine.UIElements.Button()
|
|
48
48
|
button.text = "Click me"
|
|
49
49
|
|
|
50
|
-
// Physics
|
|
51
|
-
const rb
|
|
50
|
+
// Physics — generic overloads return the correct type directly
|
|
51
|
+
const rb = go.AddComponent(CS.UnityEngine.Rigidbody) // Type: Rigidbody
|
|
52
52
|
rb.mass = 5
|
|
53
53
|
|
|
54
54
|
// Audio
|
|
55
|
-
const audio
|
|
55
|
+
const audio = go.GetComponent(CS.UnityEngine.AudioSource) // Type: AudioSource
|
|
56
56
|
audio.Play()
|
|
57
57
|
|
|
58
58
|
// Web requests
|
package/Unity.InputSystem.d.ts
CHANGED
|
@@ -433,7 +433,7 @@ declare namespace CS {
|
|
|
433
433
|
public WithCancelingThrough($binding: string): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
434
434
|
public WithCancelingThrough($control: UnityEngine.InputSystem.InputControl): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
435
435
|
public WithExpectedControlType($layoutName: string): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
436
|
-
public WithExpectedControlType($type: System.
|
|
436
|
+
public WithExpectedControlType($type: System.TypeLike): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
437
437
|
public WithExpectedControlType<TControl extends UnityEngine.InputSystem.InputControl>(): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
438
438
|
public WithTargetBinding($bindingIndex: number): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
439
439
|
public WithBindingMask($bindingMask: UnityEngine.InputSystem.InputBinding | null): UnityEngine.InputSystem.InputActionRebindingExtensions.RebindingOperation;
|
|
@@ -759,7 +759,7 @@ declare namespace CS {
|
|
|
759
759
|
public static get version(): System.Version;
|
|
760
760
|
public static runInBackground: boolean;
|
|
761
761
|
public static get metrics(): UnityEngine.InputSystem.LowLevel.InputMetrics;
|
|
762
|
-
public static RegisterLayout($type: System.
|
|
762
|
+
public static RegisterLayout($type: System.TypeLike, $name?: string, $matches?: UnityEngine.InputSystem.Layouts.InputDeviceMatcher | null): void;
|
|
763
763
|
public static RegisterLayout<T extends UnityEngine.InputSystem.InputControl>($name?: string, $matches?: UnityEngine.InputSystem.Layouts.InputDeviceMatcher | null): void;
|
|
764
764
|
public static RegisterLayout($json: string, $name?: string, $matches?: UnityEngine.InputSystem.Layouts.InputDeviceMatcher | null): void;
|
|
765
765
|
public static RegisterLayoutOverride($json: string, $name?: string): void;
|
|
@@ -775,7 +775,7 @@ declare namespace CS {
|
|
|
775
775
|
public static LoadLayout<TControl extends UnityEngine.InputSystem.InputControl>(): UnityEngine.InputSystem.Layouts.InputControlLayout;
|
|
776
776
|
public static GetNameOfBaseLayout($layoutName: string): string;
|
|
777
777
|
public static IsFirstLayoutBasedOnSecond($firstLayoutName: string, $secondLayoutName: string): boolean;
|
|
778
|
-
public static RegisterProcessor($type: System.
|
|
778
|
+
public static RegisterProcessor($type: System.TypeLike, $name?: string): void;
|
|
779
779
|
public static RegisterProcessor<T>($name?: string): void;
|
|
780
780
|
public static TryGetProcessor($name: string): System.Type;
|
|
781
781
|
public static ListProcessors(): System.Collections.Generic.IEnumerable$1<string>;
|
|
@@ -787,7 +787,7 @@ declare namespace CS {
|
|
|
787
787
|
public static FlushDisconnectedDevices(): void;
|
|
788
788
|
public static GetDevice($nameOrLayout: string): UnityEngine.InputSystem.InputDevice;
|
|
789
789
|
public static GetDevice<TDevice extends UnityEngine.InputSystem.InputDevice>(): TDevice;
|
|
790
|
-
public static GetDevice($type: System.
|
|
790
|
+
public static GetDevice($type: System.TypeLike): UnityEngine.InputSystem.InputDevice;
|
|
791
791
|
public static GetDevice<TDevice extends UnityEngine.InputSystem.InputDevice>($usage: UnityEngine.InputSystem.Utilities.InternedString): TDevice;
|
|
792
792
|
public static GetDevice<TDevice extends UnityEngine.InputSystem.InputDevice>($usage: string): TDevice;
|
|
793
793
|
public static GetDeviceById($deviceId: number): UnityEngine.InputSystem.InputDevice;
|
|
@@ -818,11 +818,11 @@ declare namespace CS {
|
|
|
818
818
|
public static QueueConfigChangeEvent($device: UnityEngine.InputSystem.InputDevice, $time?: number): void;
|
|
819
819
|
public static QueueTextEvent($device: UnityEngine.InputSystem.InputDevice, $character: number, $time?: number): void;
|
|
820
820
|
public static Update(): void;
|
|
821
|
-
public static RegisterInteraction($type: System.
|
|
821
|
+
public static RegisterInteraction($type: System.TypeLike, $name?: string): void;
|
|
822
822
|
public static RegisterInteraction<T>($name?: string): void;
|
|
823
823
|
public static TryGetInteraction($name: string): System.Type;
|
|
824
824
|
public static ListInteractions(): System.Collections.Generic.IEnumerable$1<string>;
|
|
825
|
-
public static RegisterBindingComposite($type: System.
|
|
825
|
+
public static RegisterBindingComposite($type: System.TypeLike, $name: string): void;
|
|
826
826
|
public static RegisterBindingComposite<T>($name?: string): void;
|
|
827
827
|
public static TryGetBindingComposite($name: string): System.Type;
|
|
828
828
|
public static DisableAllEnabledActions(): void;
|
|
@@ -3546,7 +3546,7 @@ declare namespace CS {
|
|
|
3546
3546
|
public FindControl($path: UnityEngine.InputSystem.Utilities.InternedString): UnityEngine.InputSystem.Layouts.InputControlLayout.ControlItem | null;
|
|
3547
3547
|
public FindControlIncludingArrayElements($path: string, $arrayIndex: $Out<number>): UnityEngine.InputSystem.Layouts.InputControlLayout.ControlItem | null;
|
|
3548
3548
|
public GetValueType(): System.Type;
|
|
3549
|
-
public static FromType($name: string, $type: System.
|
|
3549
|
+
public static FromType($name: string, $type: System.TypeLike): UnityEngine.InputSystem.Layouts.InputControlLayout;
|
|
3550
3550
|
public ToJson(): string;
|
|
3551
3551
|
public static FromJson($json: string): UnityEngine.InputSystem.Layouts.InputControlLayout;
|
|
3552
3552
|
public MergeLayout($other: UnityEngine.InputSystem.Layouts.InputControlLayout): void;
|
|
@@ -4308,7 +4308,7 @@ declare namespace CS {
|
|
|
4308
4308
|
public bitOffset: number;
|
|
4309
4309
|
public sizeInBits: number;
|
|
4310
4310
|
public static GetSizeOfPrimitiveFormatInBits($type: UnityEngine.InputSystem.Utilities.FourCC): number;
|
|
4311
|
-
public static GetPrimitiveFormatFromType($type: System.
|
|
4311
|
+
public static GetPrimitiveFormatFromType($type: System.TypeLike): UnityEngine.InputSystem.Utilities.FourCC;
|
|
4312
4312
|
}
|
|
4313
4313
|
|
|
4314
4314
|
class InputStateHistory implements System.Collections.Generic.IEnumerable$1<UnityEngine.InputSystem.LowLevel.InputStateHistory.Record>, System.Collections.IEnumerable, UnityEngine.InputSystem.LowLevel.IInputStateChangeMonitor, System.IDisposable {
|
|
@@ -4877,7 +4877,7 @@ declare namespace CS {
|
|
|
4877
4877
|
public name: string;
|
|
4878
4878
|
public value: UnityEngine.InputSystem.Utilities.PrimitiveValue;
|
|
4879
4879
|
public get type(): System.TypeCode;
|
|
4880
|
-
public ConvertTo($type: System.
|
|
4880
|
+
public ConvertTo($type: System.TypeLikeCode): UnityEngine.InputSystem.Utilities.NamedValue;
|
|
4881
4881
|
public static From<TValue>($name: string, $value: TValue): UnityEngine.InputSystem.Utilities.NamedValue;
|
|
4882
4882
|
public ToString(): string;
|
|
4883
4883
|
public Equals($other: UnityEngine.InputSystem.Utilities.NamedValue): boolean;
|
|
@@ -4917,7 +4917,7 @@ declare namespace CS {
|
|
|
4917
4917
|
constructor($value: bigint);
|
|
4918
4918
|
constructor($value: number);
|
|
4919
4919
|
constructor($value: number);
|
|
4920
|
-
public ConvertTo($type: System.
|
|
4920
|
+
public ConvertTo($type: System.TypeLikeCode): UnityEngine.InputSystem.Utilities.PrimitiveValue;
|
|
4921
4921
|
public Equals($other: UnityEngine.InputSystem.Utilities.PrimitiveValue): boolean;
|
|
4922
4922
|
public Equals($obj: any): boolean;
|
|
4923
4923
|
public GetHashCode(): number;
|
|
@@ -4936,7 +4936,7 @@ declare namespace CS {
|
|
|
4936
4936
|
public ToSByte($provider?: System.IFormatProvider): number;
|
|
4937
4937
|
public ToSingle($provider?: System.IFormatProvider): number;
|
|
4938
4938
|
public ToString($provider: System.IFormatProvider): string;
|
|
4939
|
-
public ToType($conversionType: System.
|
|
4939
|
+
public ToType($conversionType: System.TypeLike, $provider: System.IFormatProvider): any;
|
|
4940
4940
|
public ToUInt16($provider?: System.IFormatProvider): number;
|
|
4941
4941
|
public ToUInt32($provider?: System.IFormatProvider): number;
|
|
4942
4942
|
public ToUInt64($provider?: System.IFormatProvider): bigint;
|
|
@@ -4,7 +4,7 @@ declare namespace CS {
|
|
|
4
4
|
namespace AOT {
|
|
5
5
|
class MonoPInvokeCallbackAttribute extends System.Attribute {
|
|
6
6
|
protected [__keep_incompatibility]: never;
|
|
7
|
-
constructor($type: System.
|
|
7
|
+
constructor($type: System.TypeLike);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
}
|
|
@@ -77,7 +77,7 @@ declare namespace CS {
|
|
|
77
77
|
class BaseTypeRequiredAttribute extends System.Attribute {
|
|
78
78
|
protected [__keep_incompatibility]: never;
|
|
79
79
|
public get BaseType(): System.Type;
|
|
80
|
-
constructor($baseType: System.
|
|
80
|
+
constructor($baseType: System.TypeLike);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
class UsedImplicitlyAttribute extends System.Attribute {
|
|
@@ -584,10 +584,10 @@ declare namespace CS {
|
|
|
584
584
|
public static GetLeakDetectionMode(): Unity.Collections.NativeLeakDetectionMode;
|
|
585
585
|
public static SetLeakDetectionMode($value: Unity.Collections.NativeLeakDetectionMode): void;
|
|
586
586
|
public static IsValidAllocator($allocator: Unity.Collections.Allocator): boolean;
|
|
587
|
-
public static SizeOf($type: System.
|
|
588
|
-
public static IsBlittable($type: System.
|
|
589
|
-
public static IsUnmanaged($type: System.
|
|
590
|
-
public static IsValidNativeContainerElementType($type: System.
|
|
587
|
+
public static SizeOf($type: System.TypeLike): number;
|
|
588
|
+
public static IsBlittable($type: System.TypeLike): boolean;
|
|
589
|
+
public static IsUnmanaged($type: System.TypeLike): boolean;
|
|
590
|
+
public static IsValidNativeContainerElementType($type: System.TypeLike): boolean;
|
|
591
591
|
public static IsUnmanaged<T>(): boolean;
|
|
592
592
|
public static IsNativeContainerType<T>(): boolean;
|
|
593
593
|
public static IsValidNativeContainerElementType<T>(): boolean;
|
|
@@ -1056,7 +1056,7 @@ declare namespace CS {
|
|
|
1056
1056
|
class JobProducerTypeAttribute extends System.Attribute {
|
|
1057
1057
|
protected [__keep_incompatibility]: never;
|
|
1058
1058
|
public get ProducerType(): System.Type;
|
|
1059
|
-
constructor($producerType: System.
|
|
1059
|
+
constructor($producerType: System.TypeLike);
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
1062
|
class JobRanges {
|
|
@@ -1093,10 +1093,10 @@ declare namespace CS {
|
|
|
1093
1093
|
public static ScheduleParallelFor($parameters: $Ref<Unity.Jobs.LowLevel.Unsafe.JobsUtility.JobScheduleParameters>, $arrayLength: number, $innerloopBatchCount: number): Unity.Jobs.JobHandle;
|
|
1094
1094
|
public static ScheduleParallelForTransform($parameters: $Ref<Unity.Jobs.LowLevel.Unsafe.JobsUtility.JobScheduleParameters>, $transfromAccesssArray: number): Unity.Jobs.JobHandle;
|
|
1095
1095
|
public static ScheduleParallelForTransformReadOnly($parameters: $Ref<Unity.Jobs.LowLevel.Unsafe.JobsUtility.JobScheduleParameters>, $transfromAccesssArray: number, $innerloopBatchCount: number): Unity.Jobs.JobHandle;
|
|
1096
|
-
public static CreateJobReflectionData($type: System.
|
|
1097
|
-
public static CreateJobReflectionData($type: System.
|
|
1098
|
-
public static CreateJobReflectionData($wrapperJobType: System.
|
|
1099
|
-
public static CreateJobReflectionData($wrapperJobType: System.
|
|
1096
|
+
public static CreateJobReflectionData($type: System.TypeLike, $jobType: Unity.Jobs.LowLevel.Unsafe.JobType, $managedJobFunction0: any, $managedJobFunction1?: any, $managedJobFunction2?: any): number;
|
|
1097
|
+
public static CreateJobReflectionData($type: System.TypeLike, $managedJobFunction0: any, $managedJobFunction1?: any, $managedJobFunction2?: any): number;
|
|
1098
|
+
public static CreateJobReflectionData($wrapperJobType: System.TypeLike, $userJobType: System.TypeLike, $jobType: Unity.Jobs.LowLevel.Unsafe.JobType, $managedJobFunction0: any): number;
|
|
1099
|
+
public static CreateJobReflectionData($wrapperJobType: System.TypeLike, $userJobType: System.TypeLike, $managedJobFunction0: any): number;
|
|
1100
1100
|
public static ResetJobWorkerCount(): void;
|
|
1101
1101
|
}
|
|
1102
1102
|
namespace JobsUtility {
|
|
@@ -7657,18 +7657,18 @@ declare namespace CS {
|
|
|
7657
7657
|
class Resources {
|
|
7658
7658
|
protected [__keep_incompatibility]: never;
|
|
7659
7659
|
constructor();
|
|
7660
|
-
public static FindObjectsOfTypeAll($type: System.
|
|
7660
|
+
public static FindObjectsOfTypeAll($type: System.TypeLike): System.Array$1<UnityEngine.Object>;
|
|
7661
7661
|
public static FindObjectsOfTypeAll<T extends UnityEngine.Object>(): System.Array$1<T>;
|
|
7662
7662
|
public static Load($path: string): UnityEngine.Object;
|
|
7663
7663
|
public static Load<T extends UnityEngine.Object>($path: string): T;
|
|
7664
|
-
public static Load($path: string, $systemTypeInstance: System.
|
|
7664
|
+
public static Load($path: string, $systemTypeInstance: System.TypeLike): UnityEngine.Object;
|
|
7665
7665
|
public static LoadAsync($path: string): UnityEngine.ResourceRequest;
|
|
7666
7666
|
public static LoadAsync<T extends UnityEngine.Object>($path: string): UnityEngine.ResourceRequest;
|
|
7667
|
-
public static LoadAsync($path: string, $type: System.
|
|
7668
|
-
public static LoadAll($path: string, $systemTypeInstance: System.
|
|
7667
|
+
public static LoadAsync($path: string, $type: System.TypeLike): UnityEngine.ResourceRequest;
|
|
7668
|
+
public static LoadAll($path: string, $systemTypeInstance: System.TypeLike): System.Array$1<UnityEngine.Object>;
|
|
7669
7669
|
public static LoadAll($path: string): System.Array$1<UnityEngine.Object>;
|
|
7670
7670
|
public static LoadAll<T extends UnityEngine.Object>($path: string): System.Array$1<T>;
|
|
7671
|
-
public static GetBuiltinResource($type: System.
|
|
7671
|
+
public static GetBuiltinResource($type: System.TypeLike, $path: string): UnityEngine.Object;
|
|
7672
7672
|
public static GetBuiltinResource<T extends UnityEngine.Object>($path: string): T;
|
|
7673
7673
|
public static UnloadAsset($assetToUnload: UnityEngine.Object): void;
|
|
7674
7674
|
public static UnloadUnusedAssets(): UnityEngine.AsyncOperation;
|
|
@@ -7732,9 +7732,9 @@ declare namespace CS {
|
|
|
7732
7732
|
public m_Type0: System.Type;
|
|
7733
7733
|
public m_Type1: System.Type;
|
|
7734
7734
|
public m_Type2: System.Type;
|
|
7735
|
-
constructor($requiredComponent: System.
|
|
7736
|
-
constructor($requiredComponent: System.
|
|
7737
|
-
constructor($requiredComponent: System.
|
|
7735
|
+
constructor($requiredComponent: System.TypeLike);
|
|
7736
|
+
constructor($requiredComponent: System.TypeLike, $requiredComponent2: System.TypeLike);
|
|
7737
|
+
constructor($requiredComponent: System.TypeLike, $requiredComponent2: System.TypeLike, $requiredComponent3: System.TypeLike);
|
|
7738
7738
|
}
|
|
7739
7739
|
|
|
7740
7740
|
class AddComponentMenu extends System.Attribute {
|
|
@@ -7938,32 +7938,33 @@ declare namespace CS {
|
|
|
7938
7938
|
public get gameObject(): UnityEngine.GameObject;
|
|
7939
7939
|
public tag: string;
|
|
7940
7940
|
constructor();
|
|
7941
|
-
public GetComponent($type:
|
|
7941
|
+
public GetComponent<T extends UnityEngine.Component>($type: { new(...args: any[]): T }): T;
|
|
7942
|
+
public GetComponent($type: System.TypeLike): UnityEngine.Component;
|
|
7942
7943
|
public GetComponent<T>(): T;
|
|
7943
|
-
public TryGetComponent($type: System.
|
|
7944
|
+
public TryGetComponent($type: System.TypeLike, $component: $Out<UnityEngine.Component>): boolean;
|
|
7944
7945
|
public TryGetComponent<T>($component: $Out<T>): boolean;
|
|
7945
7946
|
public GetComponent($type: string): UnityEngine.Component;
|
|
7946
|
-
public GetComponentInChildren($t: System.
|
|
7947
|
-
public GetComponentInChildren($t: System.
|
|
7947
|
+
public GetComponentInChildren($t: System.TypeLike, $includeInactive: boolean): UnityEngine.Component;
|
|
7948
|
+
public GetComponentInChildren($t: System.TypeLike): UnityEngine.Component;
|
|
7948
7949
|
public GetComponentInChildren<T>($includeInactive: boolean): T;
|
|
7949
7950
|
public GetComponentInChildren<T>(): T;
|
|
7950
|
-
public GetComponentsInChildren($t: System.
|
|
7951
|
-
public GetComponentsInChildren($t: System.
|
|
7951
|
+
public GetComponentsInChildren($t: System.TypeLike, $includeInactive: boolean): System.Array$1<UnityEngine.Component>;
|
|
7952
|
+
public GetComponentsInChildren($t: System.TypeLike): System.Array$1<UnityEngine.Component>;
|
|
7952
7953
|
public GetComponentsInChildren<T>($includeInactive: boolean): System.Array$1<T>;
|
|
7953
7954
|
public GetComponentsInChildren<T>($includeInactive: boolean, $result: System.Collections.Generic.List$1<T>): void;
|
|
7954
7955
|
public GetComponentsInChildren<T>(): System.Array$1<T>;
|
|
7955
7956
|
public GetComponentsInChildren<T>($results: System.Collections.Generic.List$1<T>): void;
|
|
7956
|
-
public GetComponentInParent($t: System.
|
|
7957
|
-
public GetComponentInParent($t: System.
|
|
7957
|
+
public GetComponentInParent($t: System.TypeLike, $includeInactive: boolean): UnityEngine.Component;
|
|
7958
|
+
public GetComponentInParent($t: System.TypeLike): UnityEngine.Component;
|
|
7958
7959
|
public GetComponentInParent<T>($includeInactive: boolean): T;
|
|
7959
7960
|
public GetComponentInParent<T>(): T;
|
|
7960
|
-
public GetComponentsInParent($t: System.
|
|
7961
|
-
public GetComponentsInParent($t: System.
|
|
7961
|
+
public GetComponentsInParent($t: System.TypeLike, $includeInactive: boolean): System.Array$1<UnityEngine.Component>;
|
|
7962
|
+
public GetComponentsInParent($t: System.TypeLike): System.Array$1<UnityEngine.Component>;
|
|
7962
7963
|
public GetComponentsInParent<T>($includeInactive: boolean): System.Array$1<T>;
|
|
7963
7964
|
public GetComponentsInParent<T>($includeInactive: boolean, $results: System.Collections.Generic.List$1<T>): void;
|
|
7964
7965
|
public GetComponentsInParent<T>(): System.Array$1<T>;
|
|
7965
|
-
public GetComponents($type: System.
|
|
7966
|
-
public GetComponents($type: System.
|
|
7966
|
+
public GetComponents($type: System.TypeLike): System.Array$1<UnityEngine.Component>;
|
|
7967
|
+
public GetComponents($type: System.TypeLike, $results: System.Collections.Generic.List$1<UnityEngine.Component>): void;
|
|
7967
7968
|
public GetComponents<T>($results: System.Collections.Generic.List$1<T>): void;
|
|
7968
7969
|
public GetComponents<T>(): System.Array$1<T>;
|
|
7969
7970
|
public GetComponentIndex(): number;
|
|
@@ -8015,42 +8016,46 @@ declare namespace CS {
|
|
|
8015
8016
|
public get gameObject(): UnityEngine.GameObject;
|
|
8016
8017
|
constructor($name: string);
|
|
8017
8018
|
constructor();
|
|
8018
|
-
constructor($name: string, ...components: System.
|
|
8019
|
+
constructor($name: string, ...components: System.TypeLike[]);
|
|
8019
8020
|
public static CreatePrimitive($type: UnityEngine.PrimitiveType): UnityEngine.GameObject;
|
|
8021
|
+
public GetComponent<T extends UnityEngine.Component>($type: { new(...args: any[]): T }): T;
|
|
8020
8022
|
public GetComponent<T>(): T;
|
|
8021
|
-
public GetComponent($type: System.
|
|
8023
|
+
public GetComponent($type: System.TypeLike): UnityEngine.Component;
|
|
8022
8024
|
public GetComponent($type: string): UnityEngine.Component;
|
|
8023
|
-
public GetComponentInChildren($type:
|
|
8024
|
-
public GetComponentInChildren($type: System.
|
|
8025
|
+
public GetComponentInChildren<T extends UnityEngine.Component>($type: { new(...args: any[]): T }): T;
|
|
8026
|
+
public GetComponentInChildren($type: System.TypeLike, $includeInactive: boolean): UnityEngine.Component;
|
|
8027
|
+
public GetComponentInChildren($type: System.TypeLike): UnityEngine.Component;
|
|
8025
8028
|
public GetComponentInChildren<T>(): T;
|
|
8026
8029
|
public GetComponentInChildren<T>($includeInactive: boolean): T;
|
|
8027
|
-
public GetComponentInParent($type:
|
|
8028
|
-
public GetComponentInParent($type: System.
|
|
8030
|
+
public GetComponentInParent<T extends UnityEngine.Component>($type: { new(...args: any[]): T }): T;
|
|
8031
|
+
public GetComponentInParent($type: System.TypeLike, $includeInactive: boolean): UnityEngine.Component;
|
|
8032
|
+
public GetComponentInParent($type: System.TypeLike): UnityEngine.Component;
|
|
8029
8033
|
public GetComponentInParent<T>(): T;
|
|
8030
8034
|
public GetComponentInParent<T>($includeInactive: boolean): T;
|
|
8031
|
-
public GetComponents($type: System.
|
|
8035
|
+
public GetComponents($type: System.TypeLike): System.Array$1<UnityEngine.Component>;
|
|
8032
8036
|
public GetComponents<T>(): System.Array$1<T>;
|
|
8033
|
-
public GetComponents($type: System.
|
|
8037
|
+
public GetComponents($type: System.TypeLike, $results: System.Collections.Generic.List$1<UnityEngine.Component>): void;
|
|
8034
8038
|
public GetComponents<T>($results: System.Collections.Generic.List$1<T>): void;
|
|
8035
|
-
public GetComponentsInChildren($type: System.
|
|
8036
|
-
public GetComponentsInChildren($type: System.
|
|
8039
|
+
public GetComponentsInChildren($type: System.TypeLike): System.Array$1<UnityEngine.Component>;
|
|
8040
|
+
public GetComponentsInChildren($type: System.TypeLike, $includeInactive: boolean): System.Array$1<UnityEngine.Component>;
|
|
8037
8041
|
public GetComponentsInChildren<T>($includeInactive: boolean): System.Array$1<T>;
|
|
8038
8042
|
public GetComponentsInChildren<T>($includeInactive: boolean, $results: System.Collections.Generic.List$1<T>): void;
|
|
8039
8043
|
public GetComponentsInChildren<T>(): System.Array$1<T>;
|
|
8040
8044
|
public GetComponentsInChildren<T>($results: System.Collections.Generic.List$1<T>): void;
|
|
8041
|
-
public GetComponentsInParent($type: System.
|
|
8042
|
-
public GetComponentsInParent($type: System.
|
|
8045
|
+
public GetComponentsInParent($type: System.TypeLike): System.Array$1<UnityEngine.Component>;
|
|
8046
|
+
public GetComponentsInParent($type: System.TypeLike, $includeInactive: boolean): System.Array$1<UnityEngine.Component>;
|
|
8043
8047
|
public GetComponentsInParent<T>($includeInactive: boolean, $results: System.Collections.Generic.List$1<T>): void;
|
|
8044
8048
|
public GetComponentsInParent<T>($includeInactive: boolean): System.Array$1<T>;
|
|
8045
8049
|
public GetComponentsInParent<T>(): System.Array$1<T>;
|
|
8046
8050
|
public TryGetComponent<T>($component: $Out<T>): boolean;
|
|
8047
|
-
public TryGetComponent($type: System.
|
|
8051
|
+
public TryGetComponent($type: System.TypeLike, $component: $Out<UnityEngine.Component>): boolean;
|
|
8048
8052
|
public static FindWithTag($tag: string): UnityEngine.GameObject;
|
|
8049
8053
|
public static FindGameObjectsWithTag($tag: string, $results: System.Collections.Generic.List$1<UnityEngine.GameObject>): void;
|
|
8050
8054
|
public SendMessageUpwards($methodName: string, $options: UnityEngine.SendMessageOptions): void;
|
|
8051
8055
|
public SendMessage($methodName: string, $options: UnityEngine.SendMessageOptions): void;
|
|
8052
8056
|
public BroadcastMessage($methodName: string, $options: UnityEngine.SendMessageOptions): void;
|
|
8053
|
-
public AddComponent($
|
|
8057
|
+
public AddComponent<T extends UnityEngine.Component>($type: { new(...args: any[]): T }): T;
|
|
8058
|
+
public AddComponent($componentType: System.TypeLike): UnityEngine.Component;
|
|
8054
8059
|
public AddComponent<T extends UnityEngine.Component>(): T;
|
|
8055
8060
|
public GetComponentCount(): number;
|
|
8056
8061
|
public GetComponentAtIndex($index: number): UnityEngine.Component;
|
|
@@ -8170,7 +8175,7 @@ declare namespace CS {
|
|
|
8170
8175
|
constructor();
|
|
8171
8176
|
public SetDirty(): void;
|
|
8172
8177
|
public static CreateInstance($className: string): UnityEngine.ScriptableObject;
|
|
8173
|
-
public static CreateInstance($type: System.
|
|
8178
|
+
public static CreateInstance($type: System.TypeLike): UnityEngine.ScriptableObject;
|
|
8174
8179
|
public static CreateInstance<T extends UnityEngine.ScriptableObject>(): T;
|
|
8175
8180
|
}
|
|
8176
8181
|
|
|
@@ -8326,32 +8331,32 @@ declare namespace CS {
|
|
|
8326
8331
|
public static InstantiateAsync<T extends UnityEngine.Object>($original: T, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parameters: UnityEngine.InstantiateParameters, $cancellationToken?: System.Threading.CancellationToken): UnityEngine.AsyncInstantiateOperation$1<T>;
|
|
8327
8332
|
public static InstantiateAsync<T extends UnityEngine.Object>($original: T, $count: number, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parameters: UnityEngine.InstantiateParameters, $cancellationToken?: System.Threading.CancellationToken): UnityEngine.AsyncInstantiateOperation$1<T>;
|
|
8328
8333
|
public static InstantiateAsync<T extends UnityEngine.Object>($original: T, $count: number, $positions: System.ReadOnlySpan$1<UnityEngine.Vector3>, $rotations: System.ReadOnlySpan$1<UnityEngine.Quaternion>, $parameters: UnityEngine.InstantiateParameters, $cancellationToken?: System.Threading.CancellationToken): UnityEngine.AsyncInstantiateOperation$1<T>;
|
|
8329
|
-
public static Instantiate($original: UnityEngine.Object, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion): UnityEngine.Object;
|
|
8330
|
-
public static Instantiate($original: UnityEngine.Object, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parent: UnityEngine.Transform): UnityEngine.Object;
|
|
8331
|
-
public static Instantiate($original: UnityEngine.Object): UnityEngine.Object;
|
|
8332
|
-
public static Instantiate($original: UnityEngine.Object, $scene: UnityEngine.SceneManagement.Scene): UnityEngine.Object;
|
|
8333
|
-
public static Instantiate<T extends UnityEngine.Object>($original: T, $parameters: UnityEngine.InstantiateParameters): T;
|
|
8334
|
-
public static Instantiate<T extends UnityEngine.Object>($original: T, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parameters: UnityEngine.InstantiateParameters): T;
|
|
8335
|
-
public static Instantiate($original: UnityEngine.Object, $parent: UnityEngine.Transform): UnityEngine.Object;
|
|
8336
|
-
public static Instantiate($original: UnityEngine.Object, $parent: UnityEngine.Transform, $instantiateInWorldSpace: boolean): UnityEngine.Object;
|
|
8337
8334
|
public static Instantiate<T extends UnityEngine.Object>($original: T): T;
|
|
8338
8335
|
public static Instantiate<T extends UnityEngine.Object>($original: T, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion): T;
|
|
8339
8336
|
public static Instantiate<T extends UnityEngine.Object>($original: T, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parent: UnityEngine.Transform): T;
|
|
8340
8337
|
public static Instantiate<T extends UnityEngine.Object>($original: T, $parent: UnityEngine.Transform): T;
|
|
8341
8338
|
public static Instantiate<T extends UnityEngine.Object>($original: T, $parent: UnityEngine.Transform, $worldPositionStays: boolean): T;
|
|
8339
|
+
public static Instantiate<T extends UnityEngine.Object>($original: T, $parameters: UnityEngine.InstantiateParameters): T;
|
|
8340
|
+
public static Instantiate<T extends UnityEngine.Object>($original: T, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parameters: UnityEngine.InstantiateParameters): T;
|
|
8341
|
+
public static Instantiate($original: UnityEngine.Object): UnityEngine.Object;
|
|
8342
|
+
public static Instantiate($original: UnityEngine.Object, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion): UnityEngine.Object;
|
|
8343
|
+
public static Instantiate($original: UnityEngine.Object, $position: UnityEngine.Vector3, $rotation: UnityEngine.Quaternion, $parent: UnityEngine.Transform): UnityEngine.Object;
|
|
8344
|
+
public static Instantiate($original: UnityEngine.Object, $parent: UnityEngine.Transform): UnityEngine.Object;
|
|
8345
|
+
public static Instantiate($original: UnityEngine.Object, $parent: UnityEngine.Transform, $instantiateInWorldSpace: boolean): UnityEngine.Object;
|
|
8346
|
+
public static Instantiate($original: UnityEngine.Object, $scene: UnityEngine.SceneManagement.Scene): UnityEngine.Object;
|
|
8342
8347
|
public static Destroy($obj: UnityEngine.Object, $t: number): void;
|
|
8343
8348
|
public static Destroy($obj: UnityEngine.Object): void;
|
|
8344
8349
|
public static DestroyImmediate($obj: UnityEngine.Object, $allowDestroyingAssets: boolean): void;
|
|
8345
8350
|
public static DestroyImmediate($obj: UnityEngine.Object): void;
|
|
8346
|
-
public static FindObjectsOfType($type: System.
|
|
8347
|
-
public static FindObjectsOfType($type: System.
|
|
8348
|
-
public static FindObjectsByType($type: System.
|
|
8349
|
-
public static FindObjectsByType($type: System.
|
|
8351
|
+
public static FindObjectsOfType($type: System.TypeLike): System.Array$1<UnityEngine.Object>;
|
|
8352
|
+
public static FindObjectsOfType($type: System.TypeLike, $includeInactive: boolean): System.Array$1<UnityEngine.Object>;
|
|
8353
|
+
public static FindObjectsByType($type: System.TypeLike, $sortMode: UnityEngine.FindObjectsSortMode): System.Array$1<UnityEngine.Object>;
|
|
8354
|
+
public static FindObjectsByType($type: System.TypeLike, $findObjectsInactive: UnityEngine.FindObjectsInactive, $sortMode: UnityEngine.FindObjectsSortMode): System.Array$1<UnityEngine.Object>;
|
|
8350
8355
|
public static DontDestroyOnLoad($target: UnityEngine.Object): void;
|
|
8351
8356
|
public static DestroyObject($obj: UnityEngine.Object, $t: number): void;
|
|
8352
8357
|
public static DestroyObject($obj: UnityEngine.Object): void;
|
|
8353
|
-
public static FindSceneObjectsOfType($type: System.
|
|
8354
|
-
public static FindObjectsOfTypeIncludingAssets($type: System.
|
|
8358
|
+
public static FindSceneObjectsOfType($type: System.TypeLike): System.Array$1<UnityEngine.Object>;
|
|
8359
|
+
public static FindObjectsOfTypeIncludingAssets($type: System.TypeLike): System.Array$1<UnityEngine.Object>;
|
|
8355
8360
|
public static FindObjectsOfType<T extends UnityEngine.Object>(): System.Array$1<T>;
|
|
8356
8361
|
public static FindObjectsByType<T extends UnityEngine.Object>($sortMode: UnityEngine.FindObjectsSortMode): System.Array$1<T>;
|
|
8357
8362
|
public static FindObjectsOfType<T extends UnityEngine.Object>($includeInactive: boolean): System.Array$1<T>;
|
|
@@ -8362,13 +8367,13 @@ declare namespace CS {
|
|
|
8362
8367
|
public static FindAnyObjectByType<T extends UnityEngine.Object>(): T;
|
|
8363
8368
|
public static FindFirstObjectByType<T extends UnityEngine.Object>($findObjectsInactive: UnityEngine.FindObjectsInactive): T;
|
|
8364
8369
|
public static FindAnyObjectByType<T extends UnityEngine.Object>($findObjectsInactive: UnityEngine.FindObjectsInactive): T;
|
|
8365
|
-
public static FindObjectsOfTypeAll($type: System.
|
|
8366
|
-
public static FindObjectOfType($type: System.
|
|
8367
|
-
public static FindFirstObjectByType($type: System.
|
|
8368
|
-
public static FindAnyObjectByType($type: System.
|
|
8369
|
-
public static FindObjectOfType($type: System.
|
|
8370
|
-
public static FindFirstObjectByType($type: System.
|
|
8371
|
-
public static FindAnyObjectByType($type: System.
|
|
8370
|
+
public static FindObjectsOfTypeAll($type: System.TypeLike): System.Array$1<UnityEngine.Object>;
|
|
8371
|
+
public static FindObjectOfType($type: System.TypeLike): UnityEngine.Object;
|
|
8372
|
+
public static FindFirstObjectByType($type: System.TypeLike): UnityEngine.Object;
|
|
8373
|
+
public static FindAnyObjectByType($type: System.TypeLike): UnityEngine.Object;
|
|
8374
|
+
public static FindObjectOfType($type: System.TypeLike, $includeInactive: boolean): UnityEngine.Object;
|
|
8375
|
+
public static FindFirstObjectByType($type: System.TypeLike, $findObjectsInactive: UnityEngine.FindObjectsInactive): UnityEngine.Object;
|
|
8376
|
+
public static FindAnyObjectByType($type: System.TypeLike, $findObjectsInactive: UnityEngine.FindObjectsInactive): UnityEngine.Object;
|
|
8372
8377
|
public ToString(): string;
|
|
8373
8378
|
}
|
|
8374
8379
|
|
|
@@ -8430,7 +8435,7 @@ declare namespace CS {
|
|
|
8430
8435
|
|
|
8431
8436
|
class MakeSerializableAttribute extends System.Attribute {
|
|
8432
8437
|
protected [__keep_incompatibility]: never;
|
|
8433
|
-
constructor($type: System.
|
|
8438
|
+
constructor($type: System.TypeLike);
|
|
8434
8439
|
}
|
|
8435
8440
|
|
|
8436
8441
|
class SerializeField extends System.Attribute {
|
|
@@ -9690,7 +9695,7 @@ declare namespace CS {
|
|
|
9690
9695
|
public RemoveAllListeners(): void;
|
|
9691
9696
|
public ToString(): string;
|
|
9692
9697
|
public static GetValidMethodInfo($obj: any, $functionName: string, $argumentTypes: System.Array$1<System.Type>): System.Reflection.MethodInfo;
|
|
9693
|
-
public static GetValidMethodInfo($objectType: System.
|
|
9698
|
+
public static GetValidMethodInfo($objectType: System.TypeLike, $functionName: string, $argumentTypes: System.Array$1<System.Type>): System.Reflection.MethodInfo;
|
|
9694
9699
|
}
|
|
9695
9700
|
|
|
9696
9701
|
interface UnityAction {
|
|
@@ -11175,7 +11180,7 @@ declare namespace CS {
|
|
|
11175
11180
|
|
|
11176
11181
|
class ScriptPlayableBinding {
|
|
11177
11182
|
protected [__keep_incompatibility]: never;
|
|
11178
|
-
public static Create($name: string, $key: UnityEngine.Object, $type: System.
|
|
11183
|
+
public static Create($name: string, $key: UnityEngine.Object, $type: System.TypeLike): UnityEngine.Playables.PlayableBinding;
|
|
11179
11184
|
}
|
|
11180
11185
|
|
|
11181
11186
|
class ScriptPlayableOutput implements UnityEngine.Playables.IPlayableOutput {
|
|
@@ -12885,13 +12890,13 @@ declare namespace CS {
|
|
|
12885
12890
|
public static Subscribe<TChild extends UnityEngine.Rendering.IRenderPipelineGraphicsSettings>($callback: System.Action$2<TChild, string>): void;
|
|
12886
12891
|
public static Unsubscribe<TChild extends UnityEngine.Rendering.IRenderPipelineGraphicsSettings>($callback: System.Action$2<TChild, string>): void;
|
|
12887
12892
|
public static ForEach($callback: System.Action$1<UnityEngine.Rendering.IRenderPipelineGraphicsSettings>): void;
|
|
12888
|
-
public static UpdateGraphicsSettings($newSettings: UnityEngine.Rendering.RenderPipelineGlobalSettings, $renderPipelineType: System.
|
|
12889
|
-
public static RegisterRenderPipelineSettings($renderPipelineType: System.
|
|
12893
|
+
public static UpdateGraphicsSettings($newSettings: UnityEngine.Rendering.RenderPipelineGlobalSettings, $renderPipelineType: System.TypeLike): void;
|
|
12894
|
+
public static RegisterRenderPipelineSettings($renderPipelineType: System.TypeLike, $settings: UnityEngine.Rendering.RenderPipelineGlobalSettings): void;
|
|
12890
12895
|
public static RegisterRenderPipelineSettings<T extends UnityEngine.Rendering.RenderPipeline>($settings: UnityEngine.Rendering.RenderPipelineGlobalSettings): void;
|
|
12891
12896
|
public static UnregisterRenderPipelineSettings<T extends UnityEngine.Rendering.RenderPipeline>(): void;
|
|
12892
|
-
public static UnregisterRenderPipelineSettings($renderPipelineType: System.
|
|
12897
|
+
public static UnregisterRenderPipelineSettings($renderPipelineType: System.TypeLike): void;
|
|
12893
12898
|
public static GetSettingsForRenderPipeline<T extends UnityEngine.Rendering.RenderPipeline>(): UnityEngine.Rendering.RenderPipelineGlobalSettings;
|
|
12894
|
-
public static GetSettingsForRenderPipeline($renderPipelineType: System.
|
|
12899
|
+
public static GetSettingsForRenderPipeline($renderPipelineType: System.TypeLike): UnityEngine.Rendering.RenderPipelineGlobalSettings;
|
|
12895
12900
|
public static TryGetCurrentRenderPipelineGlobalSettings($asset: $Out<UnityEngine.Rendering.RenderPipelineGlobalSettings>): boolean;
|
|
12896
12901
|
public static GetRenderPipelineSettings<T extends UnityEngine.Rendering.IRenderPipelineGraphicsSettings>(): T;
|
|
12897
12902
|
public static TryGetRenderPipelineSettings<T extends UnityEngine.Rendering.IRenderPipelineGraphicsSettings>($settings: $Out<T>): boolean;
|
|
@@ -13281,7 +13286,7 @@ declare namespace CS {
|
|
|
13281
13286
|
public AddInstances<T>($config: $Ref<UnityEngine.Rendering.RayTracingMeshInstanceConfig>, $instanceData: Unity.Collections.NativeArray$1<T>, $instanceCount?: number, $startInstance?: number, $id?: number): number;
|
|
13282
13287
|
public AddInstancesIndirect($config: $Ref<UnityEngine.Rendering.RayTracingMeshInstanceConfig>, $instanceMatrices: UnityEngine.GraphicsBuffer, $maxInstanceCount: number, $argsBuffer: UnityEngine.GraphicsBuffer, $argsOffset?: number, $id?: number): number;
|
|
13283
13288
|
public AddInstancesIndirect($config: $Ref<UnityEngine.Rendering.RayTracingGeometryInstanceConfig>, $instanceMatrices: UnityEngine.GraphicsBuffer, $maxInstanceCount: number, $argsBuffer: UnityEngine.GraphicsBuffer, $argsOffset?: number, $id?: number): number;
|
|
13284
|
-
public AddInstancesIndirect($config: $Ref<UnityEngine.Rendering.RayTracingMultiGeometryInstanceConfig>, $instanceData: UnityEngine.GraphicsBuffer, $instanceType: System.
|
|
13289
|
+
public AddInstancesIndirect($config: $Ref<UnityEngine.Rendering.RayTracingMultiGeometryInstanceConfig>, $instanceData: UnityEngine.GraphicsBuffer, $instanceType: System.TypeLike, $instanceIndices: UnityEngine.GraphicsBuffer, $maxInstanceCount: number, $argsBuffer: UnityEngine.GraphicsBuffer, $argsOffset?: number, $id?: number): number;
|
|
13285
13290
|
public AddInstancesIndirect<T>($config: $Ref<UnityEngine.Rendering.RayTracingMultiGeometryInstanceConfig>, $instanceData: UnityEngine.GraphicsBuffer, $instanceIndices: UnityEngine.GraphicsBuffer, $maxInstanceCount: number, $argsBuffer: UnityEngine.GraphicsBuffer, $argsOffset?: number, $id?: number): number;
|
|
13286
13291
|
public AddInstances<T>($config: $Ref<UnityEngine.Rendering.RayTracingMeshInstanceConfig>, $instanceData: Unity.Collections.NativeSlice$1<T>, $id?: number): number;
|
|
13287
13292
|
public RemoveInstance($targetRenderer: UnityEngine.Renderer): void;
|
|
@@ -13772,10 +13777,10 @@ declare namespace CS {
|
|
|
13772
13777
|
protected [__keep_incompatibility]: never;
|
|
13773
13778
|
public get renderPipelineTypes(): System.Array$1<System.Type>;
|
|
13774
13779
|
public get isSupportedOnCurrentPipeline(): boolean;
|
|
13775
|
-
constructor($renderPipeline: System.
|
|
13776
|
-
constructor(...renderPipeline: System.
|
|
13777
|
-
public GetSupportedMode($renderPipelineAssetType: System.
|
|
13778
|
-
public static IsTypeSupportedOnRenderPipeline($type: System.
|
|
13780
|
+
constructor($renderPipeline: System.TypeLike);
|
|
13781
|
+
constructor(...renderPipeline: System.TypeLike[]);
|
|
13782
|
+
public GetSupportedMode($renderPipelineAssetType: System.TypeLike): UnityEngine.Rendering.SupportedOnRenderPipelineAttribute.SupportedMode;
|
|
13783
|
+
public static IsTypeSupportedOnRenderPipeline($type: System.TypeLike, $renderPipelineAssetType: System.TypeLike): boolean;
|
|
13779
13784
|
}
|
|
13780
13785
|
namespace SupportedOnRenderPipelineAttribute {
|
|
13781
13786
|
enum SupportedMode {
|
|
@@ -15203,7 +15208,7 @@ declare namespace CS {
|
|
|
15203
15208
|
|
|
15204
15209
|
class RequiredInterfaceAttribute extends System.Attribute {
|
|
15205
15210
|
protected [__keep_incompatibility]: never;
|
|
15206
|
-
constructor($interfaceType: System.
|
|
15211
|
+
constructor($interfaceType: System.TypeLike);
|
|
15207
15212
|
}
|
|
15208
15213
|
|
|
15209
15214
|
class RequiredMemberAttribute extends System.Attribute {
|
|
@@ -15271,9 +15276,9 @@ declare namespace CS {
|
|
|
15271
15276
|
constructor($query: string, $flags: UnityEngine.Search.SearchViewFlags);
|
|
15272
15277
|
constructor($query: string, $providerIdsCommaSeparated: string);
|
|
15273
15278
|
constructor($query: string, $providerIdsCommaSeparated: string, $flags: UnityEngine.Search.SearchViewFlags);
|
|
15274
|
-
constructor($query: string, ...instantiableProviders: System.
|
|
15275
|
-
constructor($query: string, $flags: UnityEngine.Search.SearchViewFlags, ...instantiableProviders: System.
|
|
15276
|
-
constructor($query: string, $flags: UnityEngine.Search.SearchViewFlags, $providerIdsCommaSeparated: string, ...instantiableProviders: System.
|
|
15279
|
+
constructor($query: string, ...instantiableProviders: System.TypeLike[]);
|
|
15280
|
+
constructor($query: string, $flags: UnityEngine.Search.SearchViewFlags, ...instantiableProviders: System.TypeLike[]);
|
|
15281
|
+
constructor($query: string, $flags: UnityEngine.Search.SearchViewFlags, $providerIdsCommaSeparated: string, ...instantiableProviders: System.TypeLike[]);
|
|
15277
15282
|
}
|
|
15278
15283
|
|
|
15279
15284
|
}
|
|
@@ -15318,7 +15323,7 @@ declare namespace CS {
|
|
|
15318
15323
|
class UnitySurrogateSelector implements System.Runtime.Serialization.ISurrogateSelector {
|
|
15319
15324
|
protected [__keep_incompatibility]: never;
|
|
15320
15325
|
constructor();
|
|
15321
|
-
public GetSurrogate($type: System.
|
|
15326
|
+
public GetSurrogate($type: System.TypeLike, $context: System.Runtime.Serialization.StreamingContext, $selector: $Out<System.Runtime.Serialization.ISurrogateSelector>): System.Runtime.Serialization.ISerializationSurrogate;
|
|
15322
15327
|
public ChainSelector($selector: System.Runtime.Serialization.ISurrogateSelector): void;
|
|
15323
15328
|
public GetNextSelector(): System.Runtime.Serialization.ISurrogateSelector;
|
|
15324
15329
|
}
|
|
@@ -15369,7 +15374,7 @@ declare namespace CS {
|
|
|
15369
15374
|
public static GetSequencePointsFor($method: System.Reflection.MethodBase): System.Array$1<UnityEngine.TestTools.CoveredSequencePoint>;
|
|
15370
15375
|
public static GetStatsFor($method: System.Reflection.MethodBase): UnityEngine.TestTools.CoveredMethodStats;
|
|
15371
15376
|
public static GetStatsFor($methods: System.Array$1<System.Reflection.MethodBase>): System.Array$1<UnityEngine.TestTools.CoveredMethodStats>;
|
|
15372
|
-
public static GetStatsFor($type: System.
|
|
15377
|
+
public static GetStatsFor($type: System.TypeLike): System.Array$1<UnityEngine.TestTools.CoveredMethodStats>;
|
|
15373
15378
|
public static GetStatsForAllCoveredMethods(): System.Array$1<UnityEngine.TestTools.CoveredMethodStats>;
|
|
15374
15379
|
public static ResetFor($method: System.Reflection.MethodBase): void;
|
|
15375
15380
|
public static ResetAll(): void;
|
|
@@ -5580,7 +5580,7 @@ declare namespace CS {
|
|
|
5580
5580
|
public libraryPath: string;
|
|
5581
5581
|
constructor();
|
|
5582
5582
|
constructor($uxmlName: string);
|
|
5583
|
-
constructor($uxmlName: string, ...supportedTypes: System.
|
|
5583
|
+
constructor($uxmlName: string, ...supportedTypes: System.TypeLike[]);
|
|
5584
5584
|
}
|
|
5585
5585
|
|
|
5586
5586
|
class UxmlAttributeAttribute extends System.Attribute {
|
|
@@ -5596,7 +5596,7 @@ declare namespace CS {
|
|
|
5596
5596
|
protected [__keep_incompatibility]: never;
|
|
5597
5597
|
public baseType: System.Type;
|
|
5598
5598
|
constructor();
|
|
5599
|
-
constructor($baseType: System.
|
|
5599
|
+
constructor($baseType: System.TypeLike);
|
|
5600
5600
|
}
|
|
5601
5601
|
|
|
5602
5602
|
class UxmlIgnoreAttribute extends System.Attribute {
|
|
@@ -5615,14 +5615,14 @@ declare namespace CS {
|
|
|
5615
5615
|
public types: System.Array$1<System.Type>;
|
|
5616
5616
|
constructor();
|
|
5617
5617
|
constructor($uxmlName: string);
|
|
5618
|
-
constructor($uxmlName: string, ...acceptedTypes: System.
|
|
5618
|
+
constructor($uxmlName: string, ...acceptedTypes: System.TypeLike[]);
|
|
5619
5619
|
}
|
|
5620
5620
|
|
|
5621
5621
|
class UxmlChildElementDescription {
|
|
5622
5622
|
protected [__keep_incompatibility]: never;
|
|
5623
5623
|
public get elementName(): string;
|
|
5624
5624
|
public get elementNamespace(): string;
|
|
5625
|
-
constructor($t: System.
|
|
5625
|
+
constructor($t: System.TypeLike);
|
|
5626
5626
|
}
|
|
5627
5627
|
|
|
5628
5628
|
class UxmlAttributeNames {
|
|
@@ -5641,7 +5641,7 @@ declare namespace CS {
|
|
|
5641
5641
|
|
|
5642
5642
|
class UxmlDescriptionCache {
|
|
5643
5643
|
protected [__keep_incompatibility]: never;
|
|
5644
|
-
public static RegisterType($type: System.
|
|
5644
|
+
public static RegisterType($type: System.TypeLike, $attributeNames: System.Array$1<UnityEngine.UIElements.UxmlAttributeNames>, $isEditorOnly?: boolean): void;
|
|
5645
5645
|
}
|
|
5646
5646
|
|
|
5647
5647
|
class BaseUxmlTraits {
|
|
@@ -5844,7 +5844,7 @@ declare namespace CS {
|
|
|
5844
5844
|
|
|
5845
5845
|
class EventInterestAttribute extends System.Attribute {
|
|
5846
5846
|
protected [__keep_incompatibility]: never;
|
|
5847
|
-
constructor(...eventTypes: System.
|
|
5847
|
+
constructor(...eventTypes: System.TypeLike[]);
|
|
5848
5848
|
constructor($interests: UnityEngine.UIElements.EventInterestOptions);
|
|
5849
5849
|
}
|
|
5850
5850
|
|
package/_system.d.ts
CHANGED
|
@@ -30,6 +30,13 @@ declare namespace CS {
|
|
|
30
30
|
public static GetType($typeName: string): System.Type;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Accepts both `System.Type` objects and class constructor references.
|
|
35
|
+
* In OneJS, class references (e.g., `CS.UnityEngine.GameObject`) can be
|
|
36
|
+
* passed wherever a `System.Type` is expected in C# method parameters.
|
|
37
|
+
*/
|
|
38
|
+
type TypeLike = Type | (abstract new (...args: any[]) => any);
|
|
39
|
+
|
|
33
40
|
class Attribute {}
|
|
34
41
|
class Exception {
|
|
35
42
|
public get Message(): string;
|
|
@@ -63,7 +70,7 @@ declare namespace CS {
|
|
|
63
70
|
ToString($format: string, $formatProvider: System.IFormatProvider): string;
|
|
64
71
|
}
|
|
65
72
|
interface IFormatProvider {
|
|
66
|
-
GetFormat($formatType: System.
|
|
73
|
+
GetFormat($formatType: System.TypeLike): any;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
// Arrays
|
|
@@ -81,8 +88,10 @@ declare namespace CS {
|
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
// Generic array (T[])
|
|
91
|
+
// Uses PascalCase `Length` to match C# Array.Length.
|
|
92
|
+
// Use toArray() from onejs-react to convert to a JS array with .length, .map(), etc.
|
|
84
93
|
interface Array$1<T> {
|
|
85
|
-
readonly
|
|
94
|
+
readonly Length: number;
|
|
86
95
|
[index: number]: T;
|
|
87
96
|
get_Item($index: number): T;
|
|
88
97
|
set_Item($index: number, $value: T): void;
|
package/index.d.ts
CHANGED