UFPS + PUN Addon errors (UFPS is trying to assign other cameras type)

denisfrs

New member
Hi.

I'm trying to use with UFPS (in a clean/new project) but i get a bunch of errors..
(UFPS 2.2.2 / Addon 1.1.2 / PUN 2.18.1 / Unity 2018.4.4)

 

Justin

Administrator
Staff member
Thanks for the heads up. This can be fixed by updating line 258 of ObjectRemover.cs from:

Code:
                var nestedObject = objectReferences.NestedReferences[i];
                if (PrefabUtility.IsPartOfPrefabAsset(nestedObject)) {
to:
Code:
                var nestedObject = objectReferences.NestedReferences[i];
                if (nestedObject == null) {
                    continue;
                }
                if (PrefabUtility.IsPartOfPrefabAsset(nestedObject)) {

After you make this change you'll want to remove the multiplayer add-on demo scene and add it back again.
 

denisfrs

New member
Thank you Justin!

After many tests, that did not solve the problem.. maybe also i need to change code somewhere else?
 
Last edited:

Justin

Administrator
Staff member
That should be all you need to do. I just did the following and it worked:

1. Import UFPS, update project settings
2. Make the code change above.
3. Import PUN and set the PUN ID
4. Import the PUN add-on
5. Go to the Demo Room scene and resave so it updates the objects
6. Add the Menu and Demo Room scene to the build settings
7. Hit play
 
Top