Created
September 6, 2015 13:35
-
-
Save tsubaki/9538f0fd0975feca6908 to your computer and use it in GitHub Desktop.
LightProbeをシーンから出力する
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 System.Collections; | |
using UnityEditor; | |
using System.IO; | |
public class ExportLightprobe | |
{ | |
[MenuItem("Export/Export LightProbe")] | |
static void Export() | |
{ | |
var path = "Assets/" + Path.GetFileNameWithoutExtension (EditorApplication.currentScene); | |
Directory.CreateDirectory (path); | |
AssetDatabase.CreateAsset ( GameObject.Instantiate( LightmapSettings.lightProbes ), path + "/lightprobe.asset"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://tsubakit1.hateblo.jp/entry/2015/09/07/012439