MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / InitProject

Method InitProject

Source/Editor/Editor.cs:632–660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

630 }
631
632 private void InitProject()
633 {
634 // Initialize empty project with default game configuration
635 Log("Initialize new project");
636 var project = GameProject;
637 var gameSettings = new GameSettings
638 {
639 ProductName = project.Name,
640 CompanyName = project.Company,
641 };
642 GameSettings.Save(gameSettings);
643 GameSettings.Save(new TimeSettings());
644 GameSettings.Save(new AudioSettings());
645 GameSettings.Save(new PhysicsSettings());
646 GameSettings.Save(new LayersAndTagsSettings());
647 GameSettings.Save(new InputSettings());
648 GameSettings.Save(new GraphicsSettings());
649 GameSettings.Save(new NetworkSettings());
650 GameSettings.Save(new NavigationSettings());
651 GameSettings.Save(new LocalizationSettings());
652 GameSettings.Save(new BuildSettings());
653 GameSettings.Save(new StreamingSettings());
654 GameSettings.Save(new WindowsPlatformSettings());
655 GameSettings.Save(new LinuxPlatformSettings());
656 GameSettings.Save(new AndroidPlatformSettings());
657 GameSettings.Save(new MacPlatformSettings());
658 GameSettings.Save(new iOSPlatformSettings());
659 GameSettings.Save(new WebPlatformSettings());
660 }
661
662 internal void OnPlayBeginning()
663 {

Callers

nothing calls this directly

Calls 2

LogFunction · 0.50
SaveMethod · 0.45

Tested by

no test coverage detected