Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
e1f20cd
added an implementation of two dynamic prefabs usage strategies
pdeschain Nov 3, 2022
677d9e6
Added brief readme
pdeschain Nov 3, 2022
2c803c3
Update Basic/DyanmicPrefabs/Assets/Scripts/01_Sparse loading with no …
pdeschain Nov 7, 2022
a0adc17
Update Basic/DyanmicPrefabs/Assets/Scripts/01_Sparse loading with no …
pdeschain Nov 7, 2022
c395fd4
slimmed down the package manifest
pdeschain Nov 7, 2022
233f715
swapped awake for async start, added more comments to help the user u…
pdeschain Nov 7, 2022
ad67a9b
sparse loading now ensures clients ack the prefab load before spawning
pdeschain Nov 8, 2022
1a07308
added server-side logic to not delay the spawn of a prefab that has a…
pdeschain Nov 9, 2022
ee6d50f
formatting
pdeschain Nov 9, 2022
320dc4a
wip adding latejoin support
pdeschain Nov 16, 2022
0c4b9fe
fixing some exceptions
pdeschain Nov 17, 2022
981af51
#
pdeschain Nov 17, 2022
7980ca6
#
pdeschain Nov 17, 2022
dc6071f
sparse loading works with latejoins
pdeschain Nov 21, 2022
192c0e9
Added functionality for spawning prefabs and keeping them hidden with…
pdeschain Nov 28, 2022
77d48c5
added a slightly better visual for prefab spawning
pdeschain Nov 28, 2022
886c58a
#
pdeschain Nov 28, 2022
a167a93
added better ui for controlling the spawning
pdeschain Nov 28, 2022
9cf2e8b
#
pdeschain Nov 28, 2022
ca9bc9c
#
pdeschain Nov 28, 2022
e66bf06
spawn methods now require initial position and rotation
pdeschain Nov 29, 2022
e157e8e
naming adjustments and cleanup
pdeschain Nov 29, 2022
9b3481a
Apply suggestions from code review
pdeschain Nov 30, 2022
98ca264
Update Basic/DyanmicPrefabs/README.md
pdeschain Nov 30, 2022
208583e
updated readmer
pdeschain Nov 30, 2022
ea597a5
Merge branch 'pdeschain/dynamic-prefabs-exploration' of github.com:Un…
pdeschain Nov 30, 2022
a953b2d
delay for addressable loadings, fix for latejoiners during synchrnono…
pdeschain Nov 30, 2022
64c09d2
added suggestions for further improvements
pdeschain Nov 30, 2022
94f340c
editor update to 2021.3.15f1 & NGO 1.2.0
fernando-cortez Jan 5, 2023
a5427b4
refactored the custommessage usage to use NGO's DisconnectReason
fernando-cortez Jan 9, 2023
dc855e3
connection flow converted to a state machine
fernando-cortez Jan 17, 2023
8cc293e
comments
fernando-cortez Jan 17, 2023
4a6fe8d
disconnection logic on connected states & logging
fernando-cortez Jan 19, 2023
9f3b5fc
comments
fernando-cortez Jan 20, 2023
6529353
restructuring of scripts and scenes
fernando-cortez Feb 1, 2023
bc67470
Merge branch 'develop' into pdeschain/dynamic-prefabs-exploration
fernando-cortez Feb 6, 2023
2ab3082
further restructuring WIP (previous methods working, outstanding is c…
fernando-cortez Feb 7, 2023
88b2620
dynamic prefab status utilities made into static class, reconnection …
fernando-cortez Feb 8, 2023
cbaf97f
formatting and added a scripting define for artificial delay
fernando-cortez Feb 8, 2023
ac571b9
refactoring/comments of all use cases
fernando-cortez Feb 9, 2023
28584c9
Merge branch 'fernando/dynamic-prefabs-restructuring' into pdeschain/…
fernando-cortez Feb 9, 2023
9071eda
Merge branch 'develop' into pdeschain/dynamic-prefabs-exploration
fernando-cortez Feb 9, 2023
abdc697
removing unnecessary async operation on already loaded prefab
fernando-cortez Feb 9, 2023
5bdf2bc
renaming cleanup, AddressableGUID dictionary lookups don't create all…
fernando-cortez Feb 10, 2023
4d93f70
parity of use case scene names and scripts
fernando-cortez Feb 10, 2023
bcaa76f
addressing a few more PR comments
fernando-cortez Feb 10, 2023
6f5fdc6
a few more PR comments addressed
fernando-cortez Feb 10, 2023
7861d1a
more PR feedback addressed, AddressableGUIDCollection no longer neces…
fernando-cortez Feb 13, 2023
f0f6c57
AppController didn't need to be NetworkBehaviour, comments
fernando-cortez Feb 13, 2023
dff67c3
fix on last commit for in-scene networkbehaviours on shutdown
fernando-cortez Feb 13, 2023
ee38388
removing debug comment
fernando-cortez Feb 13, 2023
3458709
removing remarks that will go inside of readme
fernando-cortez Feb 13, 2023
36de5fe
more remarks added to the use cases
fernando-cortez Feb 13, 2023
81fa4c7
grammar fix
fernando-cortez Feb 13, 2023
9eefd42
harmonizing visibility terminology in docs
fernando-cortez Feb 13, 2023
83f4a84
upgrade to 2021.3.18f1 LTS
fernando-cortez Feb 13, 2023
f1f0ab8
comment fix
fernando-cortez Feb 13, 2023
0b601ef
renamed project to DynamicAddressablesNetworkPrefabs
fernando-cortez Feb 14, 2023
113aaf1
comments
fernando-cortez Feb 14, 2023
fc85ee6
renaming for shorter paths to have jobs succeed
fernando-cortez Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 468a46d0ae32c3544b7d98094e6448a9, type: 3}
m_Name: AddressableAssetSettings
m_EditorClassIdentifier:
m_DefaultGroup: ddcc0dd3c2e3149309486ece76cf498a
m_CachedHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0
m_BundleLocalCatalog: 0
m_CatalogRequestsTimeout: 0
m_DisableCatalogUpdateOnStart: 0
m_IgnoreUnsupportedFilesInBuild: 0
m_UniqueBundleIds: 0
m_NonRecursiveBuilding: 1
m_CCDEnabled: 0
m_maxConcurrentWebRequests: 500
m_ContiguousBundles: 1
m_StripUnityVersionFromBundleBuild: 0
m_DisableVisibleSubAssetRepresentations: 0
m_ShaderBundleNaming: 0
m_ShaderBundleCustomNaming:
m_MonoScriptBundleNaming: 0
m_MonoScriptBundleCustomNaming:
m_RemoteCatalogBuildPath:
m_Id:
m_RemoteCatalogLoadPath:
m_Id:
m_ContentStateBuildPath:
m_BuildAddressablesWithPlayerBuild: 0
m_overridePlayerVersion:
m_GroupAssets:
- {fileID: 11400000, guid: 4bbc2ada2ba60435f91762231964eb25, type: 2}
- {fileID: 11400000, guid: 897b1409d53154034b6a05860f1e6b4f, type: 2}
m_BuildSettings:
m_CompileScriptsInVirtualMode: 0
m_CleanupStreamingAssetsAfterBuilds: 1
m_LogResourceManagerExceptions: 1
m_BundleBuildPath: Temp/com.unity.addressables/AssetBundles
m_ProfileSettings:
m_Profiles:
- m_InheritedParent:
m_Id: a4b90b0a8cc424e7da02d4d3e55d4c22
m_ProfileName: Default
m_Values:
- m_Id: 42e357a6791bc4ae1babce0c6d730d4b
m_Value: '[UnityEditor.EditorUserBuildSettings.activeBuildTarget]'
- m_Id: 33af78b843da944489448f41af32c66a
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
- m_Id: 15a3422a5bd3d437ea3dcecc042cfb31
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
- m_Id: fe74951be5c66486e92421ce17bda605
m_Value: ServerData/[BuildTarget]
- m_Id: 16db9ee51233d4dcc93f75ac164266f5
m_Value: http://[PrivateIpAddress]:[HostingServicePort]
m_ProfileEntryNames:
- m_Id: 42e357a6791bc4ae1babce0c6d730d4b
m_Name: BuildTarget
m_InlineUsage: 0
- m_Id: 33af78b843da944489448f41af32c66a
m_Name: Local.BuildPath
m_InlineUsage: 0
- m_Id: 15a3422a5bd3d437ea3dcecc042cfb31
m_Name: Local.LoadPath
m_InlineUsage: 0
- m_Id: fe74951be5c66486e92421ce17bda605
m_Name: Remote.BuildPath
m_InlineUsage: 0
- m_Id: 16db9ee51233d4dcc93f75ac164266f5
m_Name: Remote.LoadPath
m_InlineUsage: 0
m_ProfileVersion: 1
m_LabelTable:
m_LabelNames:
- default
m_SchemaTemplates: []
m_GroupTemplateObjects:
- {fileID: 11400000, guid: 91a93decb448d4d51b591a8c15ea2e17, type: 2}
m_InitializationObjects: []
m_CertificateHandlerType:
m_AssemblyName:
m_ClassName:
m_ActivePlayerDataBuilderIndex: 3
m_DataBuilders:
- {fileID: 11400000, guid: b3b595ddb85c143cb9ccd245a2bcddc1, type: 2}
- {fileID: 11400000, guid: 2bd2714d617ac48c9961fda53af2ae0f, type: 2}
- {fileID: 11400000, guid: 724d64d7e32614fe89b435597b3d69ca, type: 2}
- {fileID: 11400000, guid: 82d09a1d0170f461b94b084e30c591d3, type: 2}
m_ActiveProfileId: a4b90b0a8cc424e7da02d4d3e55d4c22
m_HostingServicesManager:
m_HostingServiceInfos: []
m_Settings: {fileID: 11400000}
m_NextInstanceId: 0
m_RegisteredServiceTypeRefs: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-2333981389699923654
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
m_Name: BundledAssetGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_InternalBundleIdMode: 1
m_Compression: 1
m_IncludeAddressInCatalog: 1
m_IncludeGUIDInCatalog: 1
m_IncludeLabelsInCatalog: 1
m_InternalIdNamingMode: 0
m_CacheClearBehavior: 0
m_IncludeInBuild: 1
m_BundledAssetProviderType:
m_AssemblyName:
m_ClassName:
m_ForceUniqueProvider: 0
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1
m_RetryCount: 0
m_BuildPath:
m_Id:
m_LoadPath:
m_Id:
m_BundleMode: 0
m_AssetBundleProviderType:
m_AssemblyName:
m_ClassName:
m_BundleNaming: 0
m_AssetLoadMode: 0
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1a3c5d64ac83548c09dd1678b9f6f1cd, type: 3}
m_Name: Packed Assets
m_EditorClassIdentifier:
m_SchemaObjects:
- {fileID: -2333981389699923654}
- {fileID: 8439535091112053196}
m_Description: Pack assets into asset bundles.
m_Settings: {fileID: 0}
--- !u!114 &8439535091112053196
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
m_Name: ContentUpdateGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 0}
m_StaticContent: 0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Built In Data
m_EditorClassIdentifier:
m_GroupName: Built In Data
m_Data:
m_SerializedData: []
m_GUID: 78ca99454d75a4cf8ab1b4919d288a3d
m_SerializeEntries:
- m_GUID: Resources
m_Address: Resources
m_ReadOnly: 1
m_SerializedLabels: []
- m_GUID: EditorSceneList
m_Address: EditorSceneList
m_ReadOnly: 1
m_SerializedLabels: []
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: eba030a8967cd41c2b351a2d35a779c2, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 65678e9ce7646493db44859d98c363ec, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Default Local Group
m_EditorClassIdentifier:
m_GroupName: Default Local Group
m_Data:
m_SerializedData: []
m_GUID: ddcc0dd3c2e3149309486ece76cf498a
m_SerializeEntries:
- m_GUID: e8635bd8fc0fa44f7ba16885494477e4
m_Address: DynamicPrefabTest 7
m_ReadOnly: 0
m_SerializedLabels: []
- m_GUID: 580f343244c5d495aa8df840a4ef1050
m_Address: DynamicPrefabTest 6
m_ReadOnly: 0
m_SerializedLabels: []
- m_GUID: df2e29fad7ea5480ebbd89c15ffe415e
m_Address: DynamicPrefabTest 4
m_ReadOnly: 0
m_SerializedLabels: []
- m_GUID: a4d5ae4542ecc49f5b2e96f39e93c0c4
m_Address: DynamicPrefabTest 3
m_ReadOnly: 0
m_SerializedLabels: []
- m_GUID: 86d863718b86d4ae69be9e4e22feceb6
m_Address: DynamicPrefabTest 2
m_ReadOnly: 0
m_SerializedLabels: []
- m_GUID: 75a53913d13db4777b0d97d1c009b6b2
m_Address: DynamicPrefabTest 1
m_ReadOnly: 0
m_SerializedLabels: []
- m_GUID: 05ea0814e604c4acf8ae3b7e0a5dfb07
m_Address: DynamicPrefabTest
m_ReadOnly: 0
m_SerializedLabels: []
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: eba030a8967cd41c2b351a2d35a779c2, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: c6e1543797fc94e248c1d3797ef45dd0, type: 2}
- {fileID: 11400000, guid: c99a9e8cb460a45128d179fca741744a, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b1487f5d688e4f94f828f879d599dbdc, type: 3}
m_Name: Built In Data_PlayerDataGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 11400000, guid: 4bbc2ada2ba60435f91762231964eb25, type: 2}
m_IncludeResourcesFolders: 1
m_IncludeBuildSettingsScenes: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading