Pages 1
Universal Fighting Engine Forum We are no longer using the forum to answer questions due to bot attacks. Please use our discord instead: https://discord.gg/hGMZhF7 |
You are not logged in. Please login or register.
Universal Fighting Engine Forum → General → Some particles lag the game
Under Network Options -> Particle Control, disable "Control Spawned Particles".
Okay, new problem with disable Control spawned particle. Some particle effects crashed game with error:
MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.get_name () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
UFE.DestroyGameObject (UnityEngine.GameObject gameObject, System.Nullable`1[T] destroyTimer) (at Assets/UFE/Engine/Scripts/Core/Manager/UFE.cs:2105)
UFE3D.ProjectileMoveScript.ProjectileHit () (at Assets/UFE/Engine/Scripts/Core/Physics/ProjectileMoveScript.cs:381)
UFE3D.ProjectileMoveScript.IsCollidingCharacter (ControlsScript opControlsScript) (at Assets/UFE/Engine/Scripts/Core/Physics/ProjectileMoveScript.cs:326)
UFE3D.ProjectileMoveScript.UFEFixedUpdate () (at Assets/UFE/Engine/Scripts/Core/Physics/ProjectileMoveScript.cs:284)
UFE3D.MrFusion.UpdateBehaviours () (at Assets/UFE/Engine/Scripts/Core/Network/Netcode/MrFusion.cs:50)
UFE3D.MatchManager.UpdateInstantiatedObjects (System.Int64 currentFrame) (at Assets/UFE/Engine/Scripts/Core/Manager/MatchManager.cs:263)
UFE3D.MatchManager.UpdateMatchState (System.Int64 currentFrame, System.Collections.Generic.IDictionary`2[TKey,TValue] player1PreviousInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] player1CurrentInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] player2PreviousInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] player2CurrentInputs) (at Assets/UFE/Engine/Scripts/Core/Manager/MatchManager.cs:35)
UFE3D.GameManager.UpdateGameState (System.Int64 currentFrame) (at Assets/UFE/Engine/Scripts/Core/Manager/GameManager.cs:153)
UFE3D.GameManager.DoFixedUpdate () (at Assets/UFE/Engine/Scripts/Core/Manager/GameManager.cs:17)
UFE.FixedUpdate () (at Assets/UFE/Engine/Scripts/Core/Manager/UFE.cs:1734)
Can I somehow set particle effects to avoid this error?
Edit:
I disabled Auto destruct script in CFX Particles. Now it works properly.
Universal Fighting Engine Forum → General → Some particles lag the game
Powered by PunBB, supported by Informer Technologies, Inc.