Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Namespcae not found

Discussion in 'Unity Hub' started by INDgod, Oct 16, 2022.

  1. INDgod

    INDgod

    Joined:
    Oct 16, 2022
    Posts:
    5
    I followed this grappling video and i think my script matches his the names are the same so im not sure what the issue is. error sc0246 private PlayerMovementGrappling pm; Screenshot (3).png
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,462
    Paste the full error. This isn't helpful
     
  3. timmyparker21

    timmyparker21

    Joined:
    Oct 15, 2022
    Posts:
    2
    (8,13) error cs 0246 the type of namespace PlayerMovementGrappling could not be found(are u missing directive or an assembly reference
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,462
    Do you have a script called PlayerMovementGrappling?
    If not, then it indeed can't have a reference to one
     
  5. INDgod

    INDgod

    Joined:
    Oct 16, 2022
    Posts:
    5
    i tried renaming the script to that but no dice
     
  6. INDgod

    INDgod

    Joined:
    Oct 16, 2022
    Posts:
    5
    i make the script then it says RayCast Hit has no reference?
     
  7. INDgod

    INDgod

    Joined:
    Oct 16, 2022
    Posts:
    5
    turns out i had other errors but i fixed them. gonna try and set everything back up
     
    DevDunk likes this.
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,462
    Good. Next time if you follow a guide do exactly what it does. You probably missed something