alttester / alttester/AltTester-Unity-SDK

Add optional maxDepth parameter to CallComponentProperty method

未关闭
#1,823 0 条评论 0 个 reaction 已指派 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 摘要。