Extension support is incomplete

オープン
#661 コメント 6 件 リアクション 1 件 担当者 1 名 GitHub で見る

@robertdorn83 がすでに取り組んでいます。

2024年3月4日 から。

評価

この issue はまだ評価されていません。

説明

I might be holding this wrong, but it looks like support for extensions is incomplete and documentation around extensions is lacking.

There is an ExtensionFactory and IExtension interface exposed, and users can register their own callbacks for extensions; however, these seem to have only exposed a Serialize() and Deserialize() method to read/write the extension data - it seems there's no callback to associate the data with a GameObject (i.e. to do anything useful with the extension data.)

The GLTFSceneImporter class has hardcoded a specially-privileged "MSFT_LOD" extension - this is an indication that the extension support is not good enough. There should be sufficient callbacks in the importer to do this without having to modify the importer.

At the very least, there should be a sample which shows how users can register and use custom extensions to add their own MonoBehaviour to GameObjects.

主要言語
C#
スター
2.3k
フォーク
539
平均マージ
3日 15時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KhronosGroup/UnityGLTF のほかの issue

KhronosGroup/UnityGLTF の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。