FishNet icon indicating copy to clipboard operation
FishNet copied to clipboard

Physics 2D

Open SnaiperoG3D opened this issue 1 year ago • 3 comments

General Unity version: 2022.3.16f1 Fish-Networking version: 4.1.1R Pro Discord link: Not required

Description Disabled Physics2D in Package Manager leads to errors such as: type name could not be found in namespace UnityEngine. PhysicsScene2D, Rigidbody2D, and etc classes which provide Physics2D. Not comfortable with project where only 3D Physics required, i guess same thing can be with project where only 2D Physics are required.

Replication Steps to reproduce the behavior:

  1. Disable Physics2D in Package Manager
  2. See errors

Expected behavior No errors

SnaiperoG3D avatar Feb 21 '24 12:02 SnaiperoG3D

I tried this in 2021 and the 'disable' option becomes grayed out, with no option to 'enable'. There's also no errors thrown. Might be a Unity version bug? I'll try on 2022 another time,

FirstGearGames avatar Apr 04 '24 01:04 FirstGearGames

I could not replicate in 2023.3.5f either. I'm still getting the unusual no Enable option. If you can show me where all the errors are though I can probably wrap them in defines.

FirstGearGames avatar Apr 08 '24 00:04 FirstGearGames

Your button is gray just because there is a dependency which uses Physics2D, click on Physics2D, open Dependencies and youll see that there is a Tilemap package, which uses Physics2D and enable it automatic, just disable Tilemap package and it will disable force enabled Physics2D package, then you will have errors in Fish. Same process for Physics where 5 dependencies, you need to disable all dependencies, and Physics itself for completelly disable Physics, then you will have same errors for Physics.

PS there is a chain icon on left side of package name, says that package disabled but force enabled because have dependencies.

SnaiperoG3D avatar Apr 08 '24 12:04 SnaiperoG3D