SurfaceManager.SpawnEffect without Raycast hit?

nathanj

Active member
Is it possible to use the Surface Manager Spawn Effect to instantiate an effect without using a raycast hit?

Basically, I'd like to use the existing effect but place effects at specific locations.

Thanks,
Nathan
 
Unfortunately not based on its current implementation. SurfaceManager.SpawnEffect uses the RaycastHit for a lot of different things, such as determining the position & normal of where to spawn the object/s, the position of the audio, etc. You can follow the code in SurfaceManager.SpawnEffectInternal to get a better idea of what I mean.

@Justin would know more about this, but I'm pretty sure it's not viable for this to change in a future update unfortunately. You might be better off creating your own implementation.
 
Yeah, I kind of figured that and think I have a solution for what I was originally looking for.
thanks for the answer.
Nathan
 
Top