docs.unity3d.com
    显示 / 隐藏目录

    Interface ICalculateLandmarks

    Components that implement this interface can define landmarks

    Namespace: Unity.MARS
    Syntax
    public interface ICalculateLandmarks

    Properties

    AvailableLandmarkDefinitions

    A list of landmark definitions that this class can support.

    Declaration
    List<LandmarkDefinition> AvailableLandmarkDefinitions { get; }
    Property Value
    Type Description
    List<LandmarkDefinition>

    Methods

    GetLandmarkCalculation(LandmarkDefinition)

    Get an action that calculates a landmark with the given definition. If the landmark does not have the proper settings or output set up, it should return null

    Declaration
    Action<ILandmarkController> GetLandmarkCalculation(LandmarkDefinition definition)
    Parameters
    Type Name Description
    LandmarkDefinition definition

    The landmark definition to get the calculation for

    Returns
    Type Description
    Action<ILandmarkController>

    SetupLandmark(ILandmarkController)

    Called when a landmark is set to reference this source, or when the definition is changed. The source can use this to set the default starting properties and location for the landmark.

    Declaration
    void SetupLandmark(ILandmarkController landmark)
    Parameters
    Type Name Description
    ILandmarkController landmark

    The landmark to setup.

    Events

    dataChanged

    This event can be invoked by the landmark source to indicate the source data has changed. By default, landmarks referencing this source will subscribe to this event and update.

    Declaration
    event Action<ICalculateLandmarks> dataChanged
    Event Type
    Type Description
    Action<ICalculateLandmarks>

    Extension Methods

    CreateLandmarkMethods.CreateLandmarkAsChild(ICalculateLandmarks, LandmarkDefinition, Type)
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)