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
// L2DModelMatrixを使うサンプル | |
void OnRenderObject() | |
{ | |
//キャンパスサイズはlive2DModelから取得できる | |
var height = live2DModel.getCanvasHeight(); | |
var width = live2DModel.getCanvasWidth(); | |
// 初期化の時にキャンパスサイズが必要 | |
// 縦横比は維持したまま、移動やサイズの変更ができる。 |
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.Collections; | |
[CustomPropertyDrawer (typeof(FolderPathAttribute))] | |
class FolderPathDrawer : PropertyDrawer { | |
// Draw the property inside the given rect | |
public override void OnGUI (Rect position , SerializedProperty property, GUIContent label) { | |