我们创建了 Fontainebleau 演示来说明摄影photogrammetry流程和 LayeredLit 着色器的使用。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

32 行
1023 B

using UnityEngine;
using UnityEditor;
using UnityEditor.ProjectWindowCallback;
using System.IO;
public class ImageScriptAssetFactory
{
[MenuItem("Assets/Create/Demo Photogrammetry/Audio Cue List", priority = 301)]
private static void MenuCreateCueListAsset()
{
var icon = (Texture2D)null;
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, ScriptableObject.CreateInstance<DoCreateCueListAsset>(), "New CueList.asset", icon, null);
}
internal static CueList CreateCueListAtPath(string path)
{
CueList asset = ScriptableObject.CreateInstance<CueList>();
asset.name = Path.GetFileName(path);
AssetDatabase.CreateAsset(asset, path);
return asset;
}
}
internal class DoCreateCueListAsset : EndNameEditAction
{
public override void Action(int instanceId, string pathName, string resourceFile)
{
CueList asset = ImageScriptAssetFactory.CreateCueListAtPath(pathName);
ProjectWindowUtil.ShowCreatedAsset(asset);
}
}