Version: 2022.3
言語: 日本語


public Vector4 realtimeLightmapScaleOffset ;


The UV scale & offset used for a real-time lightmap.

Same as lightmapScaleOffset, but for real-time lightmaps.

A real-time lightmap is a texture atlas and multiple Renderers can use different portions of the same lightmap.

z と w が UV オフセットを参照している間、ベクトルの x と y は UV スケールを参照してください。

Note: this property is only serialized when building the player. In all the other cases it's the responsibility of the Unity lightmapping system (or a custom script that brings external lightmapping data) to set it when the Scene loads or playmode is entered.

関連項目: LightmapSettings クラス、lightmapScaleOffset プロパティー、ShaderLab プロパティー.