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.
  2. Dismiss Notice

error CS0101: The namespace `global::' already contains a definition for `ThirdPersonCamera'

Discussion in 'Scripting' started by castana1962, Jul 20, 2018.

  1. castana1962

    castana1962

    Joined:
    Apr 10, 2013
    Posts:
    400
    Hi All
    I am trying an Unity VR example and I got this error

    Assets/UnityChan/Scripts/ThirdPersonCamera.cs(10,14): error CS0101: The namespace `global::' already contains a definition for `ThirdPersonCamera'

    For it, Could anybody help me to fix this one?
    Thanks in advance
    Alejandro
     
    Subhi77 likes this.
  2. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    It has been defined twice. Either you imported it twice to different locations or you have imported assets that by chance contain a class with the same name. Just search the project for classes of that name.
     
  3. ahmedaniss

    ahmedaniss

    Joined:
    Sep 18, 2019
    Posts:
    98
    Problem Fixed here :