Skip to content
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

NetworkIdentity not compatible with Playmaker FSM #3128

Closed
ConnorTheCone opened this issue Mar 28, 2022 · 1 comment
Closed

NetworkIdentity not compatible with Playmaker FSM #3128

ConnorTheCone opened this issue Mar 28, 2022 · 1 comment

Comments

@ConnorTheCone
Copy link

Saving a prefab with a FSM and the NetworkIdentity script returns an error when trying to build even if the FSM has no logic in it.

The build fails because the line 426 of the NetworkIdentity script
if (BuildPipeline.isBuildingPlayer) throw new InvalidOperationException($"Scene {gameObject.scene.path} needs to be opened and resaved before building, because the scene object {name} has no valid sceneId yet.");

Just for testing i commented these lines of code and the build finished correctly and the prefab works and intended with no errors.

Steps
1- Create an Empty GameObject.
2- Add the NetworkIdentity script and a FSM.
3- Save it as prefab.

Expected behavior
It should build the game and work, i was trying to create custom Mirror actions for playmaker, they work in playmode but the build fails.

imagen

  • OS: Windows
  • Build target: standalone
  • Unity version: 2020.3.18f1 LTS
  • Mirror branch: Mirror version 65.0.0 - March 09. 2022
@MrGadget1024
Copy link
Collaborator

It would seem PlayMaker is wiping out the meta data that we're writing, which shouldn't happen. Contact them for support.

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

No branches or pull requests

2 participants