Skip to content

Instantly share code, notes, and snippets.

View ibra's full-sized avatar
🧡

ibrahim hisham ibra

🧡
View GitHub Profile
@FleshMobProductions
FleshMobProductions / ReplaceSceneObjectsWithPrefabWindow.cs
Created July 14, 2021 15:41
Replace Scene Objects With Prefab (Unity Editor Tool) - Define filter criteria for objects to select, such as what attached component types they need to have or which tag they need to have, then replace them with a prefab instance of choice
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.SceneManagement;
using System.Linq;
namespace FMPUtils.Editor
{
public class ReplaceSceneObjectsWithPrefabWindow : EditorWindow
{
@ibra
ibra / CameraShake.cs
Last active December 6, 2020 13:16
Unity Camera Shake
using UnityEngine;
namespace IbraUtils.CameraShaking
{
/// <summary>
/// A simple camera shake script. Just call CameraShake.ShakeOnce()
/// </summary>
public class CameraShake : MonoBehaviour
{
@luisparravicini
luisparravicini / GizmosExtensions.cs
Created August 1, 2020 11:23
Method to draw an arc with Unity's Gizmos
using UnityEngine;
public class GizmosExtensions
{
private GizmosExtensions() { }
/// <summary>
/// Draws a wire arc.
/// </summary>
/// <param name="position"></param>
@DGoodayle
DGoodayle / RadialLayout.cs
Created September 16, 2015 13:48
Radial Layouts in Unity
using UnityEngine;
using UnityEngine.UI;
/*
Radial Layout Group by Just a Pixel (Danny Goodayle) - http://www.justapixel.co.uk
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell