Skip to content

Instantly share code, notes, and snippets.

View pillar's full-sized avatar

pillar pillar

  • home
  • Guangzhou, China
View GitHub Profile
using UnityEngine;
using UnityEditor;
using System.Collections;
class ProcessModel : AssetPostprocessor
{
void OnPostprocessModel( GameObject input )
{
// 只处理名为"Enemy2b"的模型
if (!input.name.Contains("Enemy2b"))
// copy from http://blog.csdn.net/peng_weida/article/details/7843504
#include <stdio.h> //perror()
#include <stdlib.h>
#include <netdb.h> //getprotobynumber gethostbyname
#include <unistd.h> //setuid() getuid() sleep() alarm()
#include <sys/types.h> //getuid()
#include <string.h> //bzero(s, n) 将s的前n个字节设为0
#include <signal.h> //signal()
#include <time.h> //gettimeofday()
using UnityEngine.EventSystems;
namespace UnityEngine.UI
{
[RequireComponent (typeof (Canvas))]
[ExecuteInEditMode]
[AddComponentMenu("Layout/Reference Resolution", 101)]
public class ReferenceResolution : UIBehaviour
{
@pillar
pillar / RadialLayout.cs
Last active September 19, 2015 18:44 — forked from DGoodayle/RadialLayout.cs
Radial Layouts in Unity
using UnityEngine;
using UnityEngine.UI;
/*
Radial Layout Group by Just a Pixel (Danny Goodayle) - http://www.justapixel.co.uk
Copyright (c) 2015
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
@pillar
pillar / boost.sh
Created February 13, 2014 03:11 — forked from pa-zz-yco/boost.sh
#===============================================================================
# Filename: boost.sh
# Author: Pete Goodliffe
# Copyright: (c) Copyright 2009 Pete Goodliffe
# Licence: Please feel free to use this, with attribution
# Modified version
#===============================================================================
#
# Builds a Boost framework for the iPhone.
# Creates a set of universal libraries that can be used on an iPhone and in the
/*
zyllibjs_xml
XML处理
@author zyl910
在编写处理xml的网页时,经常为浏览器兼容性头疼。于是我将常用的xml操作封装为函数。经过一段时间的改进,现在已经很稳定了,用起来很舒服。
函数有——
xml_loadFile:xml同步/异步加载。
xml_transformNode:xsl转换。