-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom InnerNetObjects #92
base: master
Are you sure you want to change the base?
Conversation
i just dont get the InnerNetObject attribute, it seems really unecessary since this can be done by checking subtypes in the assembly |
I think example class should be an actual simple example of what you can do with this instead of just a stub. |
The first reason is do to the issue with abstract monobehaviors and compiling it into il2cpp, second reason is I feel like it's more consistent using a attribute as the original class with Reactor, now I'm probably going to change the method of loading the prefab for it. If y'all really want it to just be a custom subclass then I'll rework the logic. |
Replaced InnerNetObjectAttribute with IgnoreInnerNetObjectAttribute, now automatically registers InnerNetObjects. Added more methods to load prefab.
I've added some changes. |
Introducing Custom InnerNetObjects
This PR introduces a set of improvements to make working with custom
InnerNetObject
easier, and more intuitive. The changes include:Comprehensive XML Documentation:
InnerNetObject
prefabs.Utility Methods for Prefab Handling:
GetNetObjPrefab<T>
,SpawnNewNetObject<T>
, andSpawnNetObject
to simplify the process of retrieving, instantiating, and spawning customInnerNetObject
prefabs.Key Changes:
1.
GetNetObjPrefab<T>
InnerNetObject
of typeT
.2.
SpawnNewNetObject<T>
InnerNetObject
locally and on the network of type "T".3.
SpawnNetObject<T>
(Extension Method)InnerNetObject
instance on the network.