@reactunity/renderer 0.24.0 → 0.25.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/dist/{base-FL2QIa13.d.ts → base-3-s8tzdC.d.ts} +301 -5
- package/dist/{components-BL4KGbQ4.d.ts → components-CHc816Qv.d.ts} +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/jsx-dev-runtime.d.ts +1 -1
- package/dist/editor/jsx-runtime.d.ts +1 -1
- package/dist/index-DVMJGbQf.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/{jsx-pk0p8f7A.d.ts → jsx-5DJ6sjv6.d.ts} +3 -3
- package/dist/{jsx-BRwefwcW.d.ts → jsx-DEILne0Q.d.ts} +2 -2
- package/dist/{jsx-C3umXnyu.d.ts → jsx-DJhfjIPV.d.ts} +3 -3
- package/dist/ugui/index.d.ts +2 -2
- package/dist/ugui/jsx-dev-runtime.d.ts +1 -1
- package/dist/ugui/jsx-runtime.d.ts +1 -1
- package/dist/uitoolkit/index.d.ts +2 -2
- package/dist/uitoolkit/jsx-dev-runtime.d.ts +1 -1
- package/dist/uitoolkit/jsx-runtime.d.ts +1 -1
- package/dist/vite.mjs +1 -2
- package/dist/vite.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/index-CEmZZAHV.d.ts +0 -1
|
@@ -27,11 +27,14 @@ type MixBlendMode = BackgroundBlendMode | 'plus-lighter';
|
|
|
27
27
|
type MaskMode = 'match-source' | 'alpha' | 'luminance';
|
|
28
28
|
type ImageRendering = 'auto' | 'smooth' | 'high-quality' | 'crisp-edges' | 'pixelated';
|
|
29
29
|
type Isolation = 'auto' | 'isolate';
|
|
30
|
+
type BackfaceVisibility = 'visible' | 'hidden';
|
|
30
31
|
type ScrollBehavior = 'auto' | 'smooth';
|
|
31
32
|
type ScrollSnapAxis = 'x' | 'y' | 'block' | 'inline' | 'both';
|
|
32
33
|
type ScrollSnapType = 'none' | ScrollSnapAxis | `${ScrollSnapAxis} mandatory` | `${ScrollSnapAxis} proximity`;
|
|
33
34
|
type ScrollSnapAlignment = 'none' | 'start' | 'end' | 'center';
|
|
34
35
|
type ScrollSnapAlign = ScrollSnapAlignment | `${ScrollSnapAlignment} ${ScrollSnapAlignment}`;
|
|
36
|
+
type ScrollSnapStop = 'normal' | 'always';
|
|
37
|
+
type OverscrollBehavior = 'auto' | 'contain' | 'none';
|
|
35
38
|
type CursorType = 'auto' | 'default' | 'none' | 'context-menu' | 'help' | 'pointer' | 'progress' | 'wait' | 'cell' | 'crosshair' | 'text' | 'vertical-text' | 'alias' | 'copy' | 'move' | 'no-drop' | 'not-allowed' | 'e-resize' | 'n-resize' | 'ne-resize' | 'nw-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'w-resize' | 'ew-resize' | 'ns-resize' | 'nesw-resize' | 'nwse-resize' | 'col-resize' | 'row-resize' | 'all-scroll' | 'zoom-in' | 'zoom-out' | 'grab' | 'grabbing';
|
|
36
39
|
type TextAlign = 'justify' | 'start' | 'end' | 'top-left' | 'top' | 'top-right' | 'top-justified' | 'top-flush' | 'top-geo-aligned' | 'left' | 'center' | 'right' | 'justified' | 'flush' | 'center-geo-aligned' | 'bottom-left' | 'bottom' | 'bottom-right' | 'bottom-justified' | 'bottom-flush' | 'bottom-geo-aligned' | 'baseline-left' | 'baseline' | 'baseline-right' | 'baseline-justified' | 'baseline-flush' | 'baseline-geo-aligned' | 'midline-left' | 'midline' | 'midline-right' | 'midline-justified' | 'midline-flush' | 'midline-geo-aligned' | 'capline-left' | 'capline' | 'capline-right' | 'capline-justified' | 'capline-flush' | 'capline-geo-aligned' | 'converted';
|
|
37
40
|
type VerticalAlign = 'top' | 'middle' | 'bottom' | 'baseline' | 'geometry' | 'capline';
|
|
@@ -42,6 +45,7 @@ type AnimationPlayState = 'running' | 'paused';
|
|
|
42
45
|
type TimelineAxis = 'block' | 'inline' | 'x' | 'y';
|
|
43
46
|
type BackgroundSize = 'cover' | 'contain';
|
|
44
47
|
type BackgroundRepeat = 'repeat' | 'space' | 'round' | 'no-repeat';
|
|
48
|
+
type BackgroundClip = 'border-box' | 'padding-box' | 'content-box' | 'text';
|
|
45
49
|
type BorderImageRepeat = 'stretch' | 'repeat' | 'space' | 'round';
|
|
46
50
|
//#endregion
|
|
47
51
|
//#region src/models/properties/colors.d.ts
|
|
@@ -333,7 +337,29 @@ interface RenderStyle {
|
|
|
333
337
|
scrollBehavior?: ScrollBehavior;
|
|
334
338
|
scrollSnapType?: ScrollSnapType;
|
|
335
339
|
scrollSnapAlign?: ScrollSnapAlign;
|
|
340
|
+
scrollSnapStop?: ScrollSnapStop;
|
|
341
|
+
overscrollBehaviorX?: OverscrollBehavior;
|
|
342
|
+
overscrollBehaviorY?: OverscrollBehavior;
|
|
343
|
+
overscrollBehaviorInline?: OverscrollBehavior;
|
|
344
|
+
overscrollBehaviorBlock?: OverscrollBehavior;
|
|
345
|
+
scrollPaddingTop?: YogaValueAux;
|
|
346
|
+
scrollPaddingRight?: YogaValueAux;
|
|
347
|
+
scrollPaddingBottom?: YogaValueAux;
|
|
348
|
+
scrollPaddingLeft?: YogaValueAux;
|
|
349
|
+
scrollPaddingInlineStart?: YogaValueAux;
|
|
350
|
+
scrollPaddingInlineEnd?: YogaValueAux;
|
|
351
|
+
scrollPaddingBlockStart?: YogaValueAux;
|
|
352
|
+
scrollPaddingBlockEnd?: YogaValueAux;
|
|
353
|
+
scrollMarginTop?: number;
|
|
354
|
+
scrollMarginRight?: number;
|
|
355
|
+
scrollMarginBottom?: number;
|
|
356
|
+
scrollMarginLeft?: number;
|
|
357
|
+
scrollMarginInlineStart?: number;
|
|
358
|
+
scrollMarginInlineEnd?: number;
|
|
359
|
+
scrollMarginBlockStart?: number;
|
|
360
|
+
scrollMarginBlockEnd?: number;
|
|
336
361
|
backgroundBlendMode?: MixBlendMode | SafeString;
|
|
362
|
+
backgroundClip?: BackgroundClip | SafeString;
|
|
337
363
|
backgroundColor?: ColorAux;
|
|
338
364
|
backgroundImage?: AssetReferenceOrHttp;
|
|
339
365
|
backgroundPositionX?: YogaValueAux;
|
|
@@ -364,6 +390,18 @@ interface RenderStyle {
|
|
|
364
390
|
borderRightStyle?: BorderStyle;
|
|
365
391
|
borderBottomStyle?: BorderStyle;
|
|
366
392
|
borderLeftStyle?: BorderStyle;
|
|
393
|
+
borderStartStartRadius?: Array2Aux<YogaValueAux>;
|
|
394
|
+
borderStartEndRadius?: Array2Aux<YogaValueAux>;
|
|
395
|
+
borderEndStartRadius?: Array2Aux<YogaValueAux>;
|
|
396
|
+
borderEndEndRadius?: Array2Aux<YogaValueAux>;
|
|
397
|
+
borderInlineStartColor?: ColorAux;
|
|
398
|
+
borderInlineEndColor?: ColorAux;
|
|
399
|
+
borderBlockStartColor?: ColorAux;
|
|
400
|
+
borderBlockEndColor?: ColorAux;
|
|
401
|
+
borderInlineStartStyle?: BorderStyle;
|
|
402
|
+
borderInlineEndStyle?: BorderStyle;
|
|
403
|
+
borderBlockStartStyle?: BorderStyle;
|
|
404
|
+
borderBlockEndStyle?: BorderStyle;
|
|
367
405
|
borderImageSource?: AssetReferenceOrHttp;
|
|
368
406
|
borderImageSlice?: YogaValueAux;
|
|
369
407
|
borderImageRepeat?: BorderImageRepeat;
|
|
@@ -382,6 +420,9 @@ interface RenderStyle {
|
|
|
382
420
|
translateZ?: YogaValueAux;
|
|
383
421
|
scale?: Vector2Aux;
|
|
384
422
|
rotate?: Vector3Aux;
|
|
423
|
+
perspective?: YogaValueAux;
|
|
424
|
+
perspectiveOrigin?: YogaValue2Aux;
|
|
425
|
+
backfaceVisibility?: BackfaceVisibility;
|
|
385
426
|
stateDuration?: number;
|
|
386
427
|
color?: ColorAux;
|
|
387
428
|
imageRendering?: ImageRendering;
|
|
@@ -473,6 +514,7 @@ interface RenderStyle {
|
|
|
473
514
|
viewTimeline?: SafeString;
|
|
474
515
|
animationRange?: SafeString;
|
|
475
516
|
scrollbarGutter?: 'auto' | 'stable' | 'stable both-edges';
|
|
517
|
+
overscrollBehavior?: OverscrollBehavior | `${OverscrollBehavior} ${OverscrollBehavior}`;
|
|
476
518
|
container?: SafeString;
|
|
477
519
|
paddingInline?: SafeString | number;
|
|
478
520
|
paddingBlock?: SafeString | number;
|
|
@@ -5298,6 +5340,17 @@ declare namespace ReactUnity {
|
|
|
5298
5340
|
scrollBehavior: ReactUnity.Types.ScrollBehavior;
|
|
5299
5341
|
scrollSnapType: ReactUnity.Types.ScrollSnapType;
|
|
5300
5342
|
scrollSnapAlign: ReactUnity.Types.ScrollSnapAlign;
|
|
5343
|
+
scrollSnapStop: ReactUnity.Types.ScrollSnapStop;
|
|
5344
|
+
overscrollBehaviorX: ReactUnity.Types.OverscrollBehavior;
|
|
5345
|
+
overscrollBehaviorY: ReactUnity.Types.OverscrollBehavior;
|
|
5346
|
+
scrollPaddingTop: Yoga.YogaValue;
|
|
5347
|
+
scrollPaddingRight: Yoga.YogaValue;
|
|
5348
|
+
scrollPaddingBottom: Yoga.YogaValue;
|
|
5349
|
+
scrollPaddingLeft: Yoga.YogaValue;
|
|
5350
|
+
scrollMarginTop: number;
|
|
5351
|
+
scrollMarginRight: number;
|
|
5352
|
+
scrollMarginBottom: number;
|
|
5353
|
+
scrollMarginLeft: number;
|
|
5301
5354
|
borderTopLeftRadius: ReactUnity.Types.YogaValue2;
|
|
5302
5355
|
borderTopRightRadius: ReactUnity.Types.YogaValue2;
|
|
5303
5356
|
borderBottomLeftRadius: ReactUnity.Types.YogaValue2;
|
|
@@ -5320,6 +5373,9 @@ declare namespace ReactUnity {
|
|
|
5320
5373
|
translateZ: Yoga.YogaValue;
|
|
5321
5374
|
scale: UnityEngine.Vector3;
|
|
5322
5375
|
rotate: UnityEngine.Vector3;
|
|
5376
|
+
perspective: number;
|
|
5377
|
+
perspectiveOrigin: ReactUnity.Types.YogaValue2;
|
|
5378
|
+
backfaceVisibility: ReactUnity.Types.BackfaceVisibility;
|
|
5323
5379
|
fontFamily: ReactUnity.Types.FontReference;
|
|
5324
5380
|
color: UnityEngine.Color;
|
|
5325
5381
|
fontWeight: any;
|
|
@@ -5360,6 +5416,7 @@ declare namespace ReactUnity {
|
|
|
5360
5416
|
backgroundRepeatX: ReactUnity.Types.ICssValueList<ReactUnity.Types.BackgroundRepeat>;
|
|
5361
5417
|
backgroundRepeatY: ReactUnity.Types.ICssValueList<ReactUnity.Types.BackgroundRepeat>;
|
|
5362
5418
|
backgroundBlendMode: ReactUnity.Types.ICssValueList<ReactUnity.Types.BackgroundBlendMode>;
|
|
5419
|
+
backgroundClip: ReactUnity.Types.ICssValueList<ReactUnity.Types.BackgroundBox>;
|
|
5363
5420
|
maskImage: ReactUnity.Types.ICssValueList<ReactUnity.Types.ImageDefinition>;
|
|
5364
5421
|
maskPositionX: ReactUnity.Types.ICssValueList<Yoga.YogaValue>;
|
|
5365
5422
|
maskPositionY: ReactUnity.Types.ICssValueList<Yoga.YogaValue>;
|
|
@@ -5408,6 +5465,7 @@ declare namespace ReactUnity {
|
|
|
5408
5465
|
SetStyleValue(prop: ReactUnity.Styling.IStyleProperty, value: any): void;
|
|
5409
5466
|
MarkChangesSeen(): void;
|
|
5410
5467
|
HasValue(prop: ReactUnity.Styling.IStyleProperty): boolean;
|
|
5468
|
+
ResolveLogical(prop: ReactUnity.Styling.IStyleProperty): ReactUnity.Styling.IStyleProperty;
|
|
5411
5469
|
Equals(obj: any): boolean;
|
|
5412
5470
|
GetHashCode(): number;
|
|
5413
5471
|
GetType(): System.Type;
|
|
@@ -5557,7 +5615,22 @@ declare namespace ReactUnity {
|
|
|
5557
5615
|
static scrollbarGutter: ReactUnity.Styling.StyleProperty;
|
|
5558
5616
|
static scrollBehavior: ReactUnity.Styling.StyleProperty;
|
|
5559
5617
|
static scrollSnapType: ReactUnity.Styling.StyleProperty;
|
|
5618
|
+
static overscrollBehaviorX: ReactUnity.Styling.StyleProperty;
|
|
5619
|
+
static overscrollBehaviorY: ReactUnity.Styling.StyleProperty;
|
|
5560
5620
|
static scrollSnapAlign: ReactUnity.Styling.StyleProperty;
|
|
5621
|
+
static scrollSnapStop: ReactUnity.Styling.StyleProperty;
|
|
5622
|
+
static scrollPaddingTop: ReactUnity.Styling.StyleProperty;
|
|
5623
|
+
static scrollPaddingRight: ReactUnity.Styling.StyleProperty;
|
|
5624
|
+
static scrollPaddingBottom: ReactUnity.Styling.StyleProperty;
|
|
5625
|
+
static scrollPaddingLeft: ReactUnity.Styling.StyleProperty;
|
|
5626
|
+
static scrollPaddingInlineStart: ReactUnity.Styling.StyleProperty;
|
|
5627
|
+
static scrollPaddingInlineEnd: ReactUnity.Styling.StyleProperty;
|
|
5628
|
+
static scrollMarginTop: ReactUnity.Styling.StyleProperty;
|
|
5629
|
+
static scrollMarginRight: ReactUnity.Styling.StyleProperty;
|
|
5630
|
+
static scrollMarginBottom: ReactUnity.Styling.StyleProperty;
|
|
5631
|
+
static scrollMarginLeft: ReactUnity.Styling.StyleProperty;
|
|
5632
|
+
static scrollMarginInlineStart: ReactUnity.Styling.StyleProperty;
|
|
5633
|
+
static scrollMarginInlineEnd: ReactUnity.Styling.StyleProperty;
|
|
5561
5634
|
static borderTopLeftRadius: ReactUnity.Styling.StyleProperty;
|
|
5562
5635
|
static borderTopRightRadius: ReactUnity.Styling.StyleProperty;
|
|
5563
5636
|
static borderBottomLeftRadius: ReactUnity.Styling.StyleProperty;
|
|
@@ -5570,6 +5643,14 @@ declare namespace ReactUnity {
|
|
|
5570
5643
|
static borderRightStyle: ReactUnity.Styling.StyleProperty;
|
|
5571
5644
|
static borderTopStyle: ReactUnity.Styling.StyleProperty;
|
|
5572
5645
|
static borderBottomStyle: ReactUnity.Styling.StyleProperty;
|
|
5646
|
+
static borderInlineStartColor: ReactUnity.Styling.StyleProperty;
|
|
5647
|
+
static borderInlineEndColor: ReactUnity.Styling.StyleProperty;
|
|
5648
|
+
static borderInlineStartStyle: ReactUnity.Styling.StyleProperty;
|
|
5649
|
+
static borderInlineEndStyle: ReactUnity.Styling.StyleProperty;
|
|
5650
|
+
static borderStartStartRadius: ReactUnity.Styling.StyleProperty;
|
|
5651
|
+
static borderStartEndRadius: ReactUnity.Styling.StyleProperty;
|
|
5652
|
+
static borderEndStartRadius: ReactUnity.Styling.StyleProperty;
|
|
5653
|
+
static borderEndEndRadius: ReactUnity.Styling.StyleProperty;
|
|
5573
5654
|
static outlineOffset: ReactUnity.Styling.StyleProperty;
|
|
5574
5655
|
static outlineWidth: ReactUnity.Styling.StyleProperty;
|
|
5575
5656
|
static outlineColor: ReactUnity.Styling.StyleProperty;
|
|
@@ -5579,6 +5660,9 @@ declare namespace ReactUnity {
|
|
|
5579
5660
|
static translateZ: ReactUnity.Styling.StyleProperty;
|
|
5580
5661
|
static scale: ReactUnity.Styling.StyleProperty;
|
|
5581
5662
|
static rotate: ReactUnity.Styling.StyleProperty;
|
|
5663
|
+
static perspective: ReactUnity.Styling.StyleProperty;
|
|
5664
|
+
static perspectiveOrigin: ReactUnity.Styling.StyleProperty;
|
|
5665
|
+
static backfaceVisibility: ReactUnity.Styling.StyleProperty;
|
|
5582
5666
|
static fontFamily: ReactUnity.Styling.StyleProperty;
|
|
5583
5667
|
static color: ReactUnity.Styling.StyleProperty;
|
|
5584
5668
|
static fontWeight: ReactUnity.Styling.StyleProperty;
|
|
@@ -5620,6 +5704,7 @@ declare namespace ReactUnity {
|
|
|
5620
5704
|
static backgroundRepeatX: ReactUnity.Styling.ValueListStyleProperty;
|
|
5621
5705
|
static backgroundRepeatY: ReactUnity.Styling.ValueListStyleProperty;
|
|
5622
5706
|
static backgroundBlendMode: ReactUnity.Styling.ValueListStyleProperty;
|
|
5707
|
+
static backgroundClip: ReactUnity.Styling.ValueListStyleProperty;
|
|
5623
5708
|
static maskImage: ReactUnity.Styling.ValueListStyleProperty;
|
|
5624
5709
|
static maskPositionX: ReactUnity.Styling.ValueListStyleProperty;
|
|
5625
5710
|
static maskPositionY: ReactUnity.Styling.ValueListStyleProperty;
|
|
@@ -6547,6 +6632,7 @@ declare namespace ReactUnity {
|
|
|
6547
6632
|
static FloatConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
6548
6633
|
static AngleConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
6549
6634
|
static LengthConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
6635
|
+
static PerspectiveConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
6550
6636
|
static FontSizeConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
6551
6637
|
static LineHeightConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
6552
6638
|
static DurationConverter: ReactUnity.Styling.Converters.StyleConverterBase;
|
|
@@ -6858,6 +6944,20 @@ declare namespace ReactUnity {
|
|
|
6858
6944
|
GetType(): System.Type;
|
|
6859
6945
|
ToString(): string;
|
|
6860
6946
|
}
|
|
6947
|
+
class PerspectiveConverter {
|
|
6948
|
+
constructor();
|
|
6949
|
+
AllowSuffixless: boolean;
|
|
6950
|
+
CalcConverter: ReactUnity.Styling.Converters.CalcConverter;
|
|
6951
|
+
StringifyTyped(value: number): string;
|
|
6952
|
+
StringifyInternal(value: any): string;
|
|
6953
|
+
CanHandleKeyword(keyword: ReactUnity.Styling.CssKeyword): boolean;
|
|
6954
|
+
Convert(value: any): ReactUnity.Styling.Computed.IComputedValue;
|
|
6955
|
+
Stringify(value: any): string;
|
|
6956
|
+
Equals(obj: any): boolean;
|
|
6957
|
+
GetHashCode(): number;
|
|
6958
|
+
GetType(): System.Type;
|
|
6959
|
+
ToString(): string;
|
|
6960
|
+
}
|
|
6861
6961
|
class FontSizeConverter {
|
|
6862
6962
|
constructor();
|
|
6863
6963
|
AllowSuffixless: boolean;
|
|
@@ -7223,6 +7323,7 @@ declare namespace ReactUnity {
|
|
|
7223
7323
|
class RuleHelpers {
|
|
7224
7324
|
static ImportantSpecifity: number;
|
|
7225
7325
|
static LayerSpecifityStep: number;
|
|
7326
|
+
static ImportanceSpecifityStep: number;
|
|
7226
7327
|
static MaxLayerRank: number;
|
|
7227
7328
|
static SplitSelectorRegex: System.Text.RegularExpressions.Regex;
|
|
7228
7329
|
static KnownPseudoElements: System.Collections.Generic.HashSet;
|
|
@@ -7579,6 +7680,10 @@ declare namespace ReactUnity {
|
|
|
7579
7680
|
GetType(): System.Type;
|
|
7580
7681
|
ToString(): string;
|
|
7581
7682
|
}
|
|
7683
|
+
enum BackfaceVisibility {
|
|
7684
|
+
Visible = 0,
|
|
7685
|
+
Hidden = 1
|
|
7686
|
+
}
|
|
7582
7687
|
class BackgroundSize {
|
|
7583
7688
|
constructor(keyword: ReactUnity.Types.BackgroundSizeKeyword);
|
|
7584
7689
|
constructor(value: ReactUnity.Types.YogaValue2);
|
|
@@ -7610,7 +7715,8 @@ declare namespace ReactUnity {
|
|
|
7610
7715
|
enum BackgroundBox {
|
|
7611
7716
|
BorderBox = 0,
|
|
7612
7717
|
ContentBox = 1,
|
|
7613
|
-
PaddingBox = 2
|
|
7718
|
+
PaddingBox = 2,
|
|
7719
|
+
Text = 3
|
|
7614
7720
|
}
|
|
7615
7721
|
enum BackgroundAttachment {
|
|
7616
7722
|
Scroll = 0,
|
|
@@ -8218,6 +8324,11 @@ declare namespace ReactUnity {
|
|
|
8218
8324
|
None = 3,
|
|
8219
8325
|
ScaleDown = 4
|
|
8220
8326
|
}
|
|
8327
|
+
enum OverscrollBehavior {
|
|
8328
|
+
Auto = 0,
|
|
8329
|
+
Contain = 1,
|
|
8330
|
+
None = 2
|
|
8331
|
+
}
|
|
8221
8332
|
enum PointerEvents {
|
|
8222
8333
|
Auto = 0,
|
|
8223
8334
|
Visible = 0,
|
|
@@ -8260,6 +8371,10 @@ declare namespace ReactUnity {
|
|
|
8260
8371
|
ToString(): string;
|
|
8261
8372
|
GetType(): System.Type;
|
|
8262
8373
|
}
|
|
8374
|
+
enum ScrollSnapStop {
|
|
8375
|
+
Normal = 0,
|
|
8376
|
+
Always = 1
|
|
8377
|
+
}
|
|
8263
8378
|
enum ScrollSnapAxis {
|
|
8264
8379
|
None = 0,
|
|
8265
8380
|
X = 1,
|
|
@@ -8705,6 +8820,7 @@ declare namespace ReactUnity {
|
|
|
8705
8820
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
8706
8821
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
8707
8822
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
8823
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
8708
8824
|
Selectable: UnityEngine.UI.Selectable;
|
|
8709
8825
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
8710
8826
|
Canvas: UnityEngine.Canvas;
|
|
@@ -8806,6 +8922,7 @@ declare namespace ReactUnity {
|
|
|
8806
8922
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
8807
8923
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
8808
8924
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
8925
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
8809
8926
|
Selectable: UnityEngine.UI.Selectable;
|
|
8810
8927
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
8811
8928
|
Canvas: UnityEngine.Canvas;
|
|
@@ -8909,6 +9026,7 @@ declare namespace ReactUnity {
|
|
|
8909
9026
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
8910
9027
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
8911
9028
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9029
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
8912
9030
|
Selectable: UnityEngine.UI.Selectable;
|
|
8913
9031
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
8914
9032
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9014,6 +9132,7 @@ declare namespace ReactUnity {
|
|
|
9014
9132
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9015
9133
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9016
9134
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9135
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9017
9136
|
Selectable: UnityEngine.UI.Selectable;
|
|
9018
9137
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9019
9138
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9115,6 +9234,7 @@ declare namespace ReactUnity {
|
|
|
9115
9234
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9116
9235
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9117
9236
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9237
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9118
9238
|
Selectable: UnityEngine.UI.Selectable;
|
|
9119
9239
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9120
9240
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9213,6 +9333,7 @@ declare namespace ReactUnity {
|
|
|
9213
9333
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9214
9334
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9215
9335
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9336
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9216
9337
|
Selectable: UnityEngine.UI.Selectable;
|
|
9217
9338
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9218
9339
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9313,6 +9434,7 @@ declare namespace ReactUnity {
|
|
|
9313
9434
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9314
9435
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9315
9436
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9437
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9316
9438
|
Selectable: UnityEngine.UI.Selectable;
|
|
9317
9439
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9318
9440
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9416,6 +9538,7 @@ declare namespace ReactUnity {
|
|
|
9416
9538
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9417
9539
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9418
9540
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9541
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9419
9542
|
Selectable: UnityEngine.UI.Selectable;
|
|
9420
9543
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9421
9544
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9519,6 +9642,7 @@ declare namespace ReactUnity {
|
|
|
9519
9642
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9520
9643
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9521
9644
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9645
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9522
9646
|
Selectable: UnityEngine.UI.Selectable;
|
|
9523
9647
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9524
9648
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9627,6 +9751,7 @@ declare namespace ReactUnity {
|
|
|
9627
9751
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9628
9752
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9629
9753
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9754
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9630
9755
|
Selectable: UnityEngine.UI.Selectable;
|
|
9631
9756
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9632
9757
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9727,6 +9852,7 @@ declare namespace ReactUnity {
|
|
|
9727
9852
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9728
9853
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9729
9854
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9855
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9730
9856
|
Selectable: UnityEngine.UI.Selectable;
|
|
9731
9857
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9732
9858
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9831,6 +9957,7 @@ declare namespace ReactUnity {
|
|
|
9831
9957
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9832
9958
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9833
9959
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
9960
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9834
9961
|
Selectable: UnityEngine.UI.Selectable;
|
|
9835
9962
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9836
9963
|
Canvas: UnityEngine.Canvas;
|
|
@@ -9932,6 +10059,7 @@ declare namespace ReactUnity {
|
|
|
9932
10059
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
9933
10060
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
9934
10061
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10062
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
9935
10063
|
Selectable: UnityEngine.UI.Selectable;
|
|
9936
10064
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
9937
10065
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10032,6 +10160,7 @@ declare namespace ReactUnity {
|
|
|
10032
10160
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10033
10161
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10034
10162
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10163
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10035
10164
|
Selectable: UnityEngine.UI.Selectable;
|
|
10036
10165
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10037
10166
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10132,6 +10261,7 @@ declare namespace ReactUnity {
|
|
|
10132
10261
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10133
10262
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10134
10263
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10264
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10135
10265
|
Selectable: UnityEngine.UI.Selectable;
|
|
10136
10266
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10137
10267
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10235,6 +10365,7 @@ declare namespace ReactUnity {
|
|
|
10235
10365
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10236
10366
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10237
10367
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10368
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10238
10369
|
Selectable: UnityEngine.UI.Selectable;
|
|
10239
10370
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10240
10371
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10343,6 +10474,7 @@ declare namespace ReactUnity {
|
|
|
10343
10474
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10344
10475
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10345
10476
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10477
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10346
10478
|
Selectable: UnityEngine.UI.Selectable;
|
|
10347
10479
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10348
10480
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10443,6 +10575,7 @@ declare namespace ReactUnity {
|
|
|
10443
10575
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10444
10576
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10445
10577
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10578
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10446
10579
|
Selectable: UnityEngine.UI.Selectable;
|
|
10447
10580
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10448
10581
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10540,6 +10673,7 @@ declare namespace ReactUnity {
|
|
|
10540
10673
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10541
10674
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10542
10675
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10676
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10543
10677
|
Selectable: UnityEngine.UI.Selectable;
|
|
10544
10678
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10545
10679
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10637,6 +10771,7 @@ declare namespace ReactUnity {
|
|
|
10637
10771
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10638
10772
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10639
10773
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10774
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10640
10775
|
Selectable: UnityEngine.UI.Selectable;
|
|
10641
10776
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10642
10777
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10740,6 +10875,7 @@ declare namespace ReactUnity {
|
|
|
10740
10875
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10741
10876
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10742
10877
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10878
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10743
10879
|
Selectable: UnityEngine.UI.Selectable;
|
|
10744
10880
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10745
10881
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10840,6 +10976,7 @@ declare namespace ReactUnity {
|
|
|
10840
10976
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10841
10977
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10842
10978
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
10979
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10843
10980
|
Selectable: UnityEngine.UI.Selectable;
|
|
10844
10981
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10845
10982
|
Canvas: UnityEngine.Canvas;
|
|
@@ -10945,6 +11082,7 @@ declare namespace ReactUnity {
|
|
|
10945
11082
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
10946
11083
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
10947
11084
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
11085
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
10948
11086
|
Selectable: UnityEngine.UI.Selectable;
|
|
10949
11087
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
10950
11088
|
Canvas: UnityEngine.Canvas;
|
|
@@ -11051,6 +11189,7 @@ declare namespace ReactUnity {
|
|
|
11051
11189
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
11052
11190
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
11053
11191
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
11192
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
11054
11193
|
Selectable: UnityEngine.UI.Selectable;
|
|
11055
11194
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
11056
11195
|
Canvas: UnityEngine.Canvas;
|
|
@@ -11155,6 +11294,7 @@ declare namespace ReactUnity {
|
|
|
11155
11294
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
11156
11295
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
11157
11296
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
11297
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
11158
11298
|
Selectable: UnityEngine.UI.Selectable;
|
|
11159
11299
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
11160
11300
|
Canvas: UnityEngine.Canvas;
|
|
@@ -11253,6 +11393,7 @@ declare namespace ReactUnity {
|
|
|
11253
11393
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
11254
11394
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
11255
11395
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
11396
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
11256
11397
|
Selectable: UnityEngine.UI.Selectable;
|
|
11257
11398
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
11258
11399
|
Canvas: UnityEngine.Canvas;
|
|
@@ -11356,6 +11497,7 @@ declare namespace ReactUnity {
|
|
|
11356
11497
|
BorderAndBackground: ReactUnity.UGUI.Internal.BorderAndBackground;
|
|
11357
11498
|
OverflowMask: ReactUnity.UGUI.Internal.MaskAndImage;
|
|
11358
11499
|
ElementFilter: ReactUnity.UGUI.Internal.ElementFilter;
|
|
11500
|
+
BackfaceCuller: ReactUnity.UGUI.Behaviours.BackfaceCuller;
|
|
11359
11501
|
Selectable: UnityEngine.UI.Selectable;
|
|
11360
11502
|
CanvasGroup: UnityEngine.CanvasGroup;
|
|
11361
11503
|
Canvas: UnityEngine.Canvas;
|
|
@@ -11646,6 +11788,71 @@ declare namespace ReactUnity {
|
|
|
11646
11788
|
ToString(): string;
|
|
11647
11789
|
}
|
|
11648
11790
|
namespace Behaviours {
|
|
11791
|
+
class BackfaceCuller {
|
|
11792
|
+
constructor();
|
|
11793
|
+
Component: ReactUnity.UGUI.UGUIComponent;
|
|
11794
|
+
IsBackFacing: boolean;
|
|
11795
|
+
destroyCancellationToken: System.Threading.CancellationToken;
|
|
11796
|
+
useGUILayout: boolean;
|
|
11797
|
+
didStart: boolean;
|
|
11798
|
+
didAwake: boolean;
|
|
11799
|
+
runInEditMode: boolean;
|
|
11800
|
+
enabled: boolean;
|
|
11801
|
+
isActiveAndEnabled: boolean;
|
|
11802
|
+
transform: UnityEngine.Transform;
|
|
11803
|
+
transformHandle: UnityEngine.TransformHandle;
|
|
11804
|
+
gameObject: UnityEngine.GameObject;
|
|
11805
|
+
tag: string;
|
|
11806
|
+
name: string;
|
|
11807
|
+
hideFlags: UnityEngine.HideFlags;
|
|
11808
|
+
IsInvoking(): boolean;
|
|
11809
|
+
CancelInvoke(): void;
|
|
11810
|
+
Invoke(methodName: string, time: number): void;
|
|
11811
|
+
InvokeRepeating(methodName: string, time: number, repeatRate: number): void;
|
|
11812
|
+
CancelInvoke(methodName: string): void;
|
|
11813
|
+
IsInvoking(methodName: string): boolean;
|
|
11814
|
+
StartCoroutine(methodName: string): UnityEngine.Coroutine;
|
|
11815
|
+
StartCoroutine(methodName: string, value: any): UnityEngine.Coroutine;
|
|
11816
|
+
StartCoroutine(routine: System.Collections.IEnumerator): UnityEngine.Coroutine;
|
|
11817
|
+
StartCoroutine_Auto(routine: System.Collections.IEnumerator): UnityEngine.Coroutine;
|
|
11818
|
+
StopCoroutine(routine: System.Collections.IEnumerator): void;
|
|
11819
|
+
StopCoroutine(routine: UnityEngine.Coroutine): void;
|
|
11820
|
+
StopCoroutine(methodName: string): void;
|
|
11821
|
+
StopAllCoroutines(): void;
|
|
11822
|
+
GetComponent(type: System.Type): UnityEngine.Component;
|
|
11823
|
+
GetComponent(type: string): UnityEngine.Component;
|
|
11824
|
+
GetComponentInChildren(t: System.Type, includeInactive: boolean): UnityEngine.Component;
|
|
11825
|
+
GetComponentInChildren(t: System.Type): UnityEngine.Component;
|
|
11826
|
+
GetComponentsInChildren(t: System.Type, includeInactive: boolean): UnityEngine.Component[];
|
|
11827
|
+
GetComponentsInChildren(t: System.Type): UnityEngine.Component[];
|
|
11828
|
+
GetComponentInParent(t: System.Type, includeInactive: boolean): UnityEngine.Component;
|
|
11829
|
+
GetComponentInParent(t: System.Type): UnityEngine.Component;
|
|
11830
|
+
GetComponentsInParent(t: System.Type, includeInactive: boolean): UnityEngine.Component[];
|
|
11831
|
+
GetComponentsInParent(t: System.Type): UnityEngine.Component[];
|
|
11832
|
+
GetComponents(type: System.Type): UnityEngine.Component[];
|
|
11833
|
+
GetComponents(type: System.Type, results: UnityEngine.Component[]): void;
|
|
11834
|
+
GetComponentIndex(): number;
|
|
11835
|
+
CompareTag(tag: string): boolean;
|
|
11836
|
+
CompareTag(tag: UnityEngine.TagHandle): boolean;
|
|
11837
|
+
SendMessageUpwards(methodName: string, value: any, options: UnityEngine.SendMessageOptions): void;
|
|
11838
|
+
SendMessageUpwards(methodName: string, value: any): void;
|
|
11839
|
+
SendMessageUpwards(methodName: string): void;
|
|
11840
|
+
SendMessageUpwards(methodName: string, options: UnityEngine.SendMessageOptions): void;
|
|
11841
|
+
SendMessage(methodName: string, value: any): void;
|
|
11842
|
+
SendMessage(methodName: string): void;
|
|
11843
|
+
SendMessage(methodName: string, value: any, options: UnityEngine.SendMessageOptions): void;
|
|
11844
|
+
SendMessage(methodName: string, options: UnityEngine.SendMessageOptions): void;
|
|
11845
|
+
BroadcastMessage(methodName: string, parameter: any, options: UnityEngine.SendMessageOptions): void;
|
|
11846
|
+
BroadcastMessage(methodName: string, parameter: any): void;
|
|
11847
|
+
BroadcastMessage(methodName: string): void;
|
|
11848
|
+
BroadcastMessage(methodName: string, options: UnityEngine.SendMessageOptions): void;
|
|
11849
|
+
GetEntityId(): UnityEngine.EntityId;
|
|
11850
|
+
GetInstanceID(): number;
|
|
11851
|
+
GetHashCode(): number;
|
|
11852
|
+
Equals(other: any): boolean;
|
|
11853
|
+
ToString(): string;
|
|
11854
|
+
GetType(): System.Type;
|
|
11855
|
+
}
|
|
11649
11856
|
class CustomViewportRaycaster {
|
|
11650
11857
|
constructor();
|
|
11651
11858
|
eventCamera: UnityEngine.Camera;
|
|
@@ -12208,8 +12415,11 @@ declare namespace ReactUnity {
|
|
|
12208
12415
|
constructor();
|
|
12209
12416
|
Smoothness: number;
|
|
12210
12417
|
SmoothBehavior: boolean;
|
|
12418
|
+
OverscrollX: ReactUnity.Types.OverscrollBehavior;
|
|
12419
|
+
OverscrollY: ReactUnity.Types.OverscrollBehavior;
|
|
12420
|
+
Component: ReactUnity.UGUI.ScrollComponent;
|
|
12211
12421
|
BehaviorSmoothness: number;
|
|
12212
|
-
FindSnapTarget?: ((
|
|
12422
|
+
FindSnapTarget?: ((arg1: UnityEngine.Vector2, arg2: UnityEngine.Vector2) => UnityEngine.Vector2 | undefined);
|
|
12213
12423
|
WheelDirectionTransposed: boolean;
|
|
12214
12424
|
ClientWidth: number;
|
|
12215
12425
|
ClientHeight: number;
|
|
@@ -12261,6 +12471,7 @@ declare namespace ReactUnity {
|
|
|
12261
12471
|
hideFlags: UnityEngine.HideFlags;
|
|
12262
12472
|
OnScroll(data: UnityEngine.EventSystems.PointerEventData): void;
|
|
12263
12473
|
OnBeginDrag(eventData: UnityEngine.EventSystems.PointerEventData): void;
|
|
12474
|
+
OnDrag(eventData: UnityEngine.EventSystems.PointerEventData): void;
|
|
12264
12475
|
OnEndDrag(eventData: UnityEngine.EventSystems.PointerEventData): void;
|
|
12265
12476
|
RequestSnap(instant?: boolean): void;
|
|
12266
12477
|
ScrollBy(left?: number | undefined, top?: number | undefined, smoothness?: number | undefined): void;
|
|
@@ -12271,7 +12482,6 @@ declare namespace ReactUnity {
|
|
|
12271
12482
|
IsActive(): boolean;
|
|
12272
12483
|
StopMovement(): void;
|
|
12273
12484
|
OnInitializePotentialDrag(eventData: UnityEngine.EventSystems.PointerEventData): void;
|
|
12274
|
-
OnDrag(eventData: UnityEngine.EventSystems.PointerEventData): void;
|
|
12275
12485
|
CalculateLayoutInputHorizontal(): void;
|
|
12276
12486
|
CalculateLayoutInputVertical(): void;
|
|
12277
12487
|
SetLayoutHorizontal(): void;
|
|
@@ -13890,6 +14100,86 @@ declare namespace ReactUnity {
|
|
|
13890
14100
|
ToString(): string;
|
|
13891
14101
|
GetType(): System.Type;
|
|
13892
14102
|
}
|
|
14103
|
+
class BackgroundClipBox {
|
|
14104
|
+
Clips: boolean;
|
|
14105
|
+
Center: UnityEngine.Vector2;
|
|
14106
|
+
HalfSize: UnityEngine.Vector2;
|
|
14107
|
+
RadiusX: UnityEngine.Vector4;
|
|
14108
|
+
RadiusY: UnityEngine.Vector4;
|
|
14109
|
+
Equals(obj: any): boolean;
|
|
14110
|
+
GetHashCode(): number;
|
|
14111
|
+
ToString(): string;
|
|
14112
|
+
GetType(): System.Type;
|
|
14113
|
+
}
|
|
14114
|
+
class BackgroundClip {
|
|
14115
|
+
constructor();
|
|
14116
|
+
NeedsCoverage: boolean;
|
|
14117
|
+
Coverage: UnityEngine.Texture;
|
|
14118
|
+
RenderCount: number;
|
|
14119
|
+
destroyCancellationToken: System.Threading.CancellationToken;
|
|
14120
|
+
useGUILayout: boolean;
|
|
14121
|
+
didStart: boolean;
|
|
14122
|
+
didAwake: boolean;
|
|
14123
|
+
runInEditMode: boolean;
|
|
14124
|
+
enabled: boolean;
|
|
14125
|
+
isActiveAndEnabled: boolean;
|
|
14126
|
+
transform: UnityEngine.Transform;
|
|
14127
|
+
transformHandle: UnityEngine.TransformHandle;
|
|
14128
|
+
gameObject: UnityEngine.GameObject;
|
|
14129
|
+
tag: string;
|
|
14130
|
+
name: string;
|
|
14131
|
+
hideFlags: UnityEngine.HideFlags;
|
|
14132
|
+
static Create(cmp: ReactUnity.UGUI.UGUIComponent, paintingArea: UnityEngine.RectTransform, owner: ReactUnity.UGUI.Internal.BorderAndBackground): ReactUnity.UGUI.Internal.BackgroundClip;
|
|
14133
|
+
Invalidate(): void;
|
|
14134
|
+
static Bind(mat: UnityEngine.Material, clip: ReactUnity.UGUI.Internal.BackgroundClip, box: ReactUnity.Types.BackgroundBox): void;
|
|
14135
|
+
IsInvoking(): boolean;
|
|
14136
|
+
CancelInvoke(): void;
|
|
14137
|
+
Invoke(methodName: string, time: number): void;
|
|
14138
|
+
InvokeRepeating(methodName: string, time: number, repeatRate: number): void;
|
|
14139
|
+
CancelInvoke(methodName: string): void;
|
|
14140
|
+
IsInvoking(methodName: string): boolean;
|
|
14141
|
+
StartCoroutine(methodName: string): UnityEngine.Coroutine;
|
|
14142
|
+
StartCoroutine(methodName: string, value: any): UnityEngine.Coroutine;
|
|
14143
|
+
StartCoroutine(routine: System.Collections.IEnumerator): UnityEngine.Coroutine;
|
|
14144
|
+
StartCoroutine_Auto(routine: System.Collections.IEnumerator): UnityEngine.Coroutine;
|
|
14145
|
+
StopCoroutine(routine: System.Collections.IEnumerator): void;
|
|
14146
|
+
StopCoroutine(routine: UnityEngine.Coroutine): void;
|
|
14147
|
+
StopCoroutine(methodName: string): void;
|
|
14148
|
+
StopAllCoroutines(): void;
|
|
14149
|
+
GetComponent(type: System.Type): UnityEngine.Component;
|
|
14150
|
+
GetComponent(type: string): UnityEngine.Component;
|
|
14151
|
+
GetComponentInChildren(t: System.Type, includeInactive: boolean): UnityEngine.Component;
|
|
14152
|
+
GetComponentInChildren(t: System.Type): UnityEngine.Component;
|
|
14153
|
+
GetComponentsInChildren(t: System.Type, includeInactive: boolean): UnityEngine.Component[];
|
|
14154
|
+
GetComponentsInChildren(t: System.Type): UnityEngine.Component[];
|
|
14155
|
+
GetComponentInParent(t: System.Type, includeInactive: boolean): UnityEngine.Component;
|
|
14156
|
+
GetComponentInParent(t: System.Type): UnityEngine.Component;
|
|
14157
|
+
GetComponentsInParent(t: System.Type, includeInactive: boolean): UnityEngine.Component[];
|
|
14158
|
+
GetComponentsInParent(t: System.Type): UnityEngine.Component[];
|
|
14159
|
+
GetComponents(type: System.Type): UnityEngine.Component[];
|
|
14160
|
+
GetComponents(type: System.Type, results: UnityEngine.Component[]): void;
|
|
14161
|
+
GetComponentIndex(): number;
|
|
14162
|
+
CompareTag(tag: string): boolean;
|
|
14163
|
+
CompareTag(tag: UnityEngine.TagHandle): boolean;
|
|
14164
|
+
SendMessageUpwards(methodName: string, value: any, options: UnityEngine.SendMessageOptions): void;
|
|
14165
|
+
SendMessageUpwards(methodName: string, value: any): void;
|
|
14166
|
+
SendMessageUpwards(methodName: string): void;
|
|
14167
|
+
SendMessageUpwards(methodName: string, options: UnityEngine.SendMessageOptions): void;
|
|
14168
|
+
SendMessage(methodName: string, value: any): void;
|
|
14169
|
+
SendMessage(methodName: string): void;
|
|
14170
|
+
SendMessage(methodName: string, value: any, options: UnityEngine.SendMessageOptions): void;
|
|
14171
|
+
SendMessage(methodName: string, options: UnityEngine.SendMessageOptions): void;
|
|
14172
|
+
BroadcastMessage(methodName: string, parameter: any, options: UnityEngine.SendMessageOptions): void;
|
|
14173
|
+
BroadcastMessage(methodName: string, parameter: any): void;
|
|
14174
|
+
BroadcastMessage(methodName: string): void;
|
|
14175
|
+
BroadcastMessage(methodName: string, options: UnityEngine.SendMessageOptions): void;
|
|
14176
|
+
GetEntityId(): UnityEngine.EntityId;
|
|
14177
|
+
GetInstanceID(): number;
|
|
14178
|
+
GetHashCode(): number;
|
|
14179
|
+
Equals(other: any): boolean;
|
|
14180
|
+
ToString(): string;
|
|
14181
|
+
GetType(): System.Type;
|
|
14182
|
+
}
|
|
13893
14183
|
class BorderAndBackground {
|
|
13894
14184
|
constructor();
|
|
13895
14185
|
Root: UnityEngine.RectTransform;
|
|
@@ -13897,6 +14187,7 @@ declare namespace ReactUnity {
|
|
|
13897
14187
|
BackgroundRoot: UnityEngine.RectTransform;
|
|
13898
14188
|
Backdrop: UnityEngine.RectTransform;
|
|
13899
14189
|
ShadowRoot: UnityEngine.RectTransform;
|
|
14190
|
+
InsetShadowRoot: UnityEngine.RectTransform;
|
|
13900
14191
|
BgImage: UnityEngine.UI.RawImage;
|
|
13901
14192
|
BackdropFilter: ReactUnity.UGUI.Shapes.WebFilter;
|
|
13902
14193
|
BorderGraphic: ReactUnity.UGUI.Shapes.WebBorder;
|
|
@@ -14049,6 +14340,8 @@ declare namespace ReactUnity {
|
|
|
14049
14340
|
BlendMode: ReactUnity.Types.BackgroundBlendMode;
|
|
14050
14341
|
Isolated: boolean;
|
|
14051
14342
|
ClipShape: ReactUnity.Types.ClipPath;
|
|
14343
|
+
Perspective: number;
|
|
14344
|
+
PerspectiveOrigin: ReactUnity.Types.YogaValue2;
|
|
14052
14345
|
HasMask: boolean;
|
|
14053
14346
|
RenderCount: number;
|
|
14054
14347
|
BackdropRenderer: UnityEngine.CanvasRenderer;
|
|
@@ -14567,6 +14860,8 @@ declare namespace ReactUnity {
|
|
|
14567
14860
|
Size: UnityEngine.Vector2;
|
|
14568
14861
|
Definition: ReactUnity.Types.ImageDefinition;
|
|
14569
14862
|
Pixelated: boolean;
|
|
14863
|
+
Clip: ReactUnity.UGUI.Internal.BackgroundClip;
|
|
14864
|
+
ClipBox: ReactUnity.Types.BackgroundBox;
|
|
14570
14865
|
BackgroundSize: ReactUnity.Types.BackgroundSize;
|
|
14571
14866
|
BackgroundPosition: ReactUnity.Types.YogaValue2;
|
|
14572
14867
|
BackgroundRepeatX: ReactUnity.Types.BackgroundRepeat;
|
|
@@ -14625,6 +14920,7 @@ declare namespace ReactUnity {
|
|
|
14625
14920
|
name: string;
|
|
14626
14921
|
hideFlags: UnityEngine.HideFlags;
|
|
14627
14922
|
Context: ReactUnity.ReactContext;
|
|
14923
|
+
SetClip(value: ReactUnity.UGUI.Internal.BackgroundClip, box: ReactUnity.Types.BackgroundBox): void;
|
|
14628
14924
|
SetBackgroundColorAndImage(tint: UnityEngine.Color, image: ReactUnity.Types.ImageDefinition, blendMode?: ReactUnity.Types.BackgroundBlendMode, blendsWithStack?: boolean): void;
|
|
14629
14925
|
SetBackdrop(value: UnityEngine.Texture): void;
|
|
14630
14926
|
DisableSpriteOptimizations(): void;
|
|
@@ -18476,5 +18772,5 @@ interface BaseElements<BaseCmpType> extends RichTextElements, SVGElements {
|
|
|
18476
18772
|
html: BaseCmpType & HtmlCmpDef;
|
|
18477
18773
|
}
|
|
18478
18774
|
//#endregion
|
|
18479
|
-
export {
|
|
18480
|
-
//# sourceMappingURL=base-
|
|
18775
|
+
export { ContainerType as $, AssetReference as A, Vector3Aux as B, Position as C, TimingFunctionType as Ct, Array2Aux as D, AnchorTarget as Dt, YogaJustify as E, WhiteSpace as Et, KnownColor as F, BackfaceVisibility as G, AnimationFillMode as H, NumberAux as I, BackgroundRepeat as J, BackgroundBlendMode as K, PositioningLiteral as L, ColorAux as M, HexColor as N, Array3Aux as O, SafeString as Ot, HttpSource as P, ColorScheme as Q, RectOffsetAux as R, Overflow as S, TimelineAxis as St, YogaAlign as T, Visibility as Tt, AnimationPlayState as U, AnimationDirection as V, Appearance as W, BorderImageRepeat as X, BackgroundSize as Y, BorderStyle as Z, YogaValueAux as _, ScrollSnapStop as _t, Textable as a, ImageRendering as at, Display as b, TextOverflowModes as bt, Yoga as c, MixBlendMode as ct, RenderStyle as d, OverscrollBehavior as dt, CssKeyword as et, Layout as f, PointerEvents as ft, YogaValue4Aux as g, ScrollSnapAxis as gt, YogaValue2Aux as h, ScrollSnapAlignment as ht, ContentSrcProps as i, FontWeight as it, AssetReferenceOrHttp as j, Array4Aux as k, ScrollDirection as kt, InlineStyleRemap as l, NavigationMode as lt, LayoutExtended as m, ScrollSnapAlign as mt, BaseElements as n, FontStyles as nt, SVGEelement as o, Isolation as ot, LayoutCssCompatible as p, ScrollBehavior as pt, BackgroundClip as q, BaseEvents as r, FontVariant as rt, ReactUnity as s, MaskMode as st, BaseCmpProps as t, CursorType as tt, Style as u, ObjectFit as ut, BoxSizing as v, ScrollSnapType as vt, Wrap as w, VerticalAlign as wt, FlexDirection as x, TextTransform as xt, Direction as y, TextAlign as yt, Vector2Aux as z };
|
|
18776
|
+
//# sourceMappingURL=base-3-s8tzdC.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as UnityEngine } from "./unity-CqyiwXyf.js";
|
|
2
2
|
import { t as UnityEditor } from "./editor-DwsHqUiS.js";
|
|
3
|
-
import { A as AssetReference,
|
|
3
|
+
import { A as AssetReference, Dt as AnchorTarget, i as ContentSrcProps, kt as ScrollDirection, s as ReactUnity, t as BaseCmpProps, u as Style } from "./base-3-s8tzdC.js";
|
|
4
4
|
type BaseCmp$1 = ReactUnity.UIToolkit.UIToolkitComponent;
|
|
5
5
|
type Handler<T, TSender = BaseCmp$1> = (ev: T, sender: TSender) => void;
|
|
6
6
|
type ActionCallback<TSender = BaseCmp$1> = (sender: TSender) => void;
|
|
@@ -150,4 +150,4 @@ interface IMGUI extends View<Cmp.IMGUIComponent> {
|
|
|
150
150
|
interface Svg extends View<Cmp.SvgComponent>, ContentSrcProps {}
|
|
151
151
|
//#endregion
|
|
152
152
|
export { Events as C, BaseEventCallback as S, Toggle as _, Button as a, View as b, Image as c, Scroll as d, Slider as f, TextField as g, Text as h, Bindable as i, Portal as l, Svg as m, BaseField as n, IMGUI as o, StringField as p, BaseSlider as r, Icon as s, Anchor as t, Range as u, ToggleEvent as v, Handler as w, ActionCallback as x, ValueComponent as y };
|
|
153
|
-
//# sourceMappingURL=components-
|
|
153
|
+
//# sourceMappingURL=components-CHc816Qv.d.ts.map
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as UnityEditor } from "../editor-DwsHqUiS.js";
|
|
2
|
-
import { s as ReactUnity } from "../base-
|
|
3
|
-
import { a as ObjectProps, i as EnumProps, n as JSX, r as DialogProps, t as EditorElements } from "../jsx-
|
|
2
|
+
import { s as ReactUnity } from "../base-3-s8tzdC.js";
|
|
3
|
+
import { a as ObjectProps, i as EnumProps, n as JSX, r as DialogProps, t as EditorElements } from "../jsx-5DJ6sjv6.js";
|
|
4
4
|
//#region src/models/editor/environment.d.ts
|
|
5
5
|
declare global {
|
|
6
6
|
interface DefaultGlobals {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./jsx-DEILne0Q.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as UnityEngine, r as System, t as Unity } from "./unity-CqyiwXyf.js";
|
|
2
2
|
import { t as UnityEditor } from "./editor-DwsHqUiS.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as ContainerType, A as AssetReference, B as Vector3Aux, C as Position, Ct as TimingFunctionType, D as Array2Aux, Dt as AnchorTarget, E as YogaJustify, Et as WhiteSpace, F as KnownColor, G as BackfaceVisibility, H as AnimationFillMode, I as NumberAux, J as BackgroundRepeat, K as BackgroundBlendMode, L as PositioningLiteral, M as ColorAux, N as HexColor, O as Array3Aux, Ot as SafeString, P as HttpSource, Q as ColorScheme, R as RectOffsetAux, S as Overflow, St as TimelineAxis, T as YogaAlign, Tt as Visibility, U as AnimationPlayState, V as AnimationDirection, W as Appearance, X as BorderImageRepeat, Y as BackgroundSize, Z as BorderStyle, _ as YogaValueAux, _t as ScrollSnapStop, a as Textable, at as ImageRendering, b as Display, bt as TextOverflowModes, c as Yoga, ct as MixBlendMode, d as RenderStyle, dt as OverscrollBehavior, et as CssKeyword, f as Layout, ft as PointerEvents, g as YogaValue4Aux, gt as ScrollSnapAxis, h as YogaValue2Aux, ht as ScrollSnapAlignment, it as FontWeight, j as AssetReferenceOrHttp, k as Array4Aux, kt as ScrollDirection, l as InlineStyleRemap, lt as NavigationMode, m as LayoutExtended, mt as ScrollSnapAlign, nt as FontStyles, ot as Isolation, p as LayoutCssCompatible, pt as ScrollBehavior, q as BackgroundClip, rt as FontVariant, s as ReactUnity, st as MaskMode, tt as CursorType, u as Style, ut as ObjectFit, v as BoxSizing, vt as ScrollSnapType, w as Wrap, wt as VerticalAlign, x as FlexDirection, xt as TextTransform, y as Direction, yt as TextAlign, z as Vector2Aux } from "./base-3-s8tzdC.js";
|
|
4
4
|
import { t as NUnit } from "./tests-ByeoZtD1.js";
|
|
5
|
-
import { p as Icon } from "./jsx-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { p as Icon } from "./jsx-DEILne0Q.js";
|
|
6
|
+
import "./index-DVMJGbQf.js";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import Reconciler from "react-reconciler";
|
|
9
9
|
import { UnityInstance } from "react-unity-webgl";
|
|
@@ -584,5 +584,5 @@ declare const ReactUnityRenderer: {
|
|
|
584
584
|
unstable_batchedUpdates: <A, R>(fn: (a: A) => R, a: A) => R;
|
|
585
585
|
};
|
|
586
586
|
//#endregion
|
|
587
|
-
export { AnchorTarget, AnimationDirection, AnimationFillMode, AnimationPlayState, Appearance, Array2Aux, Array3Aux, Array4Aux, AssetReference, AssetReferenceOrHttp, BackgroundBlendMode, BackgroundRepeat, BackgroundSize, BorderImageRepeat, BorderStyle, BoxSizing, ChildSet, ColorAux, ColorScheme, CommonConfig, ContainerType, CssKeyword, CursorType, DefaultIconNames, DictionaryWatcher, Direction, Display, FlexDirection, FontStyles, FontVariant, FontWeight, FormInstance, GlobalsProvider, HexColor, HostContext, HttpSource, HydratableInstance, ImageRendering, InlineStyleRemap, InstanceTag, Isolation, KnownColor, Layout, LayoutCssCompatible, LayoutExtended, MaskMode, MixBlendMode, NUnit, Namespace, NamespaceMap, NativeContainerInstance, NativeInstance, NativeTextInstance, NavigationMode, NoTimeout, NumberAux, ObjectFit, Overflow, PointerEvents, Position, PositioningLiteral, Props, PublicInstance, ReactUnity, RectOffsetAux, RenderStyle, Renderer, SafeString, ScrollBehavior, ScrollDirection, ScrollSnapAlign, ScrollSnapAlignment, ScrollSnapAxis, ScrollSnapType, Style, SuspenseInstance, System, TextAlign, TextOverflowModes, TextTransform, TimelineAxis, TimeoutHandle, TimingFunctionType, TransitionStatus, Unique, Unity, UnityEditor, UnityEngine, Vector2Aux, Vector3Aux, VerticalAlign, Visibility, WhiteSpace, Wrap, Yoga, YogaAlign, YogaJustify, YogaValue2Aux, YogaValue4Aux, YogaValueAux, batchedUpdates, batchedUpdates as unstable_batchedUpdates, createDictionaryWatcher, ReactUnityRenderer as default, flushSync, icon, render, useGlobals, useGlobalsContext, useGlobalsSelector, useReactiveValue };
|
|
587
|
+
export { AnchorTarget, AnimationDirection, AnimationFillMode, AnimationPlayState, Appearance, Array2Aux, Array3Aux, Array4Aux, AssetReference, AssetReferenceOrHttp, BackfaceVisibility, BackgroundBlendMode, BackgroundClip, BackgroundRepeat, BackgroundSize, BorderImageRepeat, BorderStyle, BoxSizing, ChildSet, ColorAux, ColorScheme, CommonConfig, ContainerType, CssKeyword, CursorType, DefaultIconNames, DictionaryWatcher, Direction, Display, FlexDirection, FontStyles, FontVariant, FontWeight, FormInstance, GlobalsProvider, HexColor, HostContext, HttpSource, HydratableInstance, ImageRendering, InlineStyleRemap, InstanceTag, Isolation, KnownColor, Layout, LayoutCssCompatible, LayoutExtended, MaskMode, MixBlendMode, NUnit, Namespace, NamespaceMap, NativeContainerInstance, NativeInstance, NativeTextInstance, NavigationMode, NoTimeout, NumberAux, ObjectFit, Overflow, OverscrollBehavior, PointerEvents, Position, PositioningLiteral, Props, PublicInstance, ReactUnity, RectOffsetAux, RenderStyle, Renderer, SafeString, ScrollBehavior, ScrollDirection, ScrollSnapAlign, ScrollSnapAlignment, ScrollSnapAxis, ScrollSnapStop, ScrollSnapType, Style, SuspenseInstance, System, TextAlign, TextOverflowModes, TextTransform, TimelineAxis, TimeoutHandle, TimingFunctionType, TransitionStatus, Unique, Unity, UnityEditor, UnityEngine, Vector2Aux, Vector3Aux, VerticalAlign, Visibility, WhiteSpace, Wrap, Yoga, YogaAlign, YogaJustify, YogaValue2Aux, YogaValue4Aux, YogaValueAux, batchedUpdates, batchedUpdates as unstable_batchedUpdates, createDictionaryWatcher, ReactUnityRenderer as default, flushSync, icon, render, useGlobals, useGlobalsContext, useGlobalsSelector, useReactiveValue };
|
|
588
588
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as UnityEngine, r as System } from "./unity-CqyiwXyf.js";
|
|
2
|
-
import { a as Textable, n as BaseElements, o as SVGEelement, s as ReactUnity } from "./base-
|
|
3
|
-
import { _ as Toggle, a as Button, b as View, c as Image, f as Slider, g as TextField, i as Bindable, m as Svg, n as BaseField, o as IMGUI, t as Anchor, u as Range, y as ValueComponent } from "./components-
|
|
2
|
+
import { a as Textable, n as BaseElements, o as SVGEelement, s as ReactUnity } from "./base-3-s8tzdC.js";
|
|
3
|
+
import { _ as Toggle, a as Button, b as View, c as Image, f as Slider, g as TextField, i as Bindable, m as Svg, n as BaseField, o as IMGUI, t as Anchor, u as Range, y as ValueComponent } from "./components-CHc816Qv.js";
|
|
4
4
|
import * as rc from "react";
|
|
5
5
|
//#region src/models/editor/components.d.ts
|
|
6
6
|
interface EnumProps extends BaseField<number> {
|
|
@@ -111,4 +111,4 @@ declare namespace JSX {
|
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
113
|
export { ObjectProps as a, EnumProps as i, JSX as n, DialogProps as r, EditorElements as t };
|
|
114
|
-
//# sourceMappingURL=jsx-
|
|
114
|
+
//# sourceMappingURL=jsx-5DJ6sjv6.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as UnityEngine } from "./unity-CqyiwXyf.js";
|
|
2
|
-
import { A as AssetReference,
|
|
2
|
+
import { A as AssetReference, Dt as AnchorTarget, a as Textable, i as ContentSrcProps, j as AssetReferenceOrHttp, kt as ScrollDirection, n as BaseElements, o as SVGEelement, r as BaseEvents, s as ReactUnity, t as BaseCmpProps } from "./base-3-s8tzdC.js";
|
|
3
3
|
import { RefAttributes } from "react";
|
|
4
4
|
//#region src/models/ugui/events.d.ts
|
|
5
5
|
type BaseCmp$1 = ReactUnity.UGUI.UGUIComponent;
|
|
@@ -229,4 +229,4 @@ declare namespace JSX {
|
|
|
229
229
|
}
|
|
230
230
|
//#endregion
|
|
231
231
|
export { BaseEventCallback as A, SvgImage as C, View as D, Video as E, KeyEventCallback as M, PointerEventCallback as N, ActionCallback as O, ResizeEventCallback as P, Svg as S, Toggle as T, Portal as _, Input as a, Render as b, TextSelectionEvent as c, BaseImage as d, Button as f, Object$1 as g, Label as h, ContentType as i, Events as j, AxisEventCallback as k, TouchScreenKeyboardType as l, Image as m, UGUIElements as n, InputEvent as o, Icon as p, CharacterValidation as r, LineType as s, JSX as t, Anchor as u, Prefab as v, Text as w, Scroll as x, RawImage as y };
|
|
232
|
-
//# sourceMappingURL=jsx-
|
|
232
|
+
//# sourceMappingURL=jsx-DEILne0Q.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Textable, n as BaseElements, o as SVGEelement, s as ReactUnity } from "./base-
|
|
2
|
-
import { _ as Toggle, a as Button, b as View, c as Image, d as Scroll, f as Slider, g as TextField, h as Text, i as Bindable, l as Portal, m as Svg, o as IMGUI, s as Icon, t as Anchor, u as Range, y as ValueComponent } from "./components-
|
|
1
|
+
import { a as Textable, n as BaseElements, o as SVGEelement, s as ReactUnity } from "./base-3-s8tzdC.js";
|
|
2
|
+
import { _ as Toggle, a as Button, b as View, c as Image, d as Scroll, f as Slider, g as TextField, h as Text, i as Bindable, l as Portal, m as Svg, o as IMGUI, s as Icon, t as Anchor, u as Range, y as ValueComponent } from "./components-CHc816Qv.js";
|
|
3
3
|
import * as rc from "react";
|
|
4
4
|
type Children<T = any> = {
|
|
5
5
|
children?: T;
|
|
@@ -54,4 +54,4 @@ declare namespace JSX {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
export { UIToolkitElements as n, JSX as t };
|
|
57
|
-
//# sourceMappingURL=jsx-
|
|
57
|
+
//# sourceMappingURL=jsx-DJhfjIPV.d.ts.map
|
package/dist/ugui/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as BaseEventCallback, C as SvgImage, D as View, E as Video, M as KeyEventCallback, N as PointerEventCallback, O as ActionCallback, P as ResizeEventCallback, S as Svg, T as Toggle, _ as Portal, a as Input, b as Render, c as TextSelectionEvent, d as BaseImage, f as Button, g as Object$1, h as Label, i as ContentType, j as Events, k as AxisEventCallback, l as TouchScreenKeyboardType, m as Image, n as UGUIElements, o as InputEvent, p as Icon, r as CharacterValidation, s as LineType, t as JSX, u as Anchor, v as Prefab, w as Text, x as Scroll, y as RawImage } from "../jsx-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { A as BaseEventCallback, C as SvgImage, D as View, E as Video, M as KeyEventCallback, N as PointerEventCallback, O as ActionCallback, P as ResizeEventCallback, S as Svg, T as Toggle, _ as Portal, a as Input, b as Render, c as TextSelectionEvent, d as BaseImage, f as Button, g as Object$1, h as Label, i as ContentType, j as Events, k as AxisEventCallback, l as TouchScreenKeyboardType, m as Image, n as UGUIElements, o as InputEvent, p as Icon, r as CharacterValidation, s as LineType, t as JSX, u as Anchor, v as Prefab, w as Text, x as Scroll, y as RawImage } from "../jsx-DEILne0Q.js";
|
|
2
|
+
import "../index-DVMJGbQf.js";
|
|
3
3
|
export { ActionCallback, Anchor, AxisEventCallback, BaseEventCallback, BaseImage, Button, CharacterValidation, ContentType, Events, Icon, Image, Input, InputEvent, JSX, KeyEventCallback, Label, LineType, Object$1 as Object, PointerEventCallback, Portal, Prefab, RawImage, Render, ResizeEventCallback, Scroll, Svg, SvgImage, Text, TextSelectionEvent, Toggle, TouchScreenKeyboardType, UGUIElements, Video, View };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as Events, S as BaseEventCallback, _ as Toggle, a as Button, b as View, c as Image, d as Scroll, f as Slider, g as TextField, h as Text, i as Bindable, l as Portal, m as Svg, n as BaseField, o as IMGUI, p as StringField, r as BaseSlider, s as Icon, t as Anchor, u as Range, v as ToggleEvent, w as Handler, x as ActionCallback, y as ValueComponent } from "../components-
|
|
2
|
-
import { n as UIToolkitElements, t as JSX } from "../jsx-
|
|
1
|
+
import { C as Events, S as BaseEventCallback, _ as Toggle, a as Button, b as View, c as Image, d as Scroll, f as Slider, g as TextField, h as Text, i as Bindable, l as Portal, m as Svg, n as BaseField, o as IMGUI, p as StringField, r as BaseSlider, s as Icon, t as Anchor, u as Range, v as ToggleEvent, w as Handler, x as ActionCallback, y as ValueComponent } from "../components-CHc816Qv.js";
|
|
2
|
+
import { n as UIToolkitElements, t as JSX } from "../jsx-DJhfjIPV.js";
|
|
3
3
|
export { ActionCallback, Anchor, BaseEventCallback, BaseField, BaseSlider, Bindable, Button, Events, Handler, IMGUI, Icon, Image, JSX, Portal, Range, Scroll, Slider, StringField, Svg, Text, TextField, Toggle, ToggleEvent, UIToolkitElements, ValueComponent, View };
|
package/dist/vite.mjs
CHANGED
|
@@ -144,7 +144,6 @@ function reactUnity(options = {}) {
|
|
|
144
144
|
reactUnityClean(options)
|
|
145
145
|
];
|
|
146
146
|
}
|
|
147
|
-
const LIGHTNINGCSS_LIGHT_DARK = 1 << 20;
|
|
148
147
|
function reactUnityConfig(options) {
|
|
149
148
|
const assetPath = options.assetPath ?? DEFAULT_ASSET_PATH;
|
|
150
149
|
let message;
|
|
@@ -176,7 +175,7 @@ function reactUnityConfig(options) {
|
|
|
176
175
|
}
|
|
177
176
|
if (config.build?.assetsInlineLimit === void 0) build.assetsInlineLimit = 0;
|
|
178
177
|
if (config.build?.cssTarget === void 0) build.cssTarget = ["chrome87"];
|
|
179
|
-
if (config.css?.lightningcss?.exclude === void 0) patch.css = { lightningcss: { exclude:
|
|
178
|
+
if (config.css?.lightningcss?.exclude === void 0) patch.css = { lightningcss: { exclude: 1572864 } };
|
|
180
179
|
if (options.clean !== false && config.build?.emptyOutDir === void 0) build.emptyOutDir = false;
|
|
181
180
|
const output = config.build?.rolldownOptions?.output ?? config.build?.rollupOptions?.output;
|
|
182
181
|
if (!options.hashFileNames && output === void 0 && !config.build?.lib) {
|
package/dist/vite.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.mjs","names":[],"sources":["../src/vite/clean.ts","../src/vite/unity-project.ts","../src/vite/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nconst META = '.meta';\n\n/**\n * Empties the output directory but keeps every `.meta` file.\n *\n * Unity writes a `.meta` beside each asset and the GUID inside it is what scenes,\n * prefabs and asset references point at. Deleting one makes Unity mint a new GUID for\n * the file that replaces it, which silently breaks every reference to it -- so a build\n * clears the output it produced last time and leaves the metas for the files coming back.\n * The ones nothing comes back for are dropped afterwards by `removeOrphanMetaFiles`.\n */\nexport function cleanOutDir(outDir: string, preserve: readonly string[] = []): void {\n if (!fs.existsSync(outDir)) return;\n\n const keep = new Set(preserve.map((entry) => path.resolve(outDir, entry)));\n cleanDir(outDir, keep);\n}\n\n// Returns whether anything survived, so the caller can drop a directory that did not.\nfunction cleanDir(dir: string, keep: Set<string>): boolean {\n let survivors = 0;\n\n for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {\n const full = path.join(dir, entry.name);\n\n if (keep.has(full) || entry.name.endsWith(META)) {\n survivors++;\n continue;\n }\n\n if (entry.isDirectory()) {\n // A directory holding metas (or something preserved) has to stay for them.\n if (cleanDir(full, keep)) survivors++;\n else fs.rmSync(full, { recursive: true, force: true });\n } else {\n fs.rmSync(full, { force: true });\n }\n }\n\n return survivors > 0;\n}\n\n/**\n * Drops the `.meta` files whose asset did not come back, and the directories the build\n * left empty. Run after the bundle is written, so what remains describes only real files.\n */\nexport function removeOrphanMetaFiles(outDir: string): void {\n if (!fs.existsSync(outDir)) return;\n sweep(outDir, true);\n}\n\n// Returns whether the directory is still wanted.\nfunction sweep(dir: string, isRoot: boolean): boolean {\n for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {\n const full = path.join(dir, entry.name);\n\n if (entry.isDirectory()) {\n if (sweep(full, false)) continue;\n\n // A directory's own meta lives in its parent, and goes with it.\n fs.rmSync(full, { recursive: true, force: true });\n fs.rmSync(full + META, { force: true });\n } else if (entry.name.endsWith(META) && !fs.existsSync(full.slice(0, -META.length))) {\n fs.rmSync(full, { force: true });\n }\n }\n\n return isRoot || fs.readdirSync(dir).length > 0;\n}\n\n/**\n * Describes why `outDir` must not be cleaned, or nothing when it is safe.\n *\n * The clean deletes everything it finds, so it refuses anything that is not plausibly a\n * build output folder: a Unity project root, a package, or the sources themselves.\n */\nexport function unsafeOutDirReason(outDir: string, root: string): string | undefined {\n const dir = path.resolve(outDir);\n\n if (path.dirname(dir) === dir) return 'it is a filesystem root';\n\n // `Assets` itself rather than a folder inside it: no marker below would catch that one.\n if (path.basename(dir) === 'Assets') return 'it is a Unity Assets folder';\n\n const relative = path.relative(dir, path.resolve(root));\n if (!relative || (!relative.startsWith('..') && !path.isAbsolute(relative))) return 'the project root is inside it';\n\n for (const marker of ['package.json', '.git', 'ProjectSettings']) {\n if (fs.existsSync(path.join(dir, marker))) return `it contains ${marker}`;\n }\n\n return undefined;\n}\n","import fs from 'node:fs';\nimport path from 'node:path';\n\n// How far up the tree to look before giving up. Deep enough for any sane layout, shallow\n// enough that a React app outside a Unity project does not walk to the filesystem root.\nconst MAX_DEPTH = 10;\n\n/**\n * A folder is a Unity project when it has an `Assets` directory beside a\n * `ProjectSettings/ProjectVersion.txt`. The version stamp is what tells a real project\n * from any folder that happens to be called `Assets`.\n */\nexport function isUnityProject(dir: string): boolean {\n return isDirectory(path.join(dir, 'Assets')) && fs.existsSync(path.join(dir, 'ProjectSettings', 'ProjectVersion.txt'));\n}\n\n/**\n * Finds the Unity project a React app belongs to, starting at `from` and walking up.\n *\n * Each ancestor is tested itself and then one level down, so both documented layouts are\n * found: the app inside the project (`MyGame/react`) and the app beside it\n * (`workspace/{MyGame,ui}`).\n */\nexport function findUnityProject(from: string): string | undefined {\n let dir = path.resolve(from);\n\n for (let depth = 0; depth < MAX_DEPTH; depth++) {\n if (isUnityProject(dir)) return dir;\n\n const nested = findUnityProjectIn(dir);\n if (nested) return nested;\n\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n\n return undefined;\n}\n\nfunction findUnityProjectIn(dir: string): string | undefined {\n for (const entry of readDir(dir)) {\n // node_modules and dot-directories cannot hold a Unity project, and both are large.\n if (!entry.isDirectory() || entry.name.startsWith('.') || entry.name === 'node_modules') continue;\n\n const candidate = path.join(dir, entry.name);\n if (isUnityProject(candidate)) return candidate;\n }\n\n return undefined;\n}\n\nfunction readDir(dir: string): fs.Dirent[] {\n try {\n return fs.readdirSync(dir, { withFileTypes: true });\n } catch {\n // Unreadable directories are simply not the project we are looking for.\n return [];\n }\n}\n\nfunction isDirectory(dir: string): boolean {\n try {\n return fs.statSync(dir).isDirectory();\n } catch {\n return false;\n }\n}\n","import path from 'node:path';\nimport react from '@vitejs/plugin-react';\nimport type { Plugin, PluginOption, UserConfig } from 'vite';\nimport { cleanOutDir, removeOrphanMetaFiles, unsafeOutDirReason } from './clean.ts';\nimport { findUnityProject } from './unity-project.ts';\n\ntype ReactOptions = Parameters<typeof react>[0];\n\nconst DEFAULT_ASSET_PATH = 'Assets/Resources/react';\n\nexport interface ReactUnityOptions {\n /**\n * The Unity project to build into, absolute or relative to the Vite root. Discovered by\n * walking up from the Vite root when omitted.\n */\n unityProject?: string;\n\n /** Output folder inside the Unity project. Defaults to `Assets/Resources/react`. */\n assetPath?: string;\n\n /** Empty the output directory before each build, keeping its `.meta` files. Default `true`. */\n clean?: boolean;\n\n /** Paths inside the output directory, relative to it, that the clean never deletes. */\n preserve?: readonly string[];\n\n /**\n * Content hashes in output filenames. Default `false`: a hash renames the file on every\n * build, which costs it its `.meta` and so its Unity GUID.\n */\n hashFileNames?: boolean;\n\n /** Options for `@vitejs/plugin-react`, or `false` to add the React plugin yourself. */\n react?: ReactOptions | false;\n\n /**\n * Resolve a bare `@import \"tailwindcss\"` to `@reactunity/renderer/tailwind.css`, which is the\n * same thing with a Preflight written for what ReactUnity renders. Default `true`; `false`\n * leaves the import alone. Only the bare specifier is aliased -- `tailwindcss/theme.css` and\n * the rest keep resolving to the package, which is where that entry gets them from.\n */\n tailwind?: boolean;\n}\n\nconst TAILWIND_ENTRY = '@reactunity/renderer/tailwind.css';\n\n/**\n * Vite preset for a ReactUnity app: React Fast Refresh, output into the Unity project's\n * `Assets/Resources/react`, a clean that keeps Unity's `.meta` files, and a Tailwind entry with\n * ReactUnity's Preflight in place of the browser one.\n *\n * ```ts\n * export default defineConfig({ plugins: [reactUnity()] });\n * ```\n */\nexport function reactUnity(options: ReactUnityOptions = {}): PluginOption[] {\n const reactOptions = options.react ?? {};\n\n return [reactOptions === false ? null : react(reactOptions), reactUnityConfig(options), reactUnityClean(options)];\n}\n\n// Lightning CSS's `Features.LightDark`. The package is Vite's dependency rather than ours, so the\n// flag is spelled out; it has held this value since the feature was added.\nconst LIGHTNINGCSS_LIGHT_DARK = 1 << 20;\n\nfunction reactUnityConfig(options: ReactUnityOptions): Plugin {\n const assetPath = options.assetPath ?? DEFAULT_ASSET_PATH;\n let message: { level: 'info' | 'warn'; text: string } | undefined;\n\n return {\n name: 'reactunity',\n\n config(config) {\n const patch: UserConfig = {};\n\n // Neither has anything to render against: Unity is not a browser, and an error\n // overlay drawn into a page nobody looks at only hides the console message.\n if (config.devtools === undefined) patch.devtools = false;\n\n const hmr = config.server?.hmr;\n if (hmr !== false && (hmr === undefined || (typeof hmr === 'object' && hmr.overlay === undefined))) {\n patch.server = { hmr: { overlay: false } };\n }\n\n // Tailwind's own Preflight resets a document, and there is no document here. Aliasing the\n // entry is what lets an app write the one line its docs tell it to. `@tailwindcss/vite`\n // resolves `@import` through Vite's resolver, so it sees this the way an app's own CSS does.\n if (options.tailwind !== false) {\n patch.resolve = { alias: [{ find: /^tailwindcss$/, replacement: TAILWIND_ENTRY }] };\n }\n\n const build: UserConfig['build'] = {};\n\n if (config.build?.outDir === undefined) {\n const root = path.resolve(config.root ?? process.cwd());\n const project = options.unityProject ? path.resolve(root, options.unityProject) : findUnityProject(root);\n\n if (project) {\n build.outDir = path.join(project, assetPath);\n message = { level: 'info', text: `[reactunity] Unity output directory: ${build.outDir}` };\n } else {\n message = {\n level: 'warn',\n text: '[reactunity] no Unity project found above the Vite root. Set the unityProject option or build.outDir.',\n };\n }\n }\n\n // Unity resolves an asset URL through its own loaders, and a small file inlined as a\n // data: URI never reaches them the same way -- react-unity-scripts pinned the same\n // limit to 0 rather than take CRA's 10 kB.\n if (config.build?.assetsInlineLimit === undefined) build.assetsInlineLimit = 0;\n\n // ReactUnity's CSS subset is roughly a 2020 browser: no oklch, color-mix or nesting.\n // Naming an old target is what makes Lightning CSS lower them on the way out.\n if (config.build?.cssTarget === undefined) build.cssTarget = ['chrome87'];\n\n // light-dark() is the one thing that target lowers which ReactUnity reads itself, and the\n // lowered form only works next to a color-scheme declaration in the same sheet.\n if (config.css?.lightningcss?.exclude === undefined) {\n patch.css = { lightningcss: { exclude: LIGHTNINGCSS_LIGHT_DARK } };\n }\n\n // Vite's own emptying would take the .meta files with it, and warns about an outDir\n // outside the root besides. The clean plugin below does the job instead.\n if (options.clean !== false && config.build?.emptyOutDir === undefined) build.emptyOutDir = false;\n\n // Library mode names its own output, and an entryFileNames here would override it.\n const output = config.build?.rolldownOptions?.output ?? config.build?.rollupOptions?.output;\n if (!options.hashFileNames && output === undefined && !config.build?.lib) {\n const dir = config.build?.assetsDir ?? 'assets';\n build.rolldownOptions = {\n output: {\n entryFileNames: `${dir}/[name].js`,\n chunkFileNames: `${dir}/[name].js`,\n // Doubled on purpose. Unity keys a resource on its path minus the last extension, so\n // index.js and index.css both answer to `assets/index` and asking for one can hand you\n // the other. index.css.css keeps its type in the name it is looked up by.\n assetFileNames: `${dir}/[name][extname][extname]`,\n },\n };\n }\n\n if (Object.keys(build).length) patch.build = build;\n\n return patch;\n },\n\n configResolved(config) {\n // The config hook has no logger, so anything it decided is reported from here.\n if (message) config.logger[message.level](message.text);\n message = undefined;\n },\n };\n}\n\nfunction reactUnityClean(options: ReactUnityOptions): Plugin {\n const cleaned = new Set<string>();\n let written = false;\n let outDir = '';\n let root = '';\n let write = true;\n let logger: { warn: (message: string) => void } | undefined;\n\n return {\n name: 'reactunity:clean',\n apply: 'build',\n\n configResolved(config) {\n root = config.root;\n logger = config.logger;\n write = config.build.write !== false;\n outDir = path.resolve(config.root, config.build.outDir);\n },\n\n // Before renderStart, which is where Vite empties the outDir and copies publicDir\n // into it -- cleaning any later would delete files this build had just put there.\n buildStart() {\n if (options.clean === false || !write || cleaned.has(outDir)) return;\n cleaned.add(outDir);\n\n const unsafe = unsafeOutDirReason(outDir, root);\n if (unsafe) {\n logger?.warn(`[reactunity] not cleaning ${outDir} because ${unsafe}.`);\n return;\n }\n\n cleanOutDir(outDir, options.preserve);\n },\n\n // Only on success: closeBundle runs after a failed build too, and sweeping then\n // would delete every meta the clean had just set aside -- losing the GUIDs of files\n // the next successful build brings straight back.\n writeBundle() {\n written = true;\n },\n\n closeBundle() {\n // Cleared rather than kept, so a watch rebuild cleans again.\n cleaned.delete(outDir);\n const succeeded = written;\n written = false;\n if (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CACZ,IAAI;CAEJ,OAAO;EACL,MAAM;EACN,OAAO;EAEP,eAAe,QAAQ;GACrB,OAAO,OAAO;GACd,SAAS,OAAO;GAChB,QAAQ,OAAO,MAAM,UAAU;GAC/B,SAAS,KAAK,QAAQ,OAAO,MAAM,OAAO,MAAM,MAAM;EACxD;EAIA,aAAa;GACX,IAAI,QAAQ,UAAU,SAAS,CAAC,SAAS,QAAQ,IAAI,MAAM,GAAG;GAC9D,QAAQ,IAAI,MAAM;GAElB,MAAM,SAAS,mBAAmB,QAAQ,IAAI;GAC9C,IAAI,QAAQ;IACV,QAAQ,KAAK,6BAA6B,OAAO,WAAW,OAAO,EAAE;IACrE;GACF;GAEA,YAAY,QAAQ,QAAQ,QAAQ;EACtC;EAKA,cAAc;GACZ,UAAU;EACZ;EAEA,cAAc;GAEZ,QAAQ,OAAO,MAAM;GACrB,MAAM,YAAY;GAClB,UAAU;GACV,IAAI,QAAQ,UAAU,SAAS,CAAC,SAAS,CAAC,WAAW;GAErD,sBAAsB,MAAM;EAC9B;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"vite.mjs","names":[],"sources":["../src/vite/clean.ts","../src/vite/unity-project.ts","../src/vite/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nconst META = '.meta';\n\n/**\n * Empties the output directory but keeps every `.meta` file.\n *\n * Unity writes a `.meta` beside each asset and the GUID inside it is what scenes,\n * prefabs and asset references point at. Deleting one makes Unity mint a new GUID for\n * the file that replaces it, which silently breaks every reference to it -- so a build\n * clears the output it produced last time and leaves the metas for the files coming back.\n * The ones nothing comes back for are dropped afterwards by `removeOrphanMetaFiles`.\n */\nexport function cleanOutDir(outDir: string, preserve: readonly string[] = []): void {\n if (!fs.existsSync(outDir)) return;\n\n const keep = new Set(preserve.map((entry) => path.resolve(outDir, entry)));\n cleanDir(outDir, keep);\n}\n\n// Returns whether anything survived, so the caller can drop a directory that did not.\nfunction cleanDir(dir: string, keep: Set<string>): boolean {\n let survivors = 0;\n\n for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {\n const full = path.join(dir, entry.name);\n\n if (keep.has(full) || entry.name.endsWith(META)) {\n survivors++;\n continue;\n }\n\n if (entry.isDirectory()) {\n // A directory holding metas (or something preserved) has to stay for them.\n if (cleanDir(full, keep)) survivors++;\n else fs.rmSync(full, { recursive: true, force: true });\n } else {\n fs.rmSync(full, { force: true });\n }\n }\n\n return survivors > 0;\n}\n\n/**\n * Drops the `.meta` files whose asset did not come back, and the directories the build\n * left empty. Run after the bundle is written, so what remains describes only real files.\n */\nexport function removeOrphanMetaFiles(outDir: string): void {\n if (!fs.existsSync(outDir)) return;\n sweep(outDir, true);\n}\n\n// Returns whether the directory is still wanted.\nfunction sweep(dir: string, isRoot: boolean): boolean {\n for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {\n const full = path.join(dir, entry.name);\n\n if (entry.isDirectory()) {\n if (sweep(full, false)) continue;\n\n // A directory's own meta lives in its parent, and goes with it.\n fs.rmSync(full, { recursive: true, force: true });\n fs.rmSync(full + META, { force: true });\n } else if (entry.name.endsWith(META) && !fs.existsSync(full.slice(0, -META.length))) {\n fs.rmSync(full, { force: true });\n }\n }\n\n return isRoot || fs.readdirSync(dir).length > 0;\n}\n\n/**\n * Describes why `outDir` must not be cleaned, or nothing when it is safe.\n *\n * The clean deletes everything it finds, so it refuses anything that is not plausibly a\n * build output folder: a Unity project root, a package, or the sources themselves.\n */\nexport function unsafeOutDirReason(outDir: string, root: string): string | undefined {\n const dir = path.resolve(outDir);\n\n if (path.dirname(dir) === dir) return 'it is a filesystem root';\n\n // `Assets` itself rather than a folder inside it: no marker below would catch that one.\n if (path.basename(dir) === 'Assets') return 'it is a Unity Assets folder';\n\n const relative = path.relative(dir, path.resolve(root));\n if (!relative || (!relative.startsWith('..') && !path.isAbsolute(relative))) return 'the project root is inside it';\n\n for (const marker of ['package.json', '.git', 'ProjectSettings']) {\n if (fs.existsSync(path.join(dir, marker))) return `it contains ${marker}`;\n }\n\n return undefined;\n}\n","import fs from 'node:fs';\nimport path from 'node:path';\n\n// How far up the tree to look before giving up. Deep enough for any sane layout, shallow\n// enough that a React app outside a Unity project does not walk to the filesystem root.\nconst MAX_DEPTH = 10;\n\n/**\n * A folder is a Unity project when it has an `Assets` directory beside a\n * `ProjectSettings/ProjectVersion.txt`. The version stamp is what tells a real project\n * from any folder that happens to be called `Assets`.\n */\nexport function isUnityProject(dir: string): boolean {\n return isDirectory(path.join(dir, 'Assets')) && fs.existsSync(path.join(dir, 'ProjectSettings', 'ProjectVersion.txt'));\n}\n\n/**\n * Finds the Unity project a React app belongs to, starting at `from` and walking up.\n *\n * Each ancestor is tested itself and then one level down, so both documented layouts are\n * found: the app inside the project (`MyGame/react`) and the app beside it\n * (`workspace/{MyGame,ui}`).\n */\nexport function findUnityProject(from: string): string | undefined {\n let dir = path.resolve(from);\n\n for (let depth = 0; depth < MAX_DEPTH; depth++) {\n if (isUnityProject(dir)) return dir;\n\n const nested = findUnityProjectIn(dir);\n if (nested) return nested;\n\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n\n return undefined;\n}\n\nfunction findUnityProjectIn(dir: string): string | undefined {\n for (const entry of readDir(dir)) {\n // node_modules and dot-directories cannot hold a Unity project, and both are large.\n if (!entry.isDirectory() || entry.name.startsWith('.') || entry.name === 'node_modules') continue;\n\n const candidate = path.join(dir, entry.name);\n if (isUnityProject(candidate)) return candidate;\n }\n\n return undefined;\n}\n\nfunction readDir(dir: string): fs.Dirent[] {\n try {\n return fs.readdirSync(dir, { withFileTypes: true });\n } catch {\n // Unreadable directories are simply not the project we are looking for.\n return [];\n }\n}\n\nfunction isDirectory(dir: string): boolean {\n try {\n return fs.statSync(dir).isDirectory();\n } catch {\n return false;\n }\n}\n","import path from 'node:path';\nimport react from '@vitejs/plugin-react';\nimport type { Plugin, PluginOption, UserConfig } from 'vite';\nimport { cleanOutDir, removeOrphanMetaFiles, unsafeOutDirReason } from './clean.ts';\nimport { findUnityProject } from './unity-project.ts';\n\ntype ReactOptions = Parameters<typeof react>[0];\n\nconst DEFAULT_ASSET_PATH = 'Assets/Resources/react';\n\nexport interface ReactUnityOptions {\n /**\n * The Unity project to build into, absolute or relative to the Vite root. Discovered by\n * walking up from the Vite root when omitted.\n */\n unityProject?: string;\n\n /** Output folder inside the Unity project. Defaults to `Assets/Resources/react`. */\n assetPath?: string;\n\n /** Empty the output directory before each build, keeping its `.meta` files. Default `true`. */\n clean?: boolean;\n\n /** Paths inside the output directory, relative to it, that the clean never deletes. */\n preserve?: readonly string[];\n\n /**\n * Content hashes in output filenames. Default `false`: a hash renames the file on every\n * build, which costs it its `.meta` and so its Unity GUID.\n */\n hashFileNames?: boolean;\n\n /** Options for `@vitejs/plugin-react`, or `false` to add the React plugin yourself. */\n react?: ReactOptions | false;\n\n /**\n * Resolve a bare `@import \"tailwindcss\"` to `@reactunity/renderer/tailwind.css`, which is the\n * same thing with a Preflight written for what ReactUnity renders. Default `true`; `false`\n * leaves the import alone. Only the bare specifier is aliased -- `tailwindcss/theme.css` and\n * the rest keep resolving to the package, which is where that entry gets them from.\n */\n tailwind?: boolean;\n}\n\nconst TAILWIND_ENTRY = '@reactunity/renderer/tailwind.css';\n\n/**\n * Vite preset for a ReactUnity app: React Fast Refresh, output into the Unity project's\n * `Assets/Resources/react`, a clean that keeps Unity's `.meta` files, and a Tailwind entry with\n * ReactUnity's Preflight in place of the browser one.\n *\n * ```ts\n * export default defineConfig({ plugins: [reactUnity()] });\n * ```\n */\nexport function reactUnity(options: ReactUnityOptions = {}): PluginOption[] {\n const reactOptions = options.react ?? {};\n\n return [reactOptions === false ? null : react(reactOptions), reactUnityConfig(options), reactUnityClean(options)];\n}\n\n// Lightning CSS's `Features`. The package is Vite's dependency rather than ours, so the flags are\n// spelled out; both have held these values since the features were added.\nconst LIGHTNINGCSS_LOGICAL_PROPERTIES = 1 << 19;\nconst LIGHTNINGCSS_LIGHT_DARK = 1 << 20;\n\nfunction reactUnityConfig(options: ReactUnityOptions): Plugin {\n const assetPath = options.assetPath ?? DEFAULT_ASSET_PATH;\n let message: { level: 'info' | 'warn'; text: string } | undefined;\n\n return {\n name: 'reactunity',\n\n config(config) {\n const patch: UserConfig = {};\n\n // Neither has anything to render against: Unity is not a browser, and an error\n // overlay drawn into a page nobody looks at only hides the console message.\n if (config.devtools === undefined) patch.devtools = false;\n\n const hmr = config.server?.hmr;\n if (hmr !== false && (hmr === undefined || (typeof hmr === 'object' && hmr.overlay === undefined))) {\n patch.server = { hmr: { overlay: false } };\n }\n\n // Tailwind's own Preflight resets a document, and there is no document here. Aliasing the\n // entry is what lets an app write the one line its docs tell it to. `@tailwindcss/vite`\n // resolves `@import` through Vite's resolver, so it sees this the way an app's own CSS does.\n if (options.tailwind !== false) {\n patch.resolve = { alias: [{ find: /^tailwindcss$/, replacement: TAILWIND_ENTRY }] };\n }\n\n const build: UserConfig['build'] = {};\n\n if (config.build?.outDir === undefined) {\n const root = path.resolve(config.root ?? process.cwd());\n const project = options.unityProject ? path.resolve(root, options.unityProject) : findUnityProject(root);\n\n if (project) {\n build.outDir = path.join(project, assetPath);\n message = { level: 'info', text: `[reactunity] Unity output directory: ${build.outDir}` };\n } else {\n message = {\n level: 'warn',\n text: '[reactunity] no Unity project found above the Vite root. Set the unityProject option or build.outDir.',\n };\n }\n }\n\n // Unity resolves an asset URL through its own loaders, and a small file inlined as a\n // data: URI never reaches them the same way -- react-unity-scripts pinned the same\n // limit to 0 rather than take CRA's 10 kB.\n if (config.build?.assetsInlineLimit === undefined) build.assetsInlineLimit = 0;\n\n // ReactUnity's CSS subset is roughly a 2020 browser: no oklch, color-mix or nesting.\n // Naming an old target is what makes Lightning CSS lower them on the way out.\n if (config.build?.cssTarget === undefined) build.cssTarget = ['chrome87'];\n\n // Two things that target lowers which ReactUnity reads itself. light-dark()'s lowered form\n // only works next to a color-scheme declaration in the same sheet; a logical property becomes\n // a `:-webkit-any(:lang(ae),:lang(ar),...)` pair naming every RTL language, which parses here\n // as a custom state and so never matches -- where `border-start-start-radius` is resolved\n // against the element's own direction. Only the radii reach that lowering at chrome87, the\n // rest of the logical properties being older than it.\n if (config.css?.lightningcss?.exclude === undefined) {\n patch.css = { lightningcss: { exclude: LIGHTNINGCSS_LIGHT_DARK | LIGHTNINGCSS_LOGICAL_PROPERTIES } };\n }\n\n // Vite's own emptying would take the .meta files with it, and warns about an outDir\n // outside the root besides. The clean plugin below does the job instead.\n if (options.clean !== false && config.build?.emptyOutDir === undefined) build.emptyOutDir = false;\n\n // Library mode names its own output, and an entryFileNames here would override it.\n const output = config.build?.rolldownOptions?.output ?? config.build?.rollupOptions?.output;\n if (!options.hashFileNames && output === undefined && !config.build?.lib) {\n const dir = config.build?.assetsDir ?? 'assets';\n build.rolldownOptions = {\n output: {\n entryFileNames: `${dir}/[name].js`,\n chunkFileNames: `${dir}/[name].js`,\n // Doubled on purpose. Unity keys a resource on its path minus the last extension, so\n // index.js and index.css both answer to `assets/index` and asking for one can hand you\n // the other. index.css.css keeps its type in the name it is looked up by.\n assetFileNames: `${dir}/[name][extname][extname]`,\n },\n };\n }\n\n if (Object.keys(build).length) patch.build = build;\n\n return patch;\n },\n\n configResolved(config) {\n // The config hook has no logger, so anything it decided is reported from here.\n if (message) config.logger[message.level](message.text);\n message = undefined;\n },\n };\n}\n\nfunction reactUnityClean(options: ReactUnityOptions): Plugin {\n const cleaned = new Set<string>();\n let written = false;\n let outDir = '';\n let root = '';\n let write = true;\n let logger: { warn: (message: string) => void } | undefined;\n\n return {\n name: 'reactunity:clean',\n apply: 'build',\n\n configResolved(config) {\n root = config.root;\n logger = config.logger;\n write = config.build.write !== false;\n outDir = path.resolve(config.root, config.build.outDir);\n },\n\n // Before renderStart, which is where Vite empties the outDir and copies publicDir\n // into it -- cleaning any later would delete files this build had just put there.\n buildStart() {\n if (options.clean === false || !write || cleaned.has(outDir)) return;\n cleaned.add(outDir);\n\n const unsafe = unsafeOutDirReason(outDir, root);\n if (unsafe) {\n logger?.warn(`[reactunity] not cleaning ${outDir} because ${unsafe}.`);\n return;\n }\n\n cleanOutDir(outDir, options.preserve);\n },\n\n // Only on success: closeBundle runs after a failed build too, and sweeping then\n // would delete every meta the clean had just set aside -- losing the GUIDs of files\n // the next successful build brings straight back.\n writeBundle() {\n written = true;\n },\n\n closeBundle() {\n // Cleared rather than kept, so a watch rebuild cleans again.\n cleaned.delete(outDir);\n const succeeded = written;\n written = false;\n if (options.clean === false || !write || !succeeded) return;\n\n removeOrphanMetaFiles(outDir);\n },\n };\n}\n\nexport default reactUnity;\n"],"mappings":";;;;AAGA,MAAM,OAAO;;;;;;;;;;AAWb,SAAgB,YAAY,QAAgB,WAA8B,CAAC,GAAS;CAClF,IAAI,CAAC,GAAG,WAAW,MAAM,GAAG;CAG5B,SAAS,QAAQ,IADA,IAAI,SAAS,KAAK,UAAU,KAAK,QAAQ,QAAQ,KAAK,CAAC,CACpD,CAAC;AACvB;AAGA,SAAS,SAAS,KAAa,MAA4B;CACzD,IAAI,YAAY;CAEhB,KAAK,MAAM,SAAS,GAAG,YAAY,KAAK,EAAE,eAAe,KAAK,CAAC,GAAG;EAChE,MAAM,OAAO,KAAK,KAAK,KAAK,MAAM,IAAI;EAEtC,IAAI,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK,SAAS,IAAI,GAAG;GAC/C;GACA;EACF;EAEA,IAAI,MAAM,YAAY,GAEpB,IAAI,SAAS,MAAM,IAAI,GAAG;OACrB,GAAG,OAAO,MAAM;GAAE,WAAW;GAAM,OAAO;EAAK,CAAC;OAErD,GAAG,OAAO,MAAM,EAAE,OAAO,KAAK,CAAC;CAEnC;CAEA,OAAO,YAAY;AACrB;;;;;AAMA,SAAgB,sBAAsB,QAAsB;CAC1D,IAAI,CAAC,GAAG,WAAW,MAAM,GAAG;CAC5B,MAAM,QAAQ,IAAI;AACpB;AAGA,SAAS,MAAM,KAAa,QAA0B;CACpD,KAAK,MAAM,SAAS,GAAG,YAAY,KAAK,EAAE,eAAe,KAAK,CAAC,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e,QAAQ;GAErB,IAAI,SAAS,OAAO,OAAO,QAAQ,MAAM,CAAC,QAAQ,IAAI;GACtD,UAAU,KAAA;EACZ;CACF;AACF;AAEA,SAAS,gBAAgB,SAAoC;CAC3D,MAAM,0BAAU,IAAI,IAAY;CAChC,IAAI,UAAU;CACd,IAAI,SAAS;CACb,IAAI,OAAO;CACX,IAAI,QAAQ;CACZ,IAAI;CAEJ,OAAO;EACL,MAAM;EACN,OAAO;EAEP,eAAe,QAAQ;GACrB,OAAO,OAAO;GACd,SAAS,OAAO;GAChB,QAAQ,OAAO,MAAM,UAAU;GAC/B,SAAS,KAAK,QAAQ,OAAO,MAAM,OAAO,MAAM,MAAM;EACxD;EAIA,aAAa;GACX,IAAI,QAAQ,UAAU,SAAS,CAAC,SAAS,QAAQ,IAAI,MAAM,GAAG;GAC9D,QAAQ,IAAI,MAAM;GAElB,MAAM,SAAS,mBAAmB,QAAQ,IAAI;GAC9C,IAAI,QAAQ;IACV,QAAQ,KAAK,6BAA6B,OAAO,WAAW,OAAO,EAAE;IACrE;GACF;GAEA,YAAY,QAAQ,QAAQ,QAAQ;EACtC;EAKA,cAAc;GACZ,UAAU;EACZ;EAEA,cAAc;GAEZ,QAAQ,OAAO,MAAM;GACrB,MAAM,YAAY;GAClB,UAAU;GACV,IAAI,QAAQ,UAAU,SAAS,CAAC,SAAS,CAAC,WAAW;GAErD,sBAAsB,MAAM;EAC9B;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactunity/renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "React renderer for Unity3D",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@reactunity/scripts": "^0.
|
|
68
|
+
"@reactunity/scripts": "^0.25.0",
|
|
69
69
|
"@types/node": "^26.4.1",
|
|
70
70
|
"@types/react-reconciler": "^0.33.0",
|
|
71
71
|
"react-unity-webgl": "^10.2.0",
|
package/dist/index-CEmZZAHV.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./jsx-BRwefwcW.js";
|