Skip to content

Commit dd015bf

Browse files
chore: test project updates 2023-Q3 (#2679)
* fix This fixes an issue where ConnectionModeScript and/or StatsDisplay would throw an exception if certain optional properties were not defined. * update Minor adjustment to the Spawner class where if the frequency of spawning is set to zero it will only spawn 1 instance (i.e. a one shot spawner). Updated several samples to use UnityTransport as opposed to UNet. Limited number of objects spawned, adjusted the ray cast line renderer, updated the physics player to have a ray pointing towards its forward (to know the direction you are going) in physics example. Adjusted the connect mode buttons so they will automatically re-appear when you disconnect. Updated several projects to have their own network prefab list.
1 parent d379198 commit dd015bf

19 files changed

+925
-579
lines changed

testproject/Assets/Prefabs/PhysicsPlayer.prefab

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ GameObject:
1313
- component: {fileID: 4079352819444256613}
1414
- component: {fileID: 4079352819444256612}
1515
- component: {fileID: -3775814466963834669}
16+
- component: {fileID: -8672400251141765371}
17+
- component: {fileID: 5731438903708172247}
1618
- component: {fileID: 1750810845806302260}
1719
- component: {fileID: 4053684789567975459}
1820
- component: {fileID: 3885376173097824340}
@@ -116,8 +118,124 @@ MonoBehaviour:
116118
m_EditorClassIdentifier:
117119
GlobalObjectIdHash: 951099334
118120
AlwaysReplicateAsRoot: 0
121+
SynchronizeTransform: 1
122+
ActiveSceneSynchronization: 0
123+
SceneMigrationSynchronization: 1
124+
SpawnWithObservers: 1
119125
DontDestroyWithOwner: 0
120126
AutoObjectParentSync: 1
127+
--- !u!120 &-8672400251141765371
128+
LineRenderer:
129+
m_ObjectHideFlags: 0
130+
m_CorrespondingSourceObject: {fileID: 0}
131+
m_PrefabInstance: {fileID: 0}
132+
m_PrefabAsset: {fileID: 0}
133+
m_GameObject: {fileID: 4079352819444256614}
134+
m_Enabled: 1
135+
m_CastShadows: 0
136+
m_ReceiveShadows: 0
137+
m_DynamicOccludee: 1
138+
m_StaticShadowCaster: 0
139+
m_MotionVectors: 0
140+
m_LightProbeUsage: 0
141+
m_ReflectionProbeUsage: 0
142+
m_RayTracingMode: 0
143+
m_RayTraceProcedural: 0
144+
m_RenderingLayerMask: 1
145+
m_RendererPriority: 0
146+
m_Materials:
147+
- {fileID: 2100000, guid: 712559e4bd05f1942a8fd4bfa4e10c56, type: 2}
148+
m_StaticBatchInfo:
149+
firstSubMesh: 0
150+
subMeshCount: 0
151+
m_StaticBatchRoot: {fileID: 0}
152+
m_ProbeAnchor: {fileID: 0}
153+
m_LightProbeVolumeOverride: {fileID: 0}
154+
m_ScaleInLightmap: 1
155+
m_ReceiveGI: 1
156+
m_PreserveUVs: 0
157+
m_IgnoreNormalsForChartDetection: 0
158+
m_ImportantGI: 0
159+
m_StitchLightmapSeams: 1
160+
m_SelectedEditorRenderState: 3
161+
m_MinimumChartSize: 4
162+
m_AutoUVMaxDistance: 0.5
163+
m_AutoUVMaxAngle: 89
164+
m_LightmapParameters: {fileID: 0}
165+
m_SortingLayerID: 0
166+
m_SortingLayer: 0
167+
m_SortingOrder: 0
168+
m_Positions:
169+
- {x: 0, y: 0, z: 0}
170+
- {x: 0, y: 0, z: 1}
171+
m_Parameters:
172+
serializedVersion: 3
173+
widthMultiplier: 1
174+
widthCurve:
175+
serializedVersion: 2
176+
m_Curve:
177+
- serializedVersion: 3
178+
time: 0
179+
value: 1
180+
inSlope: 0
181+
outSlope: 0
182+
tangentMode: 0
183+
weightedMode: 0
184+
inWeight: 0.33333334
185+
outWeight: 0.33333334
186+
m_PreInfinity: 2
187+
m_PostInfinity: 2
188+
m_RotationOrder: 4
189+
colorGradient:
190+
serializedVersion: 2
191+
key0: {r: 0.30566037, g: 0.90742147, b: 1, a: 1}
192+
key1: {r: 0.28166604, g: 0.8183648, b: 0.8679245, a: 1}
193+
key2: {r: 0.0391598, g: 0.9433962, b: 0.89236206, a: 0}
194+
key3: {r: 0, g: 0, b: 0, a: 0}
195+
key4: {r: 0, g: 0, b: 0, a: 0}
196+
key5: {r: 0, g: 0, b: 0, a: 0}
197+
key6: {r: 0, g: 0, b: 0, a: 0}
198+
key7: {r: 0, g: 0, b: 0, a: 0}
199+
ctime0: 0
200+
ctime1: 26021
201+
ctime2: 65535
202+
ctime3: 0
203+
ctime4: 0
204+
ctime5: 0
205+
ctime6: 0
206+
ctime7: 0
207+
atime0: 52235
208+
atime1: 65535
209+
atime2: 0
210+
atime3: 0
211+
atime4: 0
212+
atime5: 0
213+
atime6: 0
214+
atime7: 0
215+
m_Mode: 1
216+
m_NumColorKeys: 3
217+
m_NumAlphaKeys: 2
218+
numCornerVertices: 0
219+
numCapVertices: 0
220+
alignment: 0
221+
textureMode: 0
222+
shadowBias: 1
223+
generateLightingData: 1
224+
m_UseWorldSpace: 1
225+
m_Loop: 0
226+
--- !u!114 &5731438903708172247
227+
MonoBehaviour:
228+
m_ObjectHideFlags: 0
229+
m_CorrespondingSourceObject: {fileID: 0}
230+
m_PrefabInstance: {fileID: 0}
231+
m_PrefabAsset: {fileID: 0}
232+
m_GameObject: {fileID: 4079352819444256614}
233+
m_Enabled: 1
234+
m_EditorHideFlags: 0
235+
m_Script: {fileID: 11500000, guid: 3e34656ebae784afca7d1f7f6dc18580, type: 3}
236+
m_Name:
237+
m_EditorClassIdentifier:
238+
Range: 3
121239
--- !u!54 &1750810845806302260
122240
Rigidbody:
123241
m_ObjectHideFlags: 0
@@ -146,6 +264,7 @@ MonoBehaviour:
146264
m_Script: {fileID: 11500000, guid: 24a9235f10bc6456183432fdb3015157, type: 3}
147265
m_Name:
148266
m_EditorClassIdentifier:
267+
ApplyColorToChildren: 0
149268
--- !u!114 &3885376173097824340
150269
MonoBehaviour:
151270
m_ObjectHideFlags: 0
@@ -170,8 +289,12 @@ MonoBehaviour:
170289
PositionThreshold: 0.001
171290
RotAngleThreshold: 0.01
172291
ScaleThreshold: 0.01
292+
UseQuaternionSynchronization: 0
293+
UseQuaternionCompression: 0
294+
UseHalfFloatPrecision: 0
173295
InLocalSpace: 0
174296
Interpolate: 1
297+
SlerpPosition: 0
175298
Speed: 4
176299
RotSpeed: 1
177300
--- !u!114 &1991357795387791033

0 commit comments

Comments
 (0)