Skip to content

Instantly share code, notes, and snippets.

View actcoment's full-sized avatar

michiro sakamoto actcoment

View GitHub Profile
@actcoment
actcoment / selectfile_folder_and_set_640.jsx
Created March 26, 2018 00:30
photoshop jsx:photoshopで指定のフォルダのjpgを640pxサイズにリサイズして別のフォルダに移す。
//for PhotoshopCS3
preferences.rulerUnits = Units.PIXELS;
//サムネイルの最大サイズ max pixels
maxpx = 640;
//サムネイルを保存するフォルダ名。このスクリプト実行時に聞かれるフォルダの下に作成する。
thumbDir = 'thumbnail';
//特定のフォルダ以下のすべてのJPGを開く
var dirObj = new Folder("C:/Users/name/Pictures/iCloud Photos/Shared/ブログ用");
@actcoment
actcoment / hittestugui
Created July 9, 2015 09:09
mouse hitTest against uGUI objects
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using System.Collections.Generic;
public class test : MonoBehaviour {
void Update () {
var pointer = new PointerEventData(EventSystem.current);
Vector2 mousePos = Input.mousePosition;