-
ファイルの変更はそのままで直前のコミットを取り消す(Windows)
$git reset --soft "HEAD^"
-
gitignoreの変更を適用(管理しなくなったファイルの履歴も残さない(push前))
$git rm -r --cached .
$git add .
$git commit --amend --no-edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
namespace Gatosyocora | |
{ | |
public class AvatarPerformance : EditorWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem current character code | |
for /f "usebackq tokens=2 DELIMS=:" %%a in (`chcp`) do @set CHARCODE=%%a | |
chcp 65001 > nul 2>&1 | |
rem unzip folder | |
set FOLDERNAME=unitypackage | |
if exist %FOLDERNAME% (goto FILE_TRUE) else goto FILE_FALSE | |
:FILE_TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.oculus.UnitySample" xmlns:tools="http://schemas.android.com/tools" android:installLocation="auto"> | |
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" /> | |
<application android:theme="@style/UnityThemeSelector" android:icon="@mipmap/app_icon" android:label="@string/app_name" android:isGame="true" android:banner="@drawable/app_banner"> | |
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:screenOrientation="landscape" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="false"> | |
<intent-filter> | |
<action android:name="android.intent.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Windows.Forms; | |
using System.IO; | |
using YamlDotNet; | |
using YamlDotNet.RepresentationModel; | |
using System.Text.RegularExpressions; | |
// Copyright (c) 2019 gatosyocora |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEditor.Animations; | |
using UnityEngine; | |
using System.Linq; | |
using System.Text; | |
using System; | |
// Copyright (c) 2019 gatosyocora | |
// MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Linq; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class ComponentProperties : MonoBehaviour { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System; | |
namespace GatoMaterialPropertyDrawer | |
{ | |
internal class LineDecorator : MaterialPropertyDrawer | |
{ | |
private float spaceSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class VRCSDKChecker | |
{ | |
// 他のスクリプトでVRCSDKを使う部分に | |
// #if VRCSDK ~ #endif | |
// で囲うことでVRCSDKがないことによるコンパイルエラーを防げる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[parameter(mandatory=$true)][String]$imageUrl | |
) | |
Add-Type -AssemblyName System.Drawing | |
$stream = [System.IO.FileStream]::new( | |
$imageUrl, | |
[System.IO.FileMode]::Open, | |
[System.IO.FileAccess]::ReadWrite) | |
$srcImage = [System.Drawing.Image]::FromStream($stream) |
OlderNewer