1.4 Layer 圖層 - Hit Area 熱區(qū)


Add interaction to a specific rectangle on the screen. Toggle the 'Setup Mode' of the hit area to see where it's positioned.
將交互添加到特定的矩形上。屬性“Setup Mode”選中時,查看器顯示一個紅色矩形,用來查看熱區(qū)的位置。

板栗:假設插入了一張界面圖,圖里有個按鈕,在按鈕上蓋一個熱區(qū)就能實現(xiàn)點擊熱區(qū)激活交互;移入或點擊時沒有按鈕沒有變化的時候適合用熱區(qū)。

屬性
Enable 啟用*
A boolean that is true when the layer is displayed.
勾選啟用查看器中才讀取這個圖層。

Position 位置
The position to display the layer. Use Point 3D to set Z position.
位置。點擊屬性名稱 Position 可以顯示3個方向并設置值。

Anchor 錨點
The anchor point to position the layer relative to. See Coordinates for more information.
組位于屏幕中的錨點,詳細信息閱讀Coordinates 坐標

Size 尺寸
The size of the layer.
圖層大小。

Setup Mode 設置模式
A boolean that is true when the hit area is in setup mode.
勾選時顯示熱區(qū)范圍及位置。


Related Patches 相關(guān)模塊

Interaction


Related Learn Content 相關(guān)課程

Screen Transitions 屏幕轉(zhuǎn)換
Create screen flows.
創(chuàng)建屏幕轉(zhuǎn)換流程。

全部圖層,查看 圖層目錄


Related Patches 相關(guān)模塊

Interaction


Related Examples 案例

Facebook Notifications Facebook通知
Create a series of notifications entirely out of loops.
創(chuàng)建一系列完全不循環(huán)的通知

Instagram Adjust Instagram調(diào)整
Use drag to control the Instagram straighten tool.
用拖動控制Instagram拉直工具。

Instagram Boomerang
Transition between screens and scrolls in Boomerang.

Instagram Direct Messages Instagram直接消息
Send an Instagram direct message to a friend, over and over again.
直接發(fā)送消息給朋友,不限次數(shù)。


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內(nèi)容

  • 批判性思維這本書非常實用,笑來老師說這本書改變了他。同樣這本書也可以改變很多人,邊閱讀、邊思考、邊對照自己思維,很...
    蘇然suran閱讀 841評論 1 0
  • 今天好像沒什么特別的事 如往常一般 又或者說如往常一般特別 內(nèi)一科的輪轉(zhuǎn)到最后一周了,今天早上白老師回來了,白老師...
    338e6879d5c7閱讀 315評論 0 2
  • 腳下是 尖刀 火海 這是惡魔存在的地方 是掌控者的天堂 一片黑暗 不見光明 總擔心 欺凌 撕辱 豺狼張牙舞爪的...
    凌風寒墨閱讀 139評論 0 0
  • 清潔工是個三十來歲的瘦子。不過尼日利亞人幾乎個個都瘦,所以瘦不能作為一個形象特征。其實我早就留意他了。他穿一身墨綠...
    喊哈是哈閱讀 444評論 0 0
  • 如果你長久暗戀一個人,你一定懂得這種感覺。不要去試探,不要去索取,不要去過問;更不要去驚醒你的心上人,等他自己...
    柳歸舟閱讀 853評論 0 1