2D-Character-Controller icon indicating copy to clipboard operation
2D-Character-Controller copied to clipboard

Says i have to fix errors but i have the exact cod pasted onto the script

Open ThothDev opened this issue 3 years ago • 1 comments

It tells me to fix compile errors some examples of these errors are Assets\CharacterController2d.cs(11,37): warning CS0649: Field 'CharacterController2D.m_WhatIsGround' is never assigned to, and will always have its default value, Assets\CharacterController2d.cs(13,37): warning CS0649: Field 'CharacterController2D.m_CeilingCheck' is never assigned to, and will always have its default value null, Assets\CharacterController2d.cs(14,38): warning CS0649: Field 'CharacterController2D.m_CrouchDisableCollider' is never assigned to, and will always have its default value null, Assets\CharacterController2d.cs(12,37): warning CS0649: Field 'CharacterController2D.m_GroundCheck' is never assigned to, and will always have its default value null, and Should not be capturing when there is a hotcontrol UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&). Please help me

ThothDev avatar Sep 13 '20 00:09 ThothDev

@ThothDev you still receiving the same errors? These errors will occur when the 'Ground Check' and 'Ceiling Check' attributes have not been set here. Once you have set this attributes, those errors should be resolved. So, just ensure that these attributes have been set.

image

markstonehouse avatar Feb 03 '21 22:02 markstonehouse