s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Supershot
Released
Take better Screenshots inside the editor with Discord WebHook Support!
by SubZero Studios library
updated 2 months ago
207.9KB
thumb_up_alt9 thumb_down_alt0 favorite8 library_books2
homeDetailsreviewsReview1codeSource
folder.obj
description__compiler_extra.cs
folderEditor
folderDiscord
descriptionDiscordWebhook.cs
folderPanels
descriptionCapturePanel.cs
descriptionDocumentCanvas.cs
descriptionEditPanel.cs
descriptionGalleryPanel.cs
descriptionPreviewPanel.cs
descriptionSettingsPanel.cs
descriptionSharePanel.cs
descriptionSuperShotUI.cs
descriptionFramingTool.cs
descriptionMessagePromptDialog.cs
descriptionSuperShotCapture.cs
descriptionSuperShotContext.cs
descriptionSuperShotDocument.cs
descriptionSuperShotEdit.cs
descriptionSuperShotFilterExport.cs
descriptionSuperShotMenu.cs
descriptionSuperShotPostFx.cs
descriptionSuperShotService.cs
descriptionSuperShotSettings.cs
descriptionSuperShotWindow.cs
folderUnitTests
descriptionLibraryTest.cs
descriptionUnitTest.cs
UnitTests/LibraryTest.cs

Unit test class for the library. Creates a Scene, pushes it to the scene stack, creates a GameObject and asserts the scene directory reports one GameObject.

using Sandbox;

[TestClass]
public partial class LibraryTests
{
	[TestMethod]
	public void SceneTest()
	{
		var scene = new Scene();
		using ( scene.Push() )
		{
			var go = new GameObject();

			Assert.AreEqual( 1, scene.Directory.GameObjectCount );
		}
	}

}
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter