alttester / alttester/AltTester-Unity-SDK

Add optional maxDepth parameter to CallComponentProperty method

Đang mở
#1,823 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
2.2.6 feature
Ngôn ngữ chính
C#
Star
121
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# 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).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.