Skip to content

Instantly share code, notes, and snippets.

View IJEMIN's full-sized avatar

I_Jemin IJEMIN

View GitHub Profile
@IJEMIN
IJEMIN / ForceReserializeAssets.cs
Created May 2, 2024 06:18
Force Update Unity Projects inside folder
using UnityEditor;
public class ForceReserializeAssets
{
[UnityEditor.MenuItem("Tools/Force Reserialize Assets")]
public static void Reserialize()
{
AssetDatabase.ForceReserializeAssets();
}
}
@IJEMIN
IJEMIN / ExportPackage.cs
Created December 3, 2017 10:08
Unity Export Package with Tag and Layers and Input Settings
// 단순 유니티 패키지 제작용 스크립트
using UnityEngine;
using System.Collections;
using UnityEditor;
public static class ExportPackage {
@IJEMIN
IJEMIN / BuildHelper.cs
Last active February 13, 2024 07:43
Unity Build Settings (Keystore, Alias Password) Quick Load Window Script. Put this in Editor Folder.
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.Build.Content;
using UnityEngine;
using UnityEngine.Serialization;
public class BuildHelper : EditorWindow
{
@IJEMIN
IJEMIN / UnityShadersCheatSheet.shader
Created September 24, 2019 15:24 — forked from Split82/UnityShadersCheatSheet.shader
Unity Shaders Cheat Sheet
Shader "Name" {
Properties {
_Name ("display name", Range (min, max)) = number
_Name ("display name", Float) = number
_Name ("display name", Int) = number
_Name ("display name", Color) = (number,number,number,number)
_Name ("display name", Vector) = (number,number,number,number)
@IJEMIN
IJEMIN / GoogleTranslatorWithAuth.cs
Last active February 11, 2024 07:01
Unity GoogleTranslator with Google Translation API V2
// This is paid service version of Unity Google Translator script https://gist.github.com/IJEMIN/a48f8f302190044de05e3e3fea342fbd
using System;
using System.Collections;
using System.Collections.Generic;
using SimpleJSON;
using UnityEngine;
using UnityEngine.Networking;
public class GoogleTranslatorWithAuth : MonoBehaviour
@IJEMIN
IJEMIN / NavMeshUtil.cs
Created August 20, 2018 14:08
Get Random Position on NavMesh in Unity
using UnityEngine.AI;
using UnityEngine;
public static class NavMeshUtil {
// Get Random Point on a Navmesh surface
public static Vector3 GetRandomPoint(Vector3 center, float maxDistance) {
// Get Random Point inside Sphere which position is center, radius is maxDistance
Vector3 randomPos = Random.insideUnitSphere * maxDistance + center;
@IJEMIN
IJEMIN / PlayCloudDataManager.cs
Last active November 7, 2023 12:08
Unity Google Cloud Saved Game Data Manager Script
// code reference: http://answers.unity3d.com/questions/894995/how-to-saveload-with-google-play-services.html
// you need to import https://github.com/playgameservices/play-games-plugin-for-unity
using UnityEngine;
using System;
using System.Collections;
//gpg
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using GooglePlayGames.BasicApi.SavedGame;
//for encoding
@IJEMIN
IJEMIN / UnityPackageBatchUpdate.cs
Last active October 14, 2023 19:57
Batch update all installed unity packages in the project
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.PackageManager.Requests;
using UnityEditor.PackageManager;
using UnityEngine;
using Unity.EditorCoroutines.Editor;
namespace Unity.Editor.Example
@IJEMIN
IJEMIN / .gitignore
Last active September 15, 2023 10:59
Unity + Rider gitignore
# Created by https://www.gitignore.io/api/unity
# Edit at https://www.gitignore.io/?templates=unity
# Jetbrain Rider Cache
.idea/
Assets/Plugins/Editor/JetBrains*
# Visual Studio Code
.vscode/
@IJEMIN
IJEMIN / GoogleTranslator.cs
Last active September 13, 2023 06:51
Simple Unity Google Translator
/* Credit */
// Inspired by grimmdev's code - https://gist.github.com/grimmdev/979877fcdc943267e44c
/* Dependency */
// Import SimpleJSON Scripts : http://wiki.unity3d.com/index.php/SimpleJSON
// You can use your own JSON Parser if you want.
/* Limitations */
// translate.googleapis.com is free, but it only allows about 100 requests per one hour.
// After that, you will receive 429 error response.