Hey,
I try to spawn fog under players. (assets/content/effects/materials/fog/fog_wall.prefab) or (assets/bundled/prefabs/fx/smoke/generator_smoke.prefab) but this always puts out: "Tried to spawn an effect without a EffectRecycle component ."
I tried:
string prefab = "assets/content/effects/materials/fog/fog_wall.prefab";
var effect = new Effect();
effect.Init(Effect.Type.Generic, player.transform.position, Vector3.zero);
effect.pooledString = prefab;
EffectNetwork.Send(effect, player.net.connection);But this isnt working. Do you have any idea by any chance.
The data i have is BasePlayer from a player since this is a timer that loops the online players.
Can someone help me out if possible it would be nice if it can stay attached to a player if not than that is no problem.
Or manipulating fog to become full white is also fine but cant seem to find a way to do that.