31 lines
761 B
C#
31 lines
761 B
C#
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
|
|
|
using UnityEngine;
|
|
using FairyGUI;
|
|
using NBC;
|
|
|
|
namespace NBF
|
|
{
|
|
public partial class UIBlurBackground : GLabel
|
|
{
|
|
private NTexture _nTexture;
|
|
|
|
private void OnInited()
|
|
{
|
|
// icon = new NTexture(your_Texture2D);
|
|
// UIBlur.texture = new NTexture(UIBlur);
|
|
// UIBlur.Instance.CaptureAndBlurOnce();
|
|
// Back.texture = new NTexture(UIBlur.Instance.blurRT);
|
|
}
|
|
|
|
public override void Dispose()
|
|
{
|
|
// if (_nTexture != null)
|
|
// {
|
|
// _nTexture = null;
|
|
// }
|
|
|
|
base.Dispose();
|
|
}
|
|
}
|
|
} |