fk
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
FishingBinder.BindAll();
|
||||
MainBinder.BindAll();
|
||||
ShopBinder.BindAll();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using System;
|
||||
using UnityEngine;
|
||||
using FairyGUI;
|
||||
using NBC;
|
||||
using RootMotion.FinalIK;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace NBF
|
||||
@@ -43,14 +44,33 @@ namespace NBF
|
||||
{
|
||||
_renderImage = new ModelRenderImage(ModelHolder.asGraph);
|
||||
}
|
||||
|
||||
|
||||
//Assets/Resources/gfx/hooks/berserk_hooks/clas_20421_20446/clas_20423.prefab
|
||||
//Assets/Resources/gfx/rods/syberia/bolo_10021/bolo_10021_LB400.prefab
|
||||
//"Role/test"
|
||||
var prefab = Resources.Load("gfx/hooks/berserk_hooks/clas_20421_20446/clas_20423");
|
||||
var model = ((GameObject)Object.Instantiate(prefab));
|
||||
var ccdIk = model.GetComponent<CCDIK>();
|
||||
if (ccdIk != null)
|
||||
{
|
||||
Object.Destroy(ccdIk);
|
||||
}
|
||||
|
||||
var lineRenderer = model.GetComponent<LineRenderer>();
|
||||
if (lineRenderer != null)
|
||||
{
|
||||
Object.Destroy(lineRenderer);
|
||||
}
|
||||
|
||||
var rigidbody = model.GetComponent<Rigidbody>();
|
||||
if (rigidbody != null)
|
||||
{
|
||||
rigidbody.isKinematic = true;
|
||||
}
|
||||
|
||||
|
||||
_renderImage.modelRoot.localScale = new Vector3(200, 200, 200);
|
||||
_renderImage.SetModel(model);
|
||||
_renderImage.modelRoot.localScale = Vector3.one;
|
||||
|
||||
var previewableAsset = model.GetComponent<PreviewableAsset>();
|
||||
if (previewableAsset != null)
|
||||
|
||||
3
Assets/Scripts/UI/Tools.meta
Normal file
3
Assets/Scripts/UI/Tools.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7cf28ec025c64ce0944299f6d30ba3c3
|
||||
timeCreated: 1750821997
|
||||
20
Assets/Scripts/UI/Tools/PreviewPanel.Designer.cs
generated
Normal file
20
Assets/Scripts/UI/Tools/PreviewPanel.Designer.cs
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
/**本脚本为自动生成,每次生成会覆盖!请勿手动修改,生成插件文档及项目地址:https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
|
||||
|
||||
using FairyGUI;
|
||||
using FairyGUI.Utils;
|
||||
using NBC;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary> </summary>
|
||||
public partial class PreviewPanel
|
||||
{
|
||||
public GObject this[string aKey] => ContentPane.GetChild(aKey);
|
||||
[AutoFind(Name = "Model")]
|
||||
public ModelTexture Model;
|
||||
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/Tools/PreviewPanel.Designer.cs.meta
Normal file
2
Assets/Scripts/UI/Tools/PreviewPanel.Designer.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5cbbfd0335a46e45aabd3e1479c8abf
|
||||
14
Assets/Scripts/UI/Tools/PreviewPanel.cs
Normal file
14
Assets/Scripts/UI/Tools/PreviewPanel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// 本脚本只在不存在时会生成一次。已存在不会再次生成覆盖
|
||||
|
||||
using UnityEngine;
|
||||
using NBC;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public partial class PreviewPanel : UIPanel
|
||||
{
|
||||
public override string UIPackName => "Tools";
|
||||
public override string UIResName => "PreviewPanel";
|
||||
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/Tools/PreviewPanel.cs.meta
Normal file
2
Assets/Scripts/UI/Tools/PreviewPanel.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 536be5135584e52489e3c5b71dc719e1
|
||||
13
Assets/Scripts/UI/Tools/ToolsBinder.cs
Normal file
13
Assets/Scripts/UI/Tools/ToolsBinder.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
/**注册组件绑定关系。本脚本为自动生成,每次生成会覆盖!请勿手动修改,生成插件文档及项目地址:https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
|
||||
|
||||
using FairyGUI;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class ToolsBinder
|
||||
{
|
||||
public static void BindAll()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/Tools/ToolsBinder.cs.meta
Normal file
2
Assets/Scripts/UI/Tools/ToolsBinder.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2d6aa632a0961684b9f1c720d2ff496d
|
||||
Reference in New Issue
Block a user