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) | |
{ |