あなたの世界を作りなさい
ソーシャル
以下を追加中: フォロワーリスト機能
9 分
zepeto moduleのソーシャルapiを使用すると、ワールドクリエイターはユーザーの友達リストを読み込むことができます。 ワールドクリエイターは、新しいユーザーをフォローしたり、フォローしたユーザーのフォローを解除したりすることもできます。 インストール方法 まず、window → パッケージマネージャー → zepeto worldパッケージのバージョン1 21 0以上をインストールしてください。 次に、zepeto moduleパッケージをインストールします。 ポップアップ友達リストプレハブの使用 zepeto moduleパッケージは、フォローリストやフォロワーリストを簡単に作成するためのuiプレハブを提供します。 1\) プロジェクトパネルで、パッケージ > zepeto module > ソーシャル > ランタイム > ui > resources > プレハブフォルダーに移動します。 2\) フォルダー内のプレハブの中から、followscrollview\ prefabをシーンにドラッグ&ドロップします。 ❗️ 注意 eventsystemオブジェクトがシーンに存在しない場合、この機能は正しく動作しない可能性があります。gameobject > ui > eventsystemに移動してオブジェクトを追加してください。 3\) 再生ボタンをクリックして、友達リストのポップアップが画面に表示されるのを確認します。 友達リストポップアップを作成するfollowscrollview\ prefabは、followscrollviewコンポーネントを使用して、画面に友達リストと総ユーザー数を読み込み、表示します。 followscrollviewコンポーネントに設定された情報は以下の通りです。 follow scroll viewコンポーネント true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type 友達リストがfollowscrollviewを通じて生成されるとき、世界の画面が横向きモードの場合、followscrollview landscapeが適用されます。 画面が縦向きモードの場合、followscrollview portraitが適用されます。 followscrollview landscapeおよびfollowscrollview portraitに適用されるfollowview controllerコンポーネントで構成された情報は以下の通りです。 フォロービューコンポーネント true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type 以下に示すように、友人情報が表示されるセルには、フォローメセルビューとユーザー情報セルビューのコンポーネントが適用されています。それぞれのコンポーネントの情報は次のとおりです。 ユーザー情報セルビューコンポーネント true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type 👍 ヒント zepetoテキストはunityengine ui textを継承し、世界内のuiの利便性のためにいくつかの追加機能を提供します。テキストはfollowscrollview prefab編集モードで簡単に編集できます。 ユーザー名の横に表示されるバッジアイコンは、zepetoクリエイターやグリーティングなどの特別なユーザーを示すために使用されるアイコンです。 友達リストポップアッププレハブuiの変更 ui要素を変更することで友達リストをカスタマイズできます。 packages内のプレハブを選択し、assetsフォルダにドラッグ&ドロップしてプレハブをコピーします。 👍 ヒント プレハブはpackagesフォルダ内では変更できませんが、assetsフォルダのサブフォルダにコピーされると変更できます。
