Photon Unity Networking 2 2.45

Public Types | Public Attributes | List of all members
OnClickInstantiate Class Reference

Instantiates a networked GameObject on click. More...

Inherits MonoBehaviour, and IPointerClickHandler.

Public Types

enum  InstantiateOption
 

Public Attributes

PointerEventData.InputButton Button
 
KeyCode ModifierKey
 
GameObject Prefab
 

Detailed Description

Instantiates a networked GameObject on click.

Gets OnClick() calls by Unity's IPointerClickHandler. Needs a PhysicsRaycaster on the camera. See: https://docs.unity3d.com/ScriptReference/EventSystems.IPointerClickHandler.html