Provide more sugar API on ResourceManager

オープン
#2,806 コメント 2 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

2025年8月25日 から。

評価

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

説明

Is your feature request related to a problem? Please describe.
Currently, when a user wants to get the resource instance, they can only use the resourceManager.load API to do this job. Sometimes that is not convenient and easy to make mistakes, especially when the resource path includes specific characters like Chinese, emojis, or spaces, etc.

Describe the solution you'd like

Due to having an Online Editor, providing a ResourceManager.getResourceById() API seems more reasonable and easy to implement.

Additional context
We also need to consider providing ResourceManager.getResourceByPath() as a sugar API for ResourceManager.load, which semantics look suitable in that case.

主要言語
TypeScript
スター
5.9k
フォーク
413
平均マージ
16時間 17分
マージ済み PR(30日)
41

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

galacean/engine のほかの issue

galacean/engine の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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