@3dsource/angular-unreal-module 0.0.46 → 0.0.49

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/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -68,13 +68,15 @@ export const appConfig: ApplicationConfig = {
68
68
  ...provideAngularUnrealModule(),
69
69
 
70
70
  // Optional initial config
71
- { provide: UNREAL_CONFIG, useValue: {
71
+ {
72
+ provide: UNREAL_CONFIG,
73
+ useValue: {
72
74
  // customErrorsEndpoint?: string,
73
75
  // commandTelemetryReceiver?: string,
74
76
  // regionsPingUrl?: string,
75
77
  // screenLockerContainerId?: string,
76
78
  // dataChannelConnectionTimeout?: number,
77
- }
79
+ },
78
80
  },
79
81
  ],
80
82
  };
@@ -92,14 +94,7 @@ import { UnrealSceneComponent } from '@3dsource/angular-unreal-module';
92
94
  selector: 'app-root',
93
95
  standalone: true,
94
96
  imports: [UnrealSceneComponent],
95
- template: `
96
- <app-unreal-scene
97
- [isStudio]="false"
98
- [useContainerAsSizeProvider]="true"
99
- [studioResolutionSize]="{ width: 1920, height: 1080 }"
100
- (changeMouseOverScene)="onHover($event)"
101
- ></app-unreal-scene>
102
- `,
97
+ template: ` <app-unreal-scene [isStudio]="false" [useContainerAsSizeProvider]="true" [studioResolutionSize]="{ width: 1920, height: 1080 }" (changeMouseOverScene)="onHover($event)"></app-unreal-scene> `,
103
98
  })
104
99
  export class AppComponent {
105
100
  onHover(isOver: boolean) {
@@ -111,11 +106,13 @@ export class AppComponent {
111
106
  Component selector: <app-unreal-scene>
112
107
 
113
108
  Inputs:
109
+
114
110
  - isStudio: boolean = false
115
111
  - useContainerAsSizeProvider: boolean = true
116
112
  - studioResolutionSize: { width: number; height: number } = { width: 1920, height: 1080 }
117
113
 
118
114
  Outputs:
115
+
119
116
  - changeMouseOverScene: EventEmitter<boolean>
120
117
 
121
118
  ### 3) Send commands / interactions to Unreal
@@ -134,7 +131,9 @@ export class MyComponent {
134
131
  sendSomeCommand() {
135
132
  const packet: MetaBoxCommandPacket = {
136
133
  command: 'SomeCommand',
137
- parameters: { /* command parameters */ },
134
+ parameters: {
135
+ /* command parameters */
136
+ },
138
137
  } as MetaBoxCommandPacket;
139
138
 
140
139
  // Records telemetry and dispatches store events