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

    Class PropertyPreviewer

    A class that allows to register properties to prevent Unity from marking Prefabs or the Scene as modified when you preview animations.

    Inheritance
    Object
    PropertyPreviewer
    Namespace: Unity.LiveCapture
    Syntax
    public class PropertyPreviewer : IPropertyPreviewer

    Constructors

    PropertyPreviewer(Object)

    Constructs a new PropertyPreviewer.

    Declaration
    public PropertyPreviewer(Object driver)
    Parameters
    Type Name Description
    Object driver

    Key to identify the group of registered properties.

    Properties

    Driver

    The key to identify the group of registered properties.

    Declaration
    public Object Driver { get; }
    Property Value
    Type Description
    Object

    Methods

    Register(Component, String)

    Adds a property from a specified Component.

    Declaration
    public void Register(Component component, string propertyName)
    Parameters
    Type Name Description
    Component component

    The Component to register the property from.

    String propertyName

    The name of the property to register.

    Implements
    IPropertyPreviewer.Register(Component, String)

    Register(GameObject, String)

    Adds a property from a specified GameObject.

    Declaration
    public void Register(GameObject go, string propertyName)
    Parameters
    Type Name Description
    GameObject go

    The GameObject to register the property from.

    String propertyName

    The name of the property to register.

    Implements
    IPropertyPreviewer.Register(GameObject, String)

    Restore()

    Restores the properties previously registered.

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