Home
News
Forum
Wiki
Blog
Contents
Gallery
Movies
Downloads
About NSL
If you want to see English page, please click "English" Button at Left.
[
タイトル一覧
|
ページ一覧
|
新規
|
単語検索
|
最終更新
|
ヘルプ
]
Unity3D
のバックアップソース(No.6)
[
トップ
]
[ ]
差分
を表示
現在との差分
を表示
Unity3D
へ行く。
« Prev
Next »
** うにてぃ [#e1b03924] *** Devel [#p45ef83f] - http://caitsithware.com/wordpress/archives/1377 - http://www.slideshare.net/lucifuges/extending-the-unity-editor-extended - http://docs.unity3d.com/jp/current/ScriptReference/ModelImporter.html - http://baba-s.hatenablog.com/entry/2015/06/09/104109 - http://ft-lab.ne.jp/cgi-bin-unity/wiki.cgi?page=unity_first #br using UnityEngine; using UnityEditor; using System.IO; public sealed class SelectColladaShader : AssetPostprocessor { Material OnAssignMaterialModel(Material material,Renderer renderer) { string currentDir = Path.GetDirectoryName (assetPath); if (!AssetDatabase.IsValidFolder (currentDir + "/Materials")) { AssetDatabase.CreateFolder (currentDir, "Materials"); } if (material.mainTexture == null) { return null; } string textureName = material.mainTexture.name; string materialPath = string.Format("{0}/Materials/{1}.mat", currentDir, textureName); Material mt = AssetDatabase.LoadAssetAtPath<Material>(materialPath); if (mt==null) { material.shader = Shader.Find("Legacy Shaders/Transparent/Diffuse"); AssetDatabase.CreateAsset(material, materialPath); // mt = material; } return mt; } }
« Prev
Next »
Unity3D のバックアップ一覧
Unity3D のバックアップソース(No. All)
1: 2015-06-18 (木) 23:22:22
iseki
2: 2015-06-18 (木) 23:40:47
iseki
3: 2015-06-19 (金) 23:09:57
iseki
4: 2015-06-21 (日) 01:19:38
iseki
5: 2015-06-21 (日) 07:23:32
iseki
6: 2015-06-25 (木) 00:03:38
iseki
現: 2015-07-13 (月) 14:01:38
iseki
サイト内 検索
高度な検索
ログイン
ユーザー名:
パスワード:
パスワード紛失
新規登録
サブ メニュー
新着情報
Books
リンク
サイトマップ
e-Learning
TUIS 認証局証明書
ミニカレンダー
2024年 4月
日
月
火
水
木
金
土
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<今日>
オンライン状況
119 人のユーザが現在オンラインです。 (26 人のユーザが xpwiki を参照しています。)
登録ユーザ: 0
ゲスト: 119
もっと...
アクセスカウンタ
今日 :
昨日 :
総計 :
Powered by XOOPS Cube 2.1© 2001-2006
XOOPS Cube Project
Design by
XoopsDesign.com