Skip to content

Instantly share code, notes, and snippets.

View aprius's full-sized avatar
:shipit:
ops

Aprius aprius

:shipit:
ops
View GitHub Profile
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Linq;
public static class ConvertAssetToPNG
{
// Chỉ hiện menu nếu có ít nhất 1 Texture2D hoặc Sprite được chọn
[MenuItem("Assets/Convert to PNG", true)]
private static bool ValidateConvert()
@aprius
aprius / max.json
Last active February 5, 2023 09:50
applovin handle version
{
"name": "APPLOVIN_MAX_SDK",
"displayName": "AppLovin",
"versions": [
"5.6.7"
],
"path": "https://github.com/pancake-llc/unitypackage/releases/download/1.0.0/MaxSdk-v{0}.unitypackage",
"dependenciesFilePath": "MaxSdk_version-",
"pluginFilePath": [
"MaxSdk"
@aprius
aprius / naming.md
Last active June 7, 2025 04:32
file naming
  • Các kí tự đặc biệt như ~ ! @ # $ % ^ & * ( ) ` ; < > ? , [ ] { } ‘ ” và | cần tránh sử dụng
  • Không sử dụng khoảng trắng. Một số phần mềm sẽ không nhận dạng tên file có dấu cách. Sử dụng các lựa chọn dưới đây để thay thế:
    • Underscores (e.g. file_name.xxx)
    • Dashes (e.g. file-name.xxx)
    • No separation (e.g. filename.xxx)
    • Camel case, trong đó chữ cái đầu tiên của mỗi phần văn bản được viết hoa (e.g. FileName.xxx)

where_when_what hay còn có dạng scope_scope_meaning

Scope. Cái từ kế tiếp trong file name dùng để “khoanh vùng” coi nó dùng ở đâu, phạm vi thế nèo. (vẫn chú ý chia folder trc nhé, cộng thêm cả naming nữa cho ngầu :v). Có thể cần một hoặc vài scope tùy bạn, mình thường 1-2 cái là nhiều

@MeowKim
MeowKim / addressable_asset.md
Last active February 21, 2025 11:33
Guide for Unity Addressable Asset System.

📝 About

Guide for Unity Addressable Asset System.
Check out this sample code repo.

This guide supports languages below.

Created: 2020-07-03
Last updated: 2020-08-26 minor typo correction

@TigerHix
TigerHix / link.xml
Created March 29, 2020 19:25
Unity link.xml for LiteDB 5.0.5
@aprius
aprius / upm
Last active February 1, 2023 07:06
-feat: new feature (minor increase ex: 1.0.0 to 1.1.0)
-fix: bug fix (patch increase ex: 1.0.0 to 1.0.1)
-add: add new file, script ...
-remove: remove file, remove method
-update: update name method, name file, name ....
@aprius
aprius / .gitignore
Last active June 15, 2026 15:13
Unity gitignore
# Unity .gitignore Template
# Source: https://github.com/github/gitignore/blob/main/Unity.gitignore
# Last synced: 2025-12-18
# License: CC0-1.0
#
# This template is maintained from the github/gitignore repository
# and distributed under Creative Commons Zero v1.0 Universal license.
# This .gitignore file should be placed at the root of your Unity project directory
#
@HAliss
HAliss / CurveDissolve.shader
Last active June 7, 2022 17:26
Creates a monochromatic texture with color values from a given animation curve
Shader "Custom/CurveDissolve"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Noise("Noise", 2D) = "white" {}
_CurveTexture("Curve texture", 2D) = "white" {}
_Cutoff("Cutoff", Range(0,1)) = 0
_Glossiness ("Smoothness", Range(0,1)) = 0.5
/*
MIT License
Copyright (c) 2019 Yoshitaka Kimisaki
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
@hamzahamidi
hamzahamidi / open-cmder-here.md
Last active April 18, 2026 18:04
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

Edit 04/2021:

As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL per Documentation.

Original Solution

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.