@dcl/playground-assets 7.17.1-21217092165.commit-1c2ff72 → 7.17.1-21366395728.commit-ada88b6

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/alpha.d.ts CHANGED
@@ -6926,8 +6926,14 @@ export declare type RaycastSystemOptions = {
6926
6926
  * @public
6927
6927
  */
6928
6928
  export declare interface ReactBasedUiSystem {
6929
+ /**
6930
+ * Destroy all UI entities and unregister related systems.
6931
+ */
6929
6932
  destroy(): void;
6930
- setUiRenderer(ui: UiComponent): void;
6933
+ /**
6934
+ * Set the main UI renderer. Optional virtual size defines the global UI scale factor.
6935
+ */
6936
+ setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
6931
6937
  /**
6932
6938
  * Add a UI renderer associated with an entity. The UI will be automatically cleaned up
6933
6939
  * when the entity is removed from the engine.
@@ -6940,10 +6946,12 @@ export declare interface ReactBasedUiSystem {
6940
6946
  * @param entity - The entity to associate with this UI renderer. When the entity is removed,
6941
6947
  * the UI renderer is automatically cleaned up.
6942
6948
  * @param ui - The UI component to render
6949
+ * @param options - Optional virtual size used for UI scale factor when main UI has none
6943
6950
  */
6944
- addUiRenderer(entity: Entity, ui: UiComponent): void;
6951
+ addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
6945
6952
  /**
6946
6953
  * Remove a previously added UI renderer by its associated entity.
6954
+ * It does not affect the main UI renderer.
6947
6955
  * @param entity - The entity whose UI renderer should be removed
6948
6956
  */
6949
6957
  removeUiRenderer(entity: Entity): void;
@@ -8150,6 +8158,14 @@ export declare interface UiLabelProps {
8150
8158
  */
8151
8159
  export declare type uint32 = number;
8152
8160
 
8161
+ /**
8162
+ * @public
8163
+ */
8164
+ export declare type UiRendererOptions = {
8165
+ virtualWidth: number;
8166
+ virtualHeight: number;
8167
+ };
8168
+
8153
8169
  /** @public */
8154
8170
  export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
8155
8171
 
package/dist/beta.d.ts CHANGED
@@ -6898,8 +6898,14 @@ export declare type RaycastSystemOptions = {
6898
6898
  * @public
6899
6899
  */
6900
6900
  export declare interface ReactBasedUiSystem {
6901
+ /**
6902
+ * Destroy all UI entities and unregister related systems.
6903
+ */
6901
6904
  destroy(): void;
6902
- setUiRenderer(ui: UiComponent): void;
6905
+ /**
6906
+ * Set the main UI renderer. Optional virtual size defines the global UI scale factor.
6907
+ */
6908
+ setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
6903
6909
  /**
6904
6910
  * Add a UI renderer associated with an entity. The UI will be automatically cleaned up
6905
6911
  * when the entity is removed from the engine.
@@ -6912,10 +6918,12 @@ export declare interface ReactBasedUiSystem {
6912
6918
  * @param entity - The entity to associate with this UI renderer. When the entity is removed,
6913
6919
  * the UI renderer is automatically cleaned up.
6914
6920
  * @param ui - The UI component to render
6921
+ * @param options - Optional virtual size used for UI scale factor when main UI has none
6915
6922
  */
6916
- addUiRenderer(entity: Entity, ui: UiComponent): void;
6923
+ addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
6917
6924
  /**
6918
6925
  * Remove a previously added UI renderer by its associated entity.
6926
+ * It does not affect the main UI renderer.
6919
6927
  * @param entity - The entity whose UI renderer should be removed
6920
6928
  */
6921
6929
  removeUiRenderer(entity: Entity): void;
@@ -8117,6 +8125,14 @@ export declare interface UiLabelProps {
8117
8125
  */
8118
8126
  export declare type uint32 = number;
8119
8127
 
8128
+ /**
8129
+ * @public
8130
+ */
8131
+ export declare type UiRendererOptions = {
8132
+ virtualWidth: number;
8133
+ virtualHeight: number;
8134
+ };
8135
+
8120
8136
  /** @public */
8121
8137
  export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
8122
8138
 
@@ -6898,8 +6898,14 @@ export declare type RaycastSystemOptions = {
6898
6898
  * @public
6899
6899
  */
6900
6900
  export declare interface ReactBasedUiSystem {
6901
+ /**
6902
+ * Destroy all UI entities and unregister related systems.
6903
+ */
6901
6904
  destroy(): void;
6902
- setUiRenderer(ui: UiComponent): void;
6905
+ /**
6906
+ * Set the main UI renderer. Optional virtual size defines the global UI scale factor.
6907
+ */
6908
+ setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
6903
6909
  /**
6904
6910
  * Add a UI renderer associated with an entity. The UI will be automatically cleaned up
6905
6911
  * when the entity is removed from the engine.
@@ -6912,10 +6918,12 @@ export declare interface ReactBasedUiSystem {
6912
6918
  * @param entity - The entity to associate with this UI renderer. When the entity is removed,
6913
6919
  * the UI renderer is automatically cleaned up.
6914
6920
  * @param ui - The UI component to render
6921
+ * @param options - Optional virtual size used for UI scale factor when main UI has none
6915
6922
  */
6916
- addUiRenderer(entity: Entity, ui: UiComponent): void;
6923
+ addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
6917
6924
  /**
6918
6925
  * Remove a previously added UI renderer by its associated entity.
6926
+ * It does not affect the main UI renderer.
6919
6927
  * @param entity - The entity whose UI renderer should be removed
6920
6928
  */
6921
6929
  removeUiRenderer(entity: Entity): void;
@@ -8117,6 +8125,14 @@ export declare interface UiLabelProps {
8117
8125
  */
8118
8126
  export declare type uint32 = number;
8119
8127
 
8128
+ /**
8129
+ * @public
8130
+ */
8131
+ export declare type UiRendererOptions = {
8132
+ virtualWidth: number;
8133
+ virtualHeight: number;
8134
+ };
8135
+
8120
8136
  /** @public */
8121
8137
  export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
8122
8138