Search Unity

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.