Tekkaman

导航

 

Creating Cubemaps in Unity3D

1、在Editor目录下生成GenerateStaticCubemap.cs。

  

2、编写代码,生成一个继承于ScriptableWizard类。

  

  wizard包含以下成员:

  

  Wizard入口设置如下:

  

3、Wizard回调函数如下:

  

  isValid忏悔控制Create按钮是否可点。

  

4、OnWizardUpdate用于控制是isValid值。

  

5、OnWizardCreate用于实现创建Cubemap的功能。

  

参考:

1、file://localhost/Applications/Unity/Unity.app/Contents/Documentation/html/en/ScriptReference/ScriptableWizard.html

 

posted on 2014-09-29 09:46  Tekkaman  阅读(347)  评论(0编辑  收藏  举报