This commit is contained in:
bob
2025-06-25 11:52:30 +08:00
parent 879117e874
commit 29d7836b66
19 changed files with 323 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
FishingBinder.BindAll();
MainBinder.BindAll();
ShopBinder.BindAll();
}
}
}

View File

@@ -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)

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7cf28ec025c64ce0944299f6d30ba3c3
timeCreated: 1750821997

View 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"}; }
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: c5cbbfd0335a46e45aabd3e1479c8abf

View 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";
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 536be5135584e52489e3c5b71dc719e1

View File

@@ -0,0 +1,13 @@
/**注册组件绑定关系。本脚本为自动生成每次生成会覆盖请勿手动修改生成插件文档及项目地址https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
using FairyGUI;
namespace NBF
{
public class ToolsBinder
{
public static void BindAll()
{
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 2d6aa632a0961684b9f1c720d2ff496d