© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
Black IN Italian

Unity MonoBehaviour and Photon Confusion

I don't know how to program, but I'm trying to get an old Unity mobile game to run that seems to have used aspects of Photon.
using UnityEngine;

namespace Photon
{
    public class MonoBehaviour : MonoBehaviour
    {
    }
}
using UnityEngine;

namespace Photon
{
    public class MonoBehaviour : MonoBehaviour
    {
    }
}

This seems to be where most of the errors are coming from, and it's effecting code like:
using Photon;
using UnityEngine;

public class ShowInfoOfPlayer : MonoBehaviour
{
    public float CharacterSize;
    public Font font;
    public bool DisableOnOwnObjects;
}
using Photon;
using UnityEngine;

public class ShowInfoOfPlayer : MonoBehaviour
{
    public float CharacterSize;
    public Font font;
    public bool DisableOnOwnObjects;
}

Everything is either a Circular Base Class Dependency issue or an Ambiguous Reference in the monobehaviours.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Add MonoBehaviour to object through script UNITY
C#CC# / help
4y ago
❔ How to create class like MonoBehaviour from Unity
C#CC# / help
3y ago
✅ IIS and Katana confusion
C#CC# / help
13mo ago
Unity and me dum
C#CC# / help
2y ago