C# Class RemoteTech.NetworkRenderer

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

Méthodes publiques

Свойство Type Description
smallStationHead GUIStyle
smallStationText GUIStyle

Méthodes publiques

Méthode Description
CreateAndAttach ( ) : NetworkRenderer
Detach ( ) : void
OnDestroy ( ) : void
OnGUI ( ) : void
OnPreCull ( ) : void

Private Methods

Méthode 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 méthode

public static CreateAndAttach ( ) : NetworkRenderer
Résultat NetworkRenderer

Detach() public méthode

public Detach ( ) : void
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

OnPreCull() public méthode

public OnPreCull ( ) : void
Résultat void

Property Details

smallStationHead public_oe property

public GUIStyle smallStationHead
Résultat GUIStyle

smallStationText public_oe property

public GUIStyle smallStationText
Résultat GUIStyle