Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Embed and extract DataAssets from their owner (EmbedDataAssetAttribute)

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

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
backend, tooling

調査の方向性

Start by reading the serializer, inspector, undo system, and DataAsset variant handling; the issue names no files or tests. Trace how DataAsset members are currently serialized and referenced, then define embedded and referenced round trips, extraction and embedding with undo, and variant behavior. Done means both forms round-trip, extract/embed restore the original file contents and undo, and existing projects remain compatible.

索引モデルが issue の本文から書いたものです。

説明

c:editor c:engine p:low size:M t:feature

Current State

A DataAsset that references another (for example the project's settings, or a build profile's settings overrides) always points at a separate .dataasset file. A new project therefore starts with one file per settings kind, even when nothing about them is customized yet. [SerializeInline] exists for component members, but there is no way to keep a referenced DataAsset inside its owner and move it out later.

Tasks

  • Add an EmbedDataAssetAttribute (or extend [SerializeInline]) for DataAsset members that may hold either an embedded payload or a reference to a separate asset.
  • Serializer: read and write both forms for the same member; loading resolves either to the same payload type.
  • Inspector: an Extract button that writes the embedded payload to its own .dataasset (with meta) and replaces it with a reference, and an Embed button that does the reverse when nothing else references the asset. Both undoable.
  • Let new projects start compact: the Project asset embeds its default settings until the user extracts one (to make a variant, share it, or split it out for version control).
  • Decide how variants interact with embedding (a variant's base must be a separate asset).

Acceptance Criteria

  • A member marked with the attribute round-trips both the embedded and the referenced form.
  • Extract then Embed returns the original file contents; both steps undo.
  • Existing projects keep working unchanged.

Related

Central Project asset and build-profile settings overrides; DataAsset variants; #62 #35.

主要言語
C#
スター
1
フォーク
1
平均マージ
2時間
マージ済み PR(30日)
35

環境構築

はじめの一歩

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

MASS4ORG/Turian のほかの issue

MASS4ORG/Turian の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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