Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Third Party Photon callback and Instantiate in the same class

Discussion in 'Multiplayer' started by ThySpektre, May 12, 2019.

  1. ThySpektre

    ThySpektre

    Joined:
    Mar 15, 2016
    Posts:
    362
    I need to use a Photon callback OnPhotonCustomRoomPropertiesChanged()

    To get this functionality, my class inherits from PunBehavior. When I do this, I lose Instantiate.

    However, i want my class to also Object.Instantiate objects (not Photon,Instantiate).

    Is there anyway to get both functionalities in the same class?
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,062
    How so? Anything should be inherited?
     
  3. ThySpektre

    ThySpektre

    Joined:
    Mar 15, 2016
    Posts:
    362
    Strange. This had been a problem all weekend, now working fine today.