C
C#2y ago
Elmishh

❔ ✅ thousands of lines of NullReferenceExeption in logs

heres the code im trying to mod gorilla tag with the mod template
16 Replies
Elmishh
ElmishhOP2y ago
the only log i get is "cube created" from besides exeptions
Debug.Log("cube created");
Debug.Log("cube created");
Thinker
Thinker2y ago
Where are you getting the exception(s)?
Elmishh
ElmishhOP2y ago
wdym
Thinker
Thinker2y ago
what line does it say the exception occurs at
Elmishh
ElmishhOP2y ago
Elmishh
ElmishhOP2y ago
does that help?
Thinker
Thinker2y ago
Looks like it occurs in native Unity code...?
Elmishh
ElmishhOP2y ago
?
Thinker
Thinker2y ago
Try debugging your project and seeing if anything is null
Elmishh
ElmishhOP2y ago
and how do i debug it?
Elmishh
ElmishhOP2y ago
i have no idea what im doing right now
ThatDaniel
ThatDaniel2y ago
GorillaLocomotion.Player.Instance.rightHandFollower.transform looks like this is null
Elmishh
ElmishhOP2y ago
id be surprised if thats a null considering i got it from one of the more well known mod creators
ThatDaniel
ThatDaniel2y ago
well the error log is failing on get transform in Update and it's not this one Cube.transform since you have a null check on Cube so it must be the other one so rightHandFollower is null / destroyed
Elmishh
ElmishhOP2y ago
im gonna change it to
Rhand = GameObject.Find("Global/Local VRRig/Local Gorilla Player/rig/body/shoulder.R/upper_arm.R/forearm.R/hand.R/");
Rhand = GameObject.Find("Global/Local VRRig/Local Gorilla Player/rig/body/shoulder.R/upper_arm.R/forearm.R/hand.R/");
Want results from more Discord servers?
Add your server