issues
search
CyberAgentGameEntertainment
/
AssetRegulationManager
Tool for Unity to create and run tests of Asset Regulations (texture size, number of vertices, etc.), and automate running.
MIT License
236
stars
14
forks
source link
Make AssetRegulationEntry a ScriptableObject.
#14
Closed
Haruma-K
closed
2 years ago
Haruma-K
commented
2 years ago
SerializeReferenceだとリネームやアセンブリの移動に弱い
ユーザが拡張できる部分がこの仕様だとまずい
従ってポリモーフィズムのシリアライズはScriptableObjectで行う形式に変える
Haruma-K
commented
2 years ago
やっぱ以下の理由からSerializeReferenceで良さそう
いずれはUnityが正式対応する
SerializeReferenceはMovedFromアトリビュートをリネーム時につけるワークアラウンドが存在する
これをドキュメントに掲載する必要はある ->
こんな感じで
ScriptableObjectはリストの要素にした時などを考えると対応がかなり広範囲になりそう