The Branch Unity SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
Description of Issue: When adding in the domains as array elements of the app links array in the Branch prefab, the values would disappear from the input field once it lost focus
Fix:
The value for the array elements was being assigned inside of Unity's OnInspectorGUI() lifecycle method. This caused the empty array elements from the BranchDataObject to keep populating the Branch prefab values every time the inspector was redrawn (after a change, i.e. an input field losing focus)
To fix this issue, the fetching of these values was moved into OnEnable so that the initialization with FindPropery() occurs once and then the fields will be updated by the existing code inside of OnInspectorGUI() (i.e. The EditorGUILayout.PropertyField calls)
Link to Ticket: https://branch.atlassian.net/browse/SDK-1499
Description of Issue: When adding in the domains as array elements of the app links array in the Branch prefab, the values would disappear from the input field once it lost focus
Fix: The value for the array elements was being assigned inside of Unity's OnInspectorGUI() lifecycle method. This caused the empty array elements from the BranchDataObject to keep populating the Branch prefab values every time the inspector was redrawn (after a change, i.e. an input field losing focus)
To fix this issue, the fetching of these values was moved into OnEnable so that the initialization with FindPropery() occurs once and then the fields will be updated by the existing code inside of OnInspectorGUI() (i.e. The EditorGUILayout.PropertyField calls)