Skip to content

Instantly share code, notes, and snippets.

@cemkoker
cemkoker / TerrainBaker.cs
Last active August 17, 2023 05:34
Bakes the terrain into a TVE colormap (requires AllTerrainTextures & The Vegetation engine assets)
using UnityEngine;
using AmazingAssets.AllTerrainTextures;
#if THE_VEGETATION_ENGINE
using TheVegetationEngine;
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
@cemkoker
cemkoker / SceneTools.cs
Last active May 12, 2023 11:08
Unity script to place player in center of the screen
// Focuses on player in Scene view (a game Object with Tag "Player" is mandatory) by pressing "G" key
// Pressing Command-G, places the placer in the center of the scene (by raycasting forward)
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class SceneTools
{
@cemkoker
cemkoker / settings.json
Created January 17, 2022 15:59
VSCode settings.json for Unity (V3)
"workbench.startupEditor": "none",
"omnisharp.path": "latest",
"omnisharp.useGlobalMono": "always",
"diffEditor.ignoreTrimWhitespace": false,
"workbench.tree.indent": 16,
"editor.codeLens": false,
"explorer.confirmDelete": false,
"window.zoomLevel": 1,
"powermode.enabled": false,
"files.exclude": {
@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,