C# Class FullInspector.BaseNetworkBehavior

Provides a better inspector and serialization experience in Unity.
We don't serialize anything in this type through Json.NET, as we recover the Json.NET serialized data via Unity serialization
Inheritance: NetworkBehaviour, ISerializedObject, ISerializationCallbackReceiver
Exibir arquivo Open project: jacobdufault/fullinspector

Private Properties

Property Type Description
BaseNetworkBehavior System.Collections.Generic
ISerializationCallbackReceiver void
RestoreState void
SaveState void

Protected Methods

Method Description
Awake ( ) : void

This awake base method calls RestoreState() by default. If you override this method, it is *critically* important that this be the first call made in your Awake method. If it is not, then your component may not be deserialized when you go to access values.

OnValidate ( ) : void

This base method ensures that the object is fully deserialized before running actual validation code.

Private Methods

Method Description
BaseNetworkBehavior ( ) : System.Collections.Generic
ISerializationCallbackReceiver ( ) : void
RestoreState ( ) : void
SaveState ( ) : void

Method Details

Awake() protected method

This awake base method calls RestoreState() by default. If you override this method, it is *critically* important that this be the first call made in your Awake method. If it is not, then your component may not be deserialized when you go to access values.
protected Awake ( ) : void
return void

OnValidate() protected method

This base method ensures that the object is fully deserialized before running actual validation code.
protected OnValidate ( ) : void
return void