Skip to content

Instantly share code, notes, and snippets.

@cemkoker
cemkoker / settings.json
Last active November 15, 2021 16:49
Settings.json for Unity
V2 Lighter
{
"workbench.colorTheme": "Default Dark+",
"workbench.startupEditor": "none",
"git.ignoreMissingGitWarning": true,
"omnisharp.useGlobalMono": "always",
"git.ignoreLegacyWarning": true,
"diffEditor.ignoreTrimWhitespace": false,
"workbench.tree.indent": 20,
"editor.codeLens": false,
@capnslipp
capnslipp / NonDrawingGraphic.cs
Last active April 20, 2024 17:48
A UnityEngine.UI.Graphic subclass that provides only raycast targeting, skipping all drawing.
/// @creator: Slipp Douglas Thompson
/// @license: Public Domain per The Unlicense. See <http://unlicense.org/>.
/// @purpose: A UnityEngine.UI.Graphic subclass that provides only raycast targeting, skipping all drawing.
/// @why: Because this functionality should be built-into Unity.
/// @usage: Add a `NonDrawingGraphic` component to the GameObject you want clickable, but without its own image/graphics.
/// @intended project path: Assets/Plugins/UnityEngine UI Extensions/NonDrawingGraphic.cs
/// @interwebsouce: https://gist.github.com/capnslipp/349c18283f2fea316369
using UnityEngine;
using UnityEngine.UI;