资源简介
NVIDIA Hairworks for Unity3d 毛发插件,5.2版本以上可以流畅运行,2018显示有问题
代码片段和文件信息
using System;
using UnityEditor;
using UnityEngine;
namespace UTJ
{
[CustomEditor(typeof(HairInstance))]
public class HairInstanceEditor : Editor
{
public override void OnInspectorGUI()
{
var t = target as HairInstance;
GUILayout.BeginHorizontal();
if (GUILayout.Button(“Load Hair Asset“))
{
var path = EditorUtility.OpenFilePanel(“Select apx file in StreamingAssets directory“ Application.streamingAssetsPath “apx“);
t.LoadHairAsset(MakeRelativePath(path));
}
if (GUILayout.Button(“Reload Hair Asset“))
{
t.ReloadHairAsset();
}
GUILayout.EndHorizontal();
GUILayout.Space(10);
GUILayout.BeginHorizontal();
if (GUILayout.Button(“Load Hair Shader“))
{
var path = EditorUtility.OpenFilePanel(“Select compiled shader (.cso) file in StreamingAssets directory“ Application.streamingAssetsPath “cso“);
t.LoadHairShader(MakeRelativePath(path));
}
if (GUILayout.Button(“Reload Hair Shader“))
{
t.ReloadHairShader();
}
GUILayout.EndHorizontal();
GUILayout.Space(10);
DrawDefaultInspector();
GUILayout.Space(10);
GUILayout.Label(
“hair shader: “ + t.m_hair_shader + “\n“ +
“hair asset: “ + t.m_hair_asset + “\n“ +
“shader id: “ + HandleToString(t.shader_id) + “\n“ +
“asset id: “ + HandleToString(t.asset_id) + “\n“ +
“instance id: “ + HandleToString(t.instance_id));
}
static string HandleToString(uint h)
{
return h == 0xFFFFFFFF ? “(null)“ : h.ToString();
}
static string MakeRelativePath(string path)
{
Uri path_to_assets = new Uri(Application.streamingAssetsPath + “/“);
return path_to_assets.MakeRelativeUri(new Uri(path)).ToString();
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-07 21:44 HairWorks5.2.5-master\
文件 378 2017-02-07 21:44 HairWorks5.2.5-master\.gitattributes
目录 0 2017-02-07 21:44 HairWorks5.2.5-master\Assets\
文件 7040 2017-02-07 21:44 HairWorks5.2.5-master\Assets\HumanHead.controller
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\HumanHead.controller.me
文件 192 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials.me
目录 0 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\
文件 4892 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\Floor.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\Floor.mat.me
文件 4944 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\Mite_Model_Mite_Test_v12b_Mite_Test_v12b_blinn.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\Mite_Model_Mite_Test_v12b_Mite_Test_v12b_blinn.mat.me
文件 4892 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\phong1.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\phong1.mat.me
文件 4892 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\whit4e.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Materials\whit4e.mat.me
文件 192 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model.me
目录 0 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\
文件 2442816 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\HumanFemale_HeadBust_Bind.FBX
文件 39224 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\HumanFemale_HeadBust_Bind.FBX.me
文件 2151824 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Madeline.FBX
文件 35730 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Madeline.FBX.me
文件 3645952 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Manjaladon_wFur.fbx
文件 32199 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Manjaladon_wFur.fbx.me
文件 192 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials.me
目录 0 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\
文件 4892 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\Checker.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\Checker.mat.me
文件 4896 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\Eye_LEDs_mat.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\Eye_LEDs_mat.mat.me
文件 4892 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\Eye_mat.mat
文件 180 2017-02-07 21:44 HairWorks5.2.5-master\Assets\Model\Materials\Eye_mat.mat.me
............此处省略515个文件信息
相关资源
- unity捕鱼源码
- unity折叠菜单
- 暴风魔镜VR 、HTC VR插件 及制作网址
- 山寨Pokemon go的尝试demo的源码一
- untiy3D开发的小游戏坦克大战
- unity 接入高德地图 包括源码和生成好
- 2.5D Platformer Engineunity2.5D精美游戏框架
- 皮肤镜图像毛发噪声的去除
- Unity3D人物怪物互攻小游戏Demo
- Unity 2D游戏开发从入门到精通 pdf 完整
- Unity3D项目游戏设置界面NGUI
- Unity3D模拟太阳系
- unityAction-RPGStarterKit6.01.zip
- Unity脚本设计
- Azure Kinect Examples for Unity 1.9.1.unitypac
- unity3D制作的飞车单机小游戏
- neo4j-community-3.4.0-windows.zip
- Magic Slashes FX 1.0.unitypackage
- AVPro Video 1.11.7 最新版无水印
- Survival Shooter噩梦射手成品.rar
- Unity3D人工智能编程精粹代码
- unity3D空战游戏《鹰击长空》源码
- unity体积雾详解内含中文版
- Unity 3d 森林动物模型资源包带动作
- Unity3D特效粒子 FXLab - Unity Effects 高级
- Unity3D休闲射击类游戏《Survival Shoote
- AnyPortrait 1.1.5-unity2018.3.2验证通过
- 王者荣耀_1v1+5v5地形模型(可直接导入
- AVPro Video 1.11.3.rar
- Amplify Shader Editor v1.6.2
评论
共有 条评论