Skip to content

Instantly share code, notes, and snippets.

@omid3098
omid3098 / GrabScreenFeature.cs
Created April 23, 2022 14:07 — forked from Refsa/GrabScreenFeature.cs
Unity URP custom grab pass
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class GrabScreenFeature : ScriptableRendererFeature
{
[System.Serializable]
public class Settings
@omid3098
omid3098 / ObjectActivationSwitch.cs
Created February 3, 2022 16:25
A tiny little editor window to switch objects activation state
/*
Copyright (c) 2022 Omid Saadat
Licensed under the MIT License (Do whatevever you want with this!);
*/
using UnityEngine;
using UnityEditor;
public class ObjectActivationSwitch : EditorWindow
{
[MenuItem("LeMoonade/ObjectActivationSwitch")]
@omid3098
omid3098 / .vimrc
Created September 7, 2019 20:56
.vimrc For OmniSharp and Unity development
" Plugins:
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdtree'
Plug 'OmniSharp/omnisharp-vim'
Plug 'dense-analysis/ale'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'edkolev/tmuxline.vim'
@omid3098
omid3098 / LuaBehaviour.cs
Created November 17, 2018 10:31
A Complete LuaBehaviour to use with xLua in unity
/*
* Modified by Omid Saadat
*
* Tencent is pleased to support the open source community by making xLua available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
@omid3098
omid3098 / EyeFollow.cs
Last active March 19, 2019 11:07
Simple eye follow for unity using DoTween for blink (you can comment them if you dont want to blink with tween)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class EyeFollow : MonoBehaviour
{
[SerializeField] Transform[] insideEyes;
[SerializeField] float EyeRadius;
[SerializeField] int updateInterval = 3;
@omid3098
omid3098 / .gitignore
Created June 12, 2017 09:32
Unity + vscode .gitignore
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
/.vs/