docs.unity3d.com
    目次を表示する/隠す

    Class GameObjectExtension

    Extensions to create new Lights in HDRP.

    Inheritance
    Object
    GameObjectExtension
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public static class GameObjectExtension : object

    Methods

    AddHDLight(GameObject, HDLightTypeAndShape)

    Add a new HDRP Light to a GameObject

    Declaration
    public static HDAdditionalLightData AddHDLight(this GameObject gameObject, HDLightTypeAndShape lightTypeAndShape)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject on which the light is going to be added

    HDLightTypeAndShape lightTypeAndShape

    The Type of the HDRP light to Add

    Returns
    Type Description
    HDAdditionalLightData

    The created HDRP Light component

    RemoveHDLight(GameObject)

    Remove the HD Light components from a GameObject.

    Declaration
    public static void RemoveHDLight(this GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject on which the light is going to be removed

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)