FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.39k stars 149 forks source link

[CodeGen Bug]: Certain function signatures will cause compilation errors. #713

Closed aaronkwan closed 4 months ago

aaronkwan commented 4 months ago

General Unity version: 2022.3.10f1 Fish-Networking version: 4.2.0R Discord link: link

Description When a public static function with signature: (GameObject prefab, Transform parent) is included in a monobehavior class, it causes fishnet codegen errors.

See text file for the errors. fishneterror.txt

Replication Steps to reproduce the behavior:

  1. Create a monobehavior script (and use it somewhere)
  2. Make a function with the signature
  3. Compile code

Expected behavior See discord link Screenshots See discord link

FirstGearGames commented 4 months ago

Most likely Unity issue. Try updating to the latest to see if the issue is resolved. If not you may need to clear your Unity caches (Library, obj, temp)

FirstGearGames commented 4 months ago

Closed due to inactivity.