首次提交
This commit is contained in:
31
Assets/Scripts/UI/UIBlurBackground.cs
Normal file
31
Assets/Scripts/UI/UIBlurBackground.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user