Skip to content

Instantly share code, notes, and snippets.

@osssx
osssx / unwxapkg.py
Created May 23, 2022 07:13 — forked from Integ/unwxapkg.py
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 unwxapkg.py filename
__author__ = 'Integ: https://github.com./integ'
import sys, os
import struct
class WxapkgFile(object):
@osssx
osssx / PainterScript.cs
Created January 2, 2022 12:47
A unity script that can splash a decal prefab (or anything else) in radom direction from a point using raycasting.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Generate paint decals
/// </summary>
public class PainterScript : MonoBehaviour
{
public static PainterScript Instance;
@osssx
osssx / ApplyMenuTransformItem.cs
Created December 21, 2021 11:42 — forked from wtrebella/ApplyMenuTransformItem.cs
This is a Unity menu item script that allows you to easily apply a transform's values to its direct children
/*
Demo video: https://i.imgur.com/bRlAHT9.mp4
This tool allows you to easily apply a transform's values to its direct children.
For example, say we have a parent object called "Starfield" that holds 100 "Star" game objects as direct children.
The Starfield's rotation is set to (x=0, y=0, z=0), and ideally you'd like to keep it that way (for some whatever reason).
But The Stars are arranged in a certain pattern, and it doesn't look right. You don't want to manually adjust
each individual Star. So you rotate the Starfield object to rotate the entire starfield itself.
@osssx
osssx / UnityGraphicsBullshit.cs
Created December 25, 2020 01:13 — forked from JimmyCushnie/UnityGraphicsBullshit.cs
Exposes some Unity URP graphics settings that are (for some stupid fucking bullshit reason) private.
using System.Reflection;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using ShadowResolution = UnityEngine.Rendering.Universal.ShadowResolution;
/// <summary>
/// Enables getting/setting URP graphics settings properties that don't have built-in getters and setters.
@osssx
osssx / SubstanceToPNG.cs
Created August 8, 2019 00:57 — forked from JohnEvans512/SubstanceToPNG.cs
Substance to PNG Converter for Unity game engine
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
public class SubstanceToPNG : ScriptableWizard
{
public ProceduralMaterial material;
public enum ConvertAlpha
{
@osssx
osssx / javascript_resources.md
Last active August 29, 2015 14:21 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage