Submit Search
Upload
今日から始めよう UniRx
•
Download as PPTX, PDF
•
0 likes
•
162 views
Yu Takahashi
Follow
UniRx 便利そうだけど使ったことない、挫折した、という人向けに作った資料です
Read less
Read more
Presentations & Public Speaking
Report
Share
Report
Share
1 of 15
Download now
Recommended
How to collect frontend technology
How to collect frontend technology
RikiyaOzawa
UniRxでPUNを使いやすくする
UniRxでPUNを使いやすくする
torisoup
Unity の Coroutine は何が便利なのか
Unity の Coroutine は何が便利なのか
Yu Takahashi
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Recommended
How to collect frontend technology
How to collect frontend technology
RikiyaOzawa
UniRxでPUNを使いやすくする
UniRxでPUNを使いやすくする
torisoup
Unity の Coroutine は何が便利なのか
Unity の Coroutine は何が便利なのか
Yu Takahashi
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
More Related Content
Featured
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
Featured
(20)
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
今日から始めよう UniRx
1.
今日からはじめよう UniRx
2.
このスライドの想定する対象者 - UniRx初学者 - UniRx便利そうだけどよくわからないから使ってない人 -
UniRx触ってみたけど分からなくて挫折した人
3.
uniRxって? ● 非同期/イベント/時間に関する処理をLinqっぽく書けるライブラリ、Rx! ● そんなRxをunityでも使えるようにしたアセット! Linqになじみがないと、RxもLinqも分からなくて二重苦になる →これがUniRxの学習コストが高い理由の一つ
4.
uniRxってどうやって使うの? ・「未来のプログラミング技術をUnityで -UniRx-」 http://www.slideshare.net/torisoup/unity-unirx ・「はじめてのUniRx」 http://www.slideshare.net/torisoup/uni-rx とりすーぷさんがすごくいい資料をたくさん残してくれているのでみんな読んで 勉強しようね
5.
完
6.
これができたら話が早い ● 便利そうなのは分かっていても、なかなか踏み出せない ● 何が便利なのかを先に知りたい よね?
7.
uniRXの便利なところ! ● Observerタイプのデザインパターン! ● 処理をまとめて記述できるので、後から見ても誰から見てもわかりやすい!
8.
Observerパターン? ● 観察者(Observer) ● 主題(Subject) ●
購読(Subscribe)
9.
「主題」の値の変化を「購読」してくれる - 購読→観察&検知、みたいなニュアンスでとりあえずOK
10.
「値が変化したときに」という実装をすると… ● 監視用のフィールド変数を用意 ● 現在の値をUpdate()で監視 ●
フィールド変数と値が違っていたら変化していたとして更新
11.
uniRxなら! ● 監視・購読をまとめてやってくれる! ● タイミングや記述場所を気にする必要が無い!
12.
ObserveEveryValueChanged ● 既に定義されている変数をReactivePropertyにリファクタするのはやめた方 が良いよ!! ● 既に定義されている変数をReactivePropertyっぽく扱いたいときは、 ObserveEveryValueChangedが便利だよ!
13.
uniRxハマりどころ! ● 寿命がMonobehaviourと違うので殺し損ねることがある ○ AddTo(gameObject)
や Dispose() を忘れないようにね! ● デバッグしにくい ○ オペレータの合間にDo(x => Debug.Log(x)) を挟むことでオペレータの途中の値を見ることが できます
14.
ここから先はキミの目で確かめるんだ! ● 紹介を省きますが、uniRxはコルーチンとも連携できます ○ というかこれぞuniRxの真髄と言えるほど相性が良いです ○
先ほど軽く話したように、uniRxはMonoBehaviourに依存しないので、MonoBehaviourを継承 しないクラスにもコルーチンを使えます(!) ● 非同期処理、といえば通信APIですね ○ uniRx + Photonなどはそこそこナレッジが溜まってきている昨今です ● Observerパタンの実装をLinqっぽく書けるうまみ ○ Linq自体便利なのでLinqが分からない人はLinqも勉強しようね ○ 「購読時」に受け取った値をオペレータで書き下せるのはだいぶ嬉しい
15.
おつかれさまでした
Download now