Skip to content

Instantly share code, notes, and snippets.

View JustusPan's full-sized avatar
🙂
Developing Indie Game

Justus Pan JustusPan

🙂
Developing Indie Game
View GitHub Profile
@JustusPan
JustusPan / AsmdefDebug.cs
Created November 18, 2022 03:44 — forked from TheDelta/AsmdefDebug.cs
Find out what assemblies are being built and how long each takes. Updated to only build for Editor, and to include total time in first line of log output.
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using UnityEditor;
using UnityEditor.Compilation;
using UnityEngine;
/// <summary>
@JustusPan
JustusPan / EditorCollapseAll.cs
Created August 20, 2022 04:23 — forked from yasirkula/EditorCollapseAll.cs
An editor script for Unity 3D to collapse all GameObject's in Hierarchy view or to collapse all folders in Project view. See the comments section below for instructions.
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEditorInternal;
using UnityEngine.SceneManagement;
public static class EditorCollapseAll
{
private const BindingFlags INSTANCE_FLAGS = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;
@JustusPan
JustusPan / README.md
Created April 21, 2022 06:09 — forked from magnetikonline/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
@JustusPan
JustusPan / git_and_unity.md
Created March 13, 2022 16:49 — forked from Ikalou/git_and_unity.md
Git and Unity

EDIT: this is an old post and a lof the information in this document is outdated.

Using Git with Unity

Git logo

Git is a popular free and open source distributed version control system.

I am new to Unity, but as a long time git user, I wanted to use git for my

shader_type canvas_item;
uniform bool use_pallete;
uniform sampler2D pallete_texture;
uniform vec4 tint_color : hint_color = vec4(1.0);
uniform float tint_factor : hint_range(0, 1);
const float from_u = 0.25;
const float to_u = 0.75;
const float pal_size = 16f;
# 移植 Construct 3 中 Platform 的行为到 Godot
#
# 你需要
# 1.设置 body_path 指向一个 KinematicBody2D
# 2.在另外一个节点的 _physics_process 中使用 ctrl_left/ctrl_right/ctrl_jump 进行控制
#
# TODO
# - 多级跳跃
# - 默认的测试输入选项
# - 状态 "Is by wall","Is falling","Is jumping","Is moving"
@JustusPan
JustusPan / Godot Minimap.md
Created July 18, 2020 10:10 — forked from EIREXE/Godot Minimap.md
Automatic minimap generation in godot

Building an automated map/minimap system in Godot

Why?

Our game, ERO-ONE needed a minimap system, it being an open world game made this a necessity, otherwise the player wouldn't really know where he's going.

Of course making a proper minimap is hard, we told ourselves that our game didn't really need it because it's not as big as the open world powerhouse that is Grand Theft Auto, but the real reasons are...