Version: 2022.3
言語: 日本語
public void DrawRenderer (Renderer renderer, Material material, int submeshIndex= 0, int shaderPass= -1);

パラメーター

renderer 描画するレンダラ
material 使用するマテリアル
submeshIndex レンダリングするメッシュのサブセット
shaderPass 使用するシェーダーのパス (デフォルトは -1 で、すべてのパスをレンダリングします)。

説明

Draw Renderer コマンドを追加します。

Note that the rendered mesh will not have any lighting related shader data (light colors, directions, shadows, light and reflection probes etc.) set up. If the shader used by the material uses any lighting related variables, the results are undefined.

関連項目: DrawMesh.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961