Skip to content

Instantly share code, notes, and snippets.

View NBaron's full-sized avatar
🎯
Focusing

Naëm Baron NBaron

🎯
Focusing
View GitHub Profile
@NBaron
NBaron / VariablesInUnityMonoBehaviour.cs
Created November 6, 2018 11:59
How to properly declare variables in a Unity component?
using System;
using UnityEngine;
namespace awesomeCompanyName.awesomeProductName.relevantNaming
{
public class MyComponent : MonoBehaviour
{
private OtherComponent _usedOnlyByMe;
[SerializeField]