Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

UniverseModel

From Kerbal Space Program 2 Modding Wiki
Revision as of 18:48, 31 May 2023 by Spacewarp>ShadowDev (UniverseModel stuff)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

the UniverseModel contains everything that the game knows about.


How to get a Vessel by name using UniverseModel VesselComponent vesselMovedComponent = GameManager.Instance.Game.UniverseModel.GetAllVessels().Where((vessel) => vessel.Name == "Vessel Name Here").First();