s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Supershot
Released
Take better Screenshots inside the editor with Discord WebHook Support!
by SubZero Studios library
updated Today
207.9KB
thumb_up_alt8 thumb_down_alt0 favorite7 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 );
		}
	}

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