#Spawning Objects through a Scriptable Object

3 messages · Page 1 of 1 (latest)

steel wasp
#

I heard when you create a ScriptableObject you don't want to make the script derive of both MonoBehaviour (In this cause I'd use NetworkBehaviour) and Scriptable Object? If that is the case how would I spawn an Object that a ScriptableObject is holding? 👀 hmm Or am I completely wrong

strange atlas
#

Well i never saw a ScriptableObject as NB or Mono. And for sure it cant be a NB since it required a gameobject and the depending NetworkObject which exist on the GameObject.
You would normally spawn your prefab and depending on the sync you want archive you make it a SyncVar, send it over a Rpc or you might create your own SyncObject to prevent recreation or copy of a new ScriptableObject.

steel wasp
#

@strange atlas Not gonna lie I just figured that out Prayge But thanks again for that