UBlur Scripting Guide

UBlurTitle3

UBlur is designed for non coder devs, but it also provides APIs and properties for you to script. In this article we will explain and demonstrate how to control UBlur by script.

Before anything start..

You’ll need to do this first:

This enables you to access the UBlur’s namespace, so your script should look like this now:

You can either dynamically attach a UBlur script to a UGUI gameobject or do it in editing time and make it as a public monoBehaviour var.
Let’s use the first method as an example:

Good. Now we have the basic script setup. Let’s do some real demo.

Enable / Disable effects

UBlur provides interfaces for disable / enable effects. Right now UBlur provides two types of effect.
Here’s how you do it:

Say if I want to enable the blur effect right after a UBlur component is added:

Just attach this simple script to a UGUI Image and hit play and you’ll see.

Access and control effects

Once you have your effects enabled, you’ll see effect right away. But what if I want to make it blur more? Like the iOS UI?
UBlur lets you access to the effects’ variables directly:

Here’s a quick example for making an iOS like UGUI panel: (Use this script on the default UGUI panel)

And yes, these variables are accessible by Unity Animation. You know the drill.

Modify margins

Sometimes your panel has borders. In such case you may want to leave the panel’s borders unaffected by image effects.
UBlur provides you to set the effect area’s margins:

Let’s give our iOS like panel a bit of margin:

Disable / Enable UBlur

Finally, you can disable or enable UBlur just like other components. This will turn off/on the effects immediately:

That’s all about UBlur scripting!
Yeah, it’s that simple!
We’re looking forward to improving this nice little toy. If you have an idea or would like to comment, please don’t hesitate to send me an email.
Happy coding!

Basic Setup

Live Demo

Asset Store Link

Looking For Support?

[Skill Design] – Izumo Okuni

004g
Name: Izumo Okuni
Role: Supporter
Weapon: Hook jade Type
Armor: Light Armor

00900401a
Technique: Gracious Will
(Consumed Stamina)
Effect: Bless all team members by restoring stamina and remove a single debuff effect for each.

004s1
Pic: Go! More arrows!

Description:
By restoring stamina your team gets more chance to use their techniques. This makes your tanks more taunting and your attackers do more damage.
It is also the only way to instance restore stamina in the game, which make it important in strategy.
This skill will also become more important in the end of the game since there will be more situations you’ll need to cure debuffs.

Hint:
Cast it when your team’s stamina isn’t full to gain max restore effect.
When needed, keep it until enemy debuffs appear.

00900402a
Spell: Peaceful Realm
(Consumed Mana)
Effect: Restores HP for a single team member with the lowest health.

004s2
Pic: As good as a new!

Description:
This is a powerful single target healing skill, which almost fill everyone’s health in one shot.
With low mana cost and a small CD, it will be the most familiar healing skill for players.
It’s also the best bet to let your tanker survive from powerful boss attacks during the later stages.
As the skill level goes up, the CD decrease. This makes it possible for the skill to be cast rapidly after reaching higher levels.

Hint:
Okuni will always heal the teammate who has the least health.
Leave sushi for Okuni. She’ll sometimes need it for healing.

Summary:
Okuni: Well Shinto shrines don’t really make a lot of money so…
004a_en
Okuni is the only healer before you get Asahina so you’ll have her in your party for a while. And her healing skill grow more important after you starting to face bosses with powerful attack.
Needless to say, her stamina restore / cure debuff ability is almost irreplaceable, especially when fighting enemies who cast powerful debuffs. There are two characters who can cure debuffs in the game and Okuni is one of them.

If you had read the story you know Okuni is actually a god. She prefers others to solve problems for her.
In designing Matsihime we wanted to give her generic all around skills. These skills are useful in most situations but she will still need the support of her team for the ultimate success.

[角色技能設計篇] – 出雲阿國

004g
名稱:出雲阿國
定位:支援型
武器:勾玉類
防具:腹當類

00900401a
技法:趨吉避凶
(消耗技力)
作用:為所有隊友驅邪,立即回復其些許技力並解除一枚其身上的減益狀態(Debuff)。

004s1
圖:這樣就可以多射個幾箭了!

說明:
透過技力回復來增加隊員的技法使用次數;用在坦克身上可以增加其吸怪能力,用於攻擊者身上時則會增加其總傷害輸出
在遊戲中同時也是唯一一個可以瞬間補充技力的手段,在整體的戰術上有著其重要的地位。
在後期玩家遇到需要解魔的場合時,這個技能也是最可靠的解魔手段之一,更讓這個技能顯得獨一無二。

使用訣竅:
在隊員的技力條不是滿的狀況下再施放,以達到其最佳效益。
在有關鍵解魔需求的場合時,可以保留至需要解魔再使用。

00900402a
心法:國泰民安
(消耗心力)
作用:為一名體力最少的隊友祈福,恢復其大量體力。

004s2
圖:治療正在跟敵人纏鬥中的真田。

說明:
單體強力治療技能,通常幾乎可以一發就補滿一位隊員
這個技能將是玩家最熟悉的一個治療技能,有著耗魔量少,CD又短的特性。即使是在後期面對攻擊力強大的敵人時,玩家還是常常得依靠這個技能來讓坦克有效的存活下去
隨著等級的上升,此技能的CD也會慢慢下降,讓阿國在遊戲後期幾乎可以不間斷地使用這個技能

使用訣竅:
阿國的治療技能AI讓她永遠會補血最少的隊員,因此玩家不需要去選擇補血目標。
將壽司保留給阿國,讓她在需要心力的狀況下可以吃壽司來回復心力。

總評:
阿國:神社……經營有困難,藉此賺點外快。
004a_cht
阿國的強力單體補血技能在前期沒有其他補血角色的狀況下是玩家的唯一選擇;到了遊戲後期,面對著有強大攻擊力的Boss,這個技能又發揮了其重要的特性。
技力回復跟解魔的能力更不用說,在遊戲越後期越顯重要;尤其是遊戲後期在需要解魔的關鍵點上,阿國是遊戲中兩名擁有除魔能力的角色其中之一,更提高了她的出場率。

遊戲中的阿國其實是一個神,從個性跟技能上看不出來就是了。
與其親自動手問題,阿國比較喜歡把事情交給其他人去處理好,在技能設計上我們希望阿國是一個非常泛用而且有重要地位的支援手。她會在隊伍後方使用一些方便的招數讓她的隊員們最終可以達成任務