Skip to content

Instantly share code, notes, and snippets.

View AsyncOperator's full-sized avatar
🎯
Focusing

Nihat Hakan Altıparmak AsyncOperator

🎯
Focusing
View GitHub Profile
@AsyncOperator
AsyncOperator / LookAtTool
Created January 21, 2023 10:11
Custom editor tool
using UnityEngine;
using UnityEditor;
using UnityEditor.EditorTools;
[EditorTool( "Look at Tool" )]
public sealed class LookAtTool : EditorTool {
private const string ICON_NAME = "ViewToolOrbit";
private GUIContent cachedIcon;
@AsyncOperator
AsyncOperator / ExtensionMethods
Last active July 15, 2022 03:21
Extension methods for Unity game development
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public static class ExtensionMethods
{
#region Transform Extensions
public static void ResetTransformation(this Transform original)
{