alttester / alttester/AltTester-Unity-SDK

Add optional maxDepth parameter to CallComponentProperty method

オープン
#1,823 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
2.2.6 feature
主要言語
C#
スター
121
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

# Description
Currently, the CallComponentProperty method always uses the default serialization depth of 2. This behavior limits flexibility when working with complex objects. The GetCommandProperty method already supports a configurable maxDepth, and we want to align CallComponentProperty with this behavior.

To support this enhancement, the following changes are required:

- SDK: Modify CallComponentProperty to accept an optional maxDepth parameter and pass it down to the response serialization logic.

- Bindings(All 4): Update the corresponding command definitions in all language bindings (C#, Python, Java, Robot) to optionally accept the maxDepth argument.

- Documentation: Update the command documentation to reflect the new maxDepth parameter.

## Additional info

1. This should mirror the implementation already used in GetCommandProperty.
2. If maxDepth is not provided, behavior should remain backward-compatible with the current logic (maxDepth = 2).

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。