NetworkBreakObject
Jump To Parameters
Jump To Function Definitions
Parameter Definitions
Select the parameter name from below to jump directly to it on this page.
dropPoint
dropPrefab
holder
prefabName
syncCrossScenes
dropPoint
Used by ‘DropObject’ function. Will drop the networked object at this position and rotation
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | Transform | null |
dropPrefab
Whether or not you want to drop a network prefab from the ‘Resources’ folder when this is broken.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | bool | false |
holder
The object to track the position of.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | Transform | null |
prefabName
The name of the prefab that lives in the resources folder that you want to drop.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | string | ”” |
syncCrossScenes
Whether or not you want to sync the break object action across unity scenes.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | bool | true |
Function Definitions
Select the function name from below to jump directly to it on this page.
BreakObject
DropObject
SceneBreak
public virtual void BreakObject()
Will sent the
SceneBreakfunction andBroadcastDatafucntion to everyone that enters this photon room that joins the photon session. This makes it a persistant action that spans across all Unity scenes.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters
protected virtual void DropObject()
Calls the
NetworkInstantiatePersistantPrefabfrom the NetworkManager to instantiate a prefab from theResourcesfolder for everyone in the Photon room.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
public virtual void SceneBreak()
Sends the
SendNetworkBreakObjectRPC as buffered to everyone, including yourself. (Breaks the object)
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters