Update Inventory Texture RenderTexture fields

Migrate Inventory Texture .renderTexture to a newer Unity serialized format and add compatibility flags. Replaced legacy prefab refs with m_CorrespondingSourceObject/m_PrefabInstance/m_PrefabAsset, bumped serializedVersion, and added fields such as m_IsAlphaChannelOptional, m_MipCount, m_DepthStencilFormat, m_ColorFormat, m_UseDynamicScale, m_UseDynamicScaleExplicit, m_BindMS, m_EnableCompatibleFormat, m_EnableRandomWrite and m_ShadowSamplingMode. This aligns the asset with newer Unity RenderTexture schema without changing intended texture dimensions or usage.
This commit is contained in:
Robii Aragon
2026-02-22 22:42:49 -08:00
parent b4c63e3c26
commit 31ada61565

View File

@@ -3,20 +3,29 @@
--- !u!84 &8400000 --- !u!84 &8400000
RenderTexture: RenderTexture:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Inventory Texture m_Name: Inventory Texture
m_ImageContentsHash: m_ImageContentsHash:
serializedVersion: 2 serializedVersion: 2
Hash: 00000000000000000000000000000000 Hash: 00000000000000000000000000000000
m_IsAlphaChannelOptional: 0
serializedVersion: 6
m_Width: 1024 m_Width: 1024
m_Height: 1024 m_Height: 1024
m_AntiAliasing: 1 m_AntiAliasing: 1
m_DepthFormat: 2 m_MipCount: -1
m_ColorFormat: 0 m_DepthStencilFormat: 92
m_ColorFormat: 8
m_MipMap: 0 m_MipMap: 0
m_GenerateMips: 1 m_GenerateMips: 1
m_SRGB: 0 m_SRGB: 0
m_UseDynamicScale: 0
m_UseDynamicScaleExplicit: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_EnableRandomWrite: 0
m_TextureSettings: m_TextureSettings:
serializedVersion: 2 serializedVersion: 2
m_FilterMode: 1 m_FilterMode: 1
@@ -27,3 +36,4 @@ RenderTexture:
m_WrapW: 1 m_WrapW: 1
m_Dimension: 2 m_Dimension: 2
m_VolumeDepth: 1 m_VolumeDepth: 1
m_ShadowSamplingMode: 2