Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
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.
.
  • Loading branch information
NoelStephensUnity committed Aug 25, 2023
1 parent 112256d commit 446be71
Show file tree
Hide file tree
Showing 18 changed files with 879 additions and 569 deletions.
123 changes: 123 additions & 0 deletions testproject/Assets/Prefabs/PhysicsPlayer.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ GameObject:
- component: {fileID: 4079352819444256613}
- component: {fileID: 4079352819444256612}
- component: {fileID: -3775814466963834669}
- component: {fileID: -8672400251141765371}
- component: {fileID: 5731438903708172247}
- component: {fileID: 1750810845806302260}
- component: {fileID: 4053684789567975459}
- component: {fileID: 3885376173097824340}
Expand Down Expand Up @@ -116,8 +118,124 @@ MonoBehaviour:
m_EditorClassIdentifier:
GlobalObjectIdHash: 951099334
AlwaysReplicateAsRoot: 0
SynchronizeTransform: 1
ActiveSceneSynchronization: 0
SceneMigrationSynchronization: 1
SpawnWithObservers: 1
DontDestroyWithOwner: 0
AutoObjectParentSync: 1
--- !u!120 &-8672400251141765371
LineRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4079352819444256614}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 0
m_LightProbeUsage: 0
m_ReflectionProbeUsage: 0
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 712559e4bd05f1942a8fd4bfa4e10c56, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Positions:
- {x: 0, y: 0, z: 0}
- {x: 0, y: 0, z: 1}
m_Parameters:
serializedVersion: 3
widthMultiplier: 1
widthCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
colorGradient:
serializedVersion: 2
key0: {r: 0.30566037, g: 0.90742147, b: 1, a: 1}
key1: {r: 0.28166604, g: 0.8183648, b: 0.8679245, a: 1}
key2: {r: 0.0391598, g: 0.9433962, b: 0.89236206, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 26021
ctime2: 65535
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 52235
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 1
m_NumColorKeys: 3
m_NumAlphaKeys: 2
numCornerVertices: 0
numCapVertices: 0
alignment: 0
textureMode: 0
shadowBias: 1
generateLightingData: 1
m_UseWorldSpace: 1
m_Loop: 0
--- !u!114 &5731438903708172247
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4079352819444256614}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3e34656ebae784afca7d1f7f6dc18580, type: 3}
m_Name:
m_EditorClassIdentifier:
Range: 3
--- !u!54 &1750810845806302260
Rigidbody:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -146,6 +264,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 24a9235f10bc6456183432fdb3015157, type: 3}
m_Name:
m_EditorClassIdentifier:
ApplyColorToChildren: 0
--- !u!114 &3885376173097824340
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -170,8 +289,12 @@ MonoBehaviour:
PositionThreshold: 0.001
RotAngleThreshold: 0.01
ScaleThreshold: 0.01
UseQuaternionSynchronization: 0
UseQuaternionCompression: 0
UseHalfFloatPrecision: 0
InLocalSpace: 0
Interpolate: 1
SlerpPosition: 0
Speed: 4
RotSpeed: 1
--- !u!114 &1991357795387791033
Expand Down
Loading

0 comments on commit 446be71

Please sign in to comment.