Skip to content

Instantly share code, notes, and snippets.

shop-0761 / UnityPackageSynchronizerWindow.cs
Created Apr 5, 2020
DropBox の API をたたくやつ
View UnityPackageSynchronizerWindow.cs
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.IO;
using System.Linq;
shop-0761 / ResolvedView
Last active Apr 28, 2020
UE4のResolvedView.hogehoge で取れそうなやつ
View ResolvedView
float4x4 TranslatedWorldToClip;
float4x4 WorldToClip;
float4x4 TranslatedWorldToView;
float4x4 ViewToTranslatedWorld;
float4x4 TranslatedWorldToCameraView;
float4x4 CameraViewToTranslatedWorld;
float4x4 ViewToClip;
float4x4 ViewToClipNoAA;
shop-0761 / FragmentWithSurface.shader
Created Feb 11, 2019
Fragment と surface を一緒に使うやつ
View FragmentWithSurface.shader
Shader "Custom/fragmentWithSurface" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
SubShader {
Tags { "RenderType"="Opaque" }
shop-0761 / fragWithSurfSample.shader
Last active Jan 26, 2019
fragment Shader 内で Surface shader を展開する例
View fragWithSurfSample.shader
#include "UnityPBSLighting.cginc"
fixed4 frag(v2f i) : SV_Target
Input surfIN;
SurfaceOutputStandard o;
UNITY_INITIALIZE_OUTPUT(SurfaceOutputStandard, o);
surf(surfIN, o);
return fixed4(o.Albedo,0);
shop-0761 / Zaif succession agree mail
Last active Dec 13, 2018
Zaif 「承継同意に関するお手続きのご案内」メール
View Zaif succession agree mail
Date: 2018/11/28
shop-0761 / SteamVR Plugin2.0 Input Sample.cs
Last active Jan 26, 2019
SteamVR Plugin 2.0 で入力を取るサンプル 要UniRx
View SteamVR Plugin2.0 Input Sample.cs
using UnityEngine;
using Valve.VR;
using UniRx;
public class SteamVRNotifierBase
public string buttonName;
public bool isLeft;
shop-0761 / Hugo_appyaml
Created Feb 7, 2018
View Hugo_appyaml
runtime: go
api_version: go1
- url: /
static_files: public/index.html
upload: /
- url: /css
static_dir: public/css
- url: /fonts
shop-0761 / SelfManagementOfTrackedDevices.cs
Last active Jan 26, 2019
View SelfManagementOfTrackedDevices.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;
public class SelfManagementOfTrackedDevices : MonoBehaviour
public GameObject[] targetObjs;
public ETrackedDeviceClass targetClass = ETrackedDeviceClass.GenericTracker;
public KeyCode resetDeviceIds = KeyCode.Tab;
shop-0761 / MakeZipForGAS
Created Nov 16, 2017
View MakeZipForGAS
function makeZip(fileName, folderId){
var folder = DriveApp.getFolderById(folderId);
var fileList = folder.getFiles();
var archive = "";
var blobs = new Array();
var file =;
shop-0761 / GameData.cs
Last active Jan 26, 2019
View GameData.cs
//MessagePack をいれとく
//GameData.Load(gameObject) GameData.Save(gameObject) で使う
public class saveDataFormat
public string name;
You can’t perform that action at this time.