Skip to content

Allow pasing array of objects to CreatePool, such as from a sceneobje… #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

angusmf
Copy link
Contributor

@angusmf angusmf commented Mar 4, 2018

…ct. This is to allow the use of scene objects containing such an array of prefabs, which is supposed to be quicker to create than calling instantiate.

…ct. This is to allow the use of scene objects containing such an array of prefabs, which is supposed to be quicker to create than calling instantiate.
@TwoTenPvP TwoTenPvP merged commit 6a586f6 into Unity-Technologies:master Mar 5, 2018
@angusmf
Copy link
Contributor Author

angusmf commented Mar 8, 2018

Turns out this is useless the way I intended to use it. You can pass in an array of prefabs, but if they are references in a scene object there's no way to change the active states (unless you're in the editor, but that's not what we want.)

@TwoTenPvP
Copy link
Contributor

The feature was removed anyways during the object pool rework

@angusmf
Copy link
Contributor Author

angusmf commented Mar 9, 2018

For my own education, I got it working using actual de-activated scene objects, not prefab references, and one actual prefab for instantiation when expanding the pool since that is a little quicker than cloning a GameObject. It's pretty academic. The number of objects you'd have to be loading to be worth the improvement is impractical to set up this way.

MrCool92 pushed a commit to MrCool92/MLAPI that referenced this pull request Dec 6, 2020
Allow pasing array of objects to CreatePool, such as from a sceneobje…
0xFA11 added a commit that referenced this pull request Feb 24, 2021
* implement NetworkUpdateLoop

* remove AdvanceFrame() and FrameCount

* update player loop injection points and INetworkUpdateSystem API

* add xmldoc and notes

* add NetworkUpdateLoopTests

* implement NetworkUpdateLoop plain and mixed tests

* update xmldoc

* small meta fix

* replace old network update loop with new RFC-backed network update loop

* replace WaitForEndOfFrame with WaitUntil in tests

* comment 'default' for NetworkUpdateStage.Update enum value

* optimization & refactoring pass

* dictionary lookups instead of index access to arrays

* optimize array allocation
jeffreyrainy pushed a commit that referenced this pull request Feb 24, 2021
* implement NetworkUpdateLoop

* remove AdvanceFrame() and FrameCount

* update player loop injection points and INetworkUpdateSystem API

* add xmldoc and notes

* add NetworkUpdateLoopTests

* implement NetworkUpdateLoop plain and mixed tests

* update xmldoc

* small meta fix

* replace old network update loop with new RFC-backed network update loop

* replace WaitForEndOfFrame with WaitUntil in tests

* comment 'default' for NetworkUpdateStage.Update enum value

* optimization & refactoring pass

* dictionary lookups instead of index access to arrays

* optimize array allocation
becksebenius-unity added a commit that referenced this pull request Aug 31, 2021
becksebenius-unity added a commit that referenced this pull request Aug 31, 2021
* Implemented NetworkMessageSent/NetworkMessageReceived metrics

* Added tests and fixed missing messages during batching

* updated the message type names to be a readonly

* fix against latest develop merge

* bumped tools version to #8

* fixed unnecessary using

* fixed errant tab (thanks github merge....)
mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
* Implemented NetworkMessageSent/NetworkMessageReceived metrics

* Added tests and fixed missing messages during batching

* updated the message type names to be a readonly

* fix against latest develop merge

* bumped tools version to Unity-Technologies#8

* fixed unnecessary using

* fixed errant tab (thanks github merge....)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants