Tanoda
GILES.Serialization.pb_SceneNode Class Reference
Inheritance diagram for GILES.Serialization.pb_SceneNode:

Public Member Functions

 pb_SceneNode ()
 
 pb_SceneNode (SerializationInfo info, StreamingContext context)
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 
 pb_SceneNode (GameObject root)
 
GameObject ToGameObject ()
 

Static Public Member Functions

static operator GameObject (pb_SceneNode node)
 

Public Attributes

string name
 
string hash
 
string rename
 
pb_Transform transform
 
Vector3 localPos
 
object convex
 
object trigger
 
ChangedTextureHolder changedTexture
 
List< pb_SceneNodechildren
 
pb_MetaData metadata
 
List< pb_ISerializablecomponents
 

Detailed Description

Represents a GameObject in a scene. GameObjects and components are not implemented as JsonConverters because of the way they're reconstructed when deserializing - if they were converters it would require serializing the parents and children as properties which would be messy when rebuilding.

Definition at line 17 of file pb_SceneNode.cs.

Constructor & Destructor Documentation

◆ pb_SceneNode() [1/3]

GILES.Serialization.pb_SceneNode.pb_SceneNode ( )

Parameterless constructor. Use only for deserialization.

Definition at line 37 of file pb_SceneNode.cs.

◆ pb_SceneNode() [2/3]

GILES.Serialization.pb_SceneNode.pb_SceneNode ( SerializationInfo  info,
StreamingContext  context 
)

Deserialization constructor.

Definition at line 42 of file pb_SceneNode.cs.

◆ pb_SceneNode() [3/3]

GILES.Serialization.pb_SceneNode.pb_SceneNode ( GameObject  root)

Recursively build a scene graph using root as the root node.

Definition at line 239 of file pb_SceneNode.cs.

Member Function Documentation

◆ GetObjectData()

void GILES.Serialization.pb_SceneNode.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Serialize object data.

Definition at line 97 of file pb_SceneNode.cs.

◆ operator GameObject()

static GILES.Serialization.pb_SceneNode.operator GameObject ( pb_SceneNode  node)
explicitstatic

Definition at line 366 of file pb_SceneNode.cs.

◆ ToGameObject()

GameObject GILES.Serialization.pb_SceneNode.ToGameObject ( )

Convert this node into a GameObject.

Definition at line 324 of file pb_SceneNode.cs.

Member Data Documentation

◆ changedTexture

ChangedTextureHolder GILES.Serialization.pb_SceneNode.changedTexture

Definition at line 26 of file pb_SceneNode.cs.

◆ children

List<pb_SceneNode> GILES.Serialization.pb_SceneNode.children

Definition at line 27 of file pb_SceneNode.cs.

◆ components

List<pb_ISerializable> GILES.Serialization.pb_SceneNode.components

Definition at line 30 of file pb_SceneNode.cs.

◆ convex

object GILES.Serialization.pb_SceneNode.convex

Definition at line 24 of file pb_SceneNode.cs.

◆ hash

string GILES.Serialization.pb_SceneNode.hash

Definition at line 20 of file pb_SceneNode.cs.

◆ localPos

Vector3 GILES.Serialization.pb_SceneNode.localPos

Definition at line 23 of file pb_SceneNode.cs.

◆ metadata

pb_MetaData GILES.Serialization.pb_SceneNode.metadata

Definition at line 29 of file pb_SceneNode.cs.

◆ name

string GILES.Serialization.pb_SceneNode.name

Definition at line 19 of file pb_SceneNode.cs.

◆ rename

string GILES.Serialization.pb_SceneNode.rename

Definition at line 21 of file pb_SceneNode.cs.

◆ transform

pb_Transform GILES.Serialization.pb_SceneNode.transform

Definition at line 22 of file pb_SceneNode.cs.

◆ trigger

object GILES.Serialization.pb_SceneNode.trigger

Definition at line 25 of file pb_SceneNode.cs.


The documentation for this class was generated from the following file: