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; | |
[RequireComponent(typeof(RectTransform))] | |
[ExecuteAlways] | |
[DefaultExecutionOrder(-100)] | |
public class SafeArea : MonoBehaviour | |
{ | |
private DeviceOrientation _postOrientation; | |
private RectTransform _rect; |
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
// 参考 | |
// http://tsubakit1.hateblo.jp/entry/2019/10/30/235150 | |
using System; | |
using UnityEngine; | |
[RequireComponent(typeof(RectTransform))] | |
[ExecuteAlways] | |
[DefaultExecutionOrder(-100)] | |
public class SafeArea : 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
FROM nvidia/cuda:9.0-cudnn6-devel | |
RUN apt-get update -y && apt-get upgrade -y | |
RUN apt-get install wget unzip lsof apt-utils lsb-core -y | |
RUN apt-get install libatlas-base-dev -y | |
RUN apt-get install libopencv-dev python-opencv python-pip -y | |
RUN wget https://github.com/CMU-Perceptual-Computing-Lab/openpose/archive/v1.3.0.zip \ | |
unzip openpose-1.3.0.zip; rm openpose-1.3.0.zip |
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
namespace ScriptNamespace | |
{ | |
using UnityEngine; | |
public class NewScriptSetting : ScriptableObject { | |
public string nameSpace; | |
} | |
} |
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
namespace ScriptNamespace | |
{ | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class NewScriptSettingCreator : Editor { | |
[MenuItem ("Assets/Create/ScriptNamespace/NewScriptSetting")] | |
static void Create(){ | |
var instance = CreateInstance<NewScriptSetting>(); |
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.IO; | |
namespace ScriptNamespace | |
{ | |
public class AddCustomNameSpace : UnityEditor.AssetModificationProcessor | |
{ | |
public static void OnWillCreateAsset(string path) | |
{ |
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
\documentclass{article} | |
\usepackage[dvipdfmx]{graphicx} | |
\usepackage{subfig} | |
\usepackage{caption} | |
\begin{document} | |
\begin{figure} | |
\centering | |
\captionsetup{width=0.25\textwidth} % targetting subfloat's caption | |
\subfloat[常木耀(つねきひかり)CV:佐倉綾音 イマどきのいじり姫。いつも明るいクラスのアイドル。去年のミスサンタコンテスト準優勝でテラスに専用席がある。食べることが好き。たまに頑固なところがある。]{\includegraphics[width=0.3\textwidth]{fig/tsuneki.png}\label{fig:tsuneki}} |
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
\documentclass{article} | |
\usepackage[dvipdfmx]{graphicx} | |
\usepackage{caption} | |
% グローバルに設定したいときはこちらに書く.option引数で対象を指定できる | |
% \captionsetup[figure]{width=0.8\textwidth} | |
\begin{document} | |
\begin{figure}[htbp] | |
\captionsetup[figure]{width=0.8\textwidth} |
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
\documentclass{article} | |
\usepackage[dvipdfmx]{graphicx} | |
\begin{document} | |
\begin{figure}[htbp] | |
\centering | |
\includegraphics[width=0.6\textwidth]{fig/seiren.png} | |
\caption{『セイレン』タイトルロゴ.『セイレン』は、高山箕犀原案による日本のテレビアニメ作品。2017年1月よりTBS、サンテレビ、BS-TBSほかにて放送中。物語は高山がゲームデザイナーを務めた『アマガミ』から9年後の世界になっている。} | |
\label{fig:seirenLogo} | |
\end{figure} |