.data_start
.export newVariable
__instance_0: %VRCSDKBaseVRCPlayerApi, null
__teleportPos_0: %UnityEngineVector3, null
__teleportRot_0: %UnityEngineQuaternion, null
onPlayerTriggerEnterPlayer: %VRCSDKBaseVRCPlayerApi, null
__instance_1: %UnityEngineTransform, this
__instance_2: %UnityEngineTransform, this
newVariable: %UnityEngineTransform, this
.data_end
.code_start
.export _onPlayerTriggerEnter
_onPlayerTriggerEnter:
PUSH, onPlayerTriggerEnterPlayer
PUSH, __instance_0
COPY
PUSH, newVariable
PUSH, __instance_1
COPY
PUSH, __instance_1
PUSH, __teleportPos_0
EXTERN, "UnityEngineTransform.__get_position__UnityEngineVector3"
PUSH, newVariable
PUSH, __instance_2
COPY
PUSH, __instance_2
PUSH, __teleportRot_0
EXTERN, "UnityEngineTransform.__get_rotation__UnityEngineQuaternion"
PUSH, __instance_0
PUSH, __teleportPos_0
PUSH, __teleportRot_0
EXTERN, "VRCSDKBaseVRCPlayerApi.__TeleportTo__UnityEngineVector3_UnityEngineQuaternion__SystemVoid"
JUMP, 0xFFFFFFFC
.code_end
this is my code…
Destroying GameObjects immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead.
UnityEngine.Object:DestroyImmediate (UnityEngine.Object)
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:IdentifyDontDestroyOnLoadHandle ()
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:IsBlacklistedGameObject (UnityEngine.GameObject)
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:FilterBlacklisted<UnityEngine.Transform> (UnityEngine.Transform&)
VRC.Udon.Wrapper.Modules.ExternUnityEngineTransform:__get_position__UnityEngineVector3 (VRC.Udon.Common.Interfaces.IUdonHeap,System.Span1<uint>) VRC.Udon.VM.UdonVM:Interpret () VRC.Udon.UdonBehaviour:RunProgram (uint) (at ./Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:1029) VRC.Udon.UdonBehaviour:RunEvent<UnityEngine.Collider> (string,System.ValueTuple
2<string, UnityEngine.Collider>) (at ./Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:1273)
VRC.Udon.UdonBehaviour:OnTriggerEnter (UnityEngine.Collider) (at ./Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:820)
this is the error im encountering when i enter in playmode to test the behavior and it crashes the play mode as soon as i trigger the collider