Skip to content

Instantly share code, notes, and snippets.

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