C# Class RemoteTech.NetworkRenderer

RemoteTech UI network render in charre of drawing connection links in tracking station or flight map scenes.
Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Public Properties

Property Type Description
smallStationHead GUIStyle
smallStationText GUIStyle

Public Methods

Method Description
CreateAndAttach ( ) : NetworkRenderer
Detach ( ) : void
OnDestroy ( ) : void
OnGUI ( ) : void
OnPreCull ( ) : void

Private Methods

Method Description
CheckColor ( BidirectionalEdge edge ) : Color
CheckVisibility ( BidirectionalEdge edge ) : bool
IsCamDistanceToWide ( UnityEngine.Vector3d loc ) : bool

Calculates the distance between the camera position and the ground station, and returns true if the distance is >= DistanceToHideGroundStations from the settings file.

IsOccluded ( UnityEngine.Vector3d loc, CelestialBody body ) : bool

Checks whether the location is behind the body Original code by regex from https://github.com/NathanKell/RealSolarSystem/blob/master/Source/KSCSwitcher.cs

NetworkRenderer ( ) : System
OnLinkAdd ( ISatellite a, NetworkLink link ) : void
OnLinkRemove ( ISatellite a, NetworkLink link ) : void
OnSatelliteUnregister ( ISatellite s ) : void
UpdateNetworkCones ( ) : void
UpdateNetworkEdges ( ) : void

Method Details

CreateAndAttach() public static method

public static CreateAndAttach ( ) : NetworkRenderer
return NetworkRenderer

Detach() public method

public Detach ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

OnPreCull() public method

public OnPreCull ( ) : void
return void

Property Details

smallStationHead public_oe property

public GUIStyle smallStationHead
return GUIStyle

smallStationText public_oe property

public GUIStyle smallStationText
return GUIStyle