Skip to content

Add creating of new NetworkBehaviour scripts from Create menu in Editor#851

Merged
FirstGearGames merged 4 commits into
FirstGearGames:mainfrom
Rain1950:main
Mar 14, 2025
Merged

Add creating of new NetworkBehaviour scripts from Create menu in Editor#851
FirstGearGames merged 4 commits into
FirstGearGames:mainfrom
Rain1950:main

Conversation

@Rain1950

@Rain1950 Rain1950 commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

I used this Editor scripts for a while but decided to contribute to FishNet and polish it.
This set of scripts allows creating new NetworkBehaviour scripts just like you would with MonoBehaviour. It also copies and modifies default/custom template on first launch so you don't have to change anything. Path where template is copied is open to discussion, there is a way to save it in config.xml, if that's more convenient.

obraz
Custom Project settings tab to edit script template

obraz
Create menu option to create NetworkBehaviourScript using template

Rain1950 added 4 commits March 2, 2025 22:04
Add string extension helper method & reading default template at the start
@FirstGearGames

Copy link
Copy Markdown
Owner

Very neat. Thank you for the PR!

@FirstGearGames FirstGearGames merged commit a4d9a77 into FirstGearGames:main Mar 14, 2025
FirstGearGames pushed a commit that referenced this pull request Mar 14, 2025
- Fixed Beta SyncList NullReferenceException error (#850).
- Improved List and Dictionary collection readers now take collections from caches first.
- Fixed NetworkTransform setting Rigidbody/2D interpolation to none on owners.
- Fixed server configuring NetworkTransform before there was an owner.
- Added PreciseTick(uint) constructor to generate a PreciseTick with 0 subtick value.
- Fixed ReadPayload data corruption (#855).
- Improved DebugManager inspector.
- Fixed UniversalTickSmoother conditionally providing excessively large adaptive interpolation values.
- Added Reader.ReadStringAllocated.
- Obsoleted Reader.ReadString.
- Added DebugManager Validate Rpc Lengths to verify RPCs potentially corrupting data.
- Added SceneProcessorBase.GetLastLoadedScene.
- Fixed OnStopNetwork incorrectly invoking on clientHost when object despawned for client but not yet on server.
- Added New NetworkBehaviour template menu under Fish-Networking > Configuratoin, thanks Rain1950! (#851).
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

Successfully merging this pull request may close these issues.

2 participants