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 UnityEngine.UI; | |
public class ShapeKeyTest : MonoBehaviour { | |
[SerializeField] | |
private GameObject TestObject; |
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
private void Sample() | |
{ | |
AssetDatabase.CopyAsset("Assets/コピー元のファイルのパス", "Assets/コピー後のファイルのパス"); | |
} |
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
private void Sample() | |
{ | |
AssetDatabase.DeleteAsset("Assets/消したいファイルのパス"); | |
} |
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
private void Sample() | |
{ | |
Sprite LoadPicture = (Sprite)AssetDatabase.LoadAssetAtPath("Assets/ロードしたいファイルのパス", typeof(Sprite)); | |
} |
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
private void () | |
{ | |
private Sprite Picture;//パスを確認したいファイル | |
string Path = AssetDatabase.GetAssetPath(Picture); | |
} |
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
private void CopyTexture() | |
{ | |
private Sprite src_Picture;//元の画像 | |
private Sprite dst_Picture;//コピー画像 | |
//コピー先のパスを保存 | |
private string dst_path = AssetDatabase.GetAssetPath(dst_Picture); | |
//ファイルのコピー | |
AssetDatabase.CopyAsset(AssetDatabase.GetAssetPath(src_Picture), dst_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
using UnityEditor; |
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
private void TimeNow() | |
{ | |
DateTime now = DateTime.Now; | |
int year = now.Year; | |
//年 | |
int month = now.Month; | |
//月 |
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
import bpy | |
bl_info = { | |
"name": "SampleAddon", | |
"author": "Your Name", | |
"version": (1, 0), | |
"blender": (2, 80, 2), | |
"location": "", | |
"description": "Sample", | |
"warning": "", |
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
<script> | |
//実行したいJavaScriptを記載 | |
</script> | |
<style> | |
/*実行したいCSSを記載*/ | |