InteractionTracker.CreateWithOwner 方法

定義

使用指定的擁有者建立 InteractionTracker 的實例。

這個 Create 方法會具現化 InteractionTracker 與擁有者註冊回呼。 建立 InteractionTracker 設定屬性之後,附加 VisualInteractionSource,並在 ExpressionAnimation中參考位置或縮放,作用中的輸入可以驅動 ExpressionAnimation。 只有在應用程式需要接收InteractionTracker狀態和值的相關回呼時,才需要與擁有者建立InteractionTracker

public:
 static InteractionTracker ^ CreateWithOwner(Compositor ^ compositor, IInteractionTrackerOwner ^ owner);
 static InteractionTracker CreateWithOwner(Compositor const& compositor, IInteractionTrackerOwner const& owner);
public static InteractionTracker CreateWithOwner(Compositor compositor, IInteractionTrackerOwner owner);
function createWithOwner(compositor, owner)
Public Shared Function CreateWithOwner (compositor As Compositor, owner As IInteractionTrackerOwner) As InteractionTracker

參數

compositor
Compositor

用來建立 InteractionTracker實例的撰寫器。

傳回

會傳回建立的 InteractionTracker 物件。

適用於