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
UI Pro
Released
Create UI in the editor, without code.
by lilboi library
updated 3 months ago
97KB
thumb_up_alt1 thumb_down_alt0 favorite1 library_books0
homeDetailsnewspaperNewsreviewsReviewcodeSource
folder.obj
description__compiler_extra.cs
folderCode
folderExample
descriptionExampleButtonController.cs
descriptionExampleMouseEnabler.cs
folderUiPro
descriptionButton.cs
descriptionImageNode.cs
descriptionNode.cs
descriptionNodeComponent.cs
descriptionPointerInterfaces.cs
descriptionTextNode.cs
descriptionUiCanvas.cs
descriptionUiInputSystem.cs
folderExample
descriptionExampleButtonController.cs
descriptionExampleMouseEnabler.cs
folderUiPro
descriptionButton.cs
descriptionImageNode.cs
descriptionNode.cs
descriptionNodeComponent.cs
descriptionPointerInterfaces.cs
descriptionTextNode.cs
descriptionUiCanvas.cs
descriptionUiInputSystem.cs
Code/Example/ExampleMouseEnabler.cs

A small Sandbox component that makes the mouse cursor visible when the component starts. It overrides OnStart and sets Mouse.Visibility to Visible.

Native Interop
namespace Sandbox;

// Just makes the mouse visible so you can click stuff
public class ExampleMouseEnabler : Component
{
	protected override void OnStart()
	{
		Mouse.Visibility = MouseVisibility.Visible;
	}
}
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter