Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug RPC with multiple Entity fields creates a codegen error

Discussion in 'NetCode for ECS' started by PhilSA, Feb 20, 2021.

  1. PhilSA

    PhilSA

    Joined:
    Jul 11, 2013
    Posts:
    1,926
    The following RPC results in the following codegen:




    Just a simple issue of the same variable names being used twice. Maybe the codegen could simply put scope brackets around the generated code for each field to avoid the potential for similar future errors?
     
    Last edited: Feb 21, 2021
  2. timjohansson

    timjohansson

    Unity Technologies

    Joined:
    Jul 13, 2016
    Posts:
    473
    We added scopes around that recently. That fix will most likely not make it into the next release but the one after that though
     
    PhilSA likes this.