Cannnot change array size more than the size that decided first.

sakuramoti

New member
First, I made script like this.

image.png

Next, I set value in element 0.
スクリーンショット 2021-12-21 2.55.01.png


Next, I set 5 in Test Array of Element 1. ( Sorry, I cannot attach image file because of limit. )
But, it change 5 in Test Array of Element 0. Element 1 is not changed.

I want to set another array size in element 0 and element 1.
Could you tell me how to set?
 
I just tried your scenario and it worked - make sure you are running the latest version.
 
Thank you for checking.
I tried latest version (version 1.7.2) and Unity Version is 2020.3.25f1. Os is Mac.
But I failed.
Although I inputed 55 in Test Array of Element 1, it was changed Test Array of Element 0.
スクリーンショット 2021-12-21 19.35.03.png
What's your Unity Version and Behavior Designer Version.
I tried windows, but result is same.

I maybe couldn't tell you the situation right, so I added the screen movie.
 

Attachments

  • スクリーンショット 2021-12-21 19.33.12.png
    スクリーンショット 2021-12-21 19.33.12.png
    22.7 KB · Views: 0
Last edited:
Oh, I misunderstood. After I changed the array size of TestArray in Element0 I then tried to change the Element1 within that array. Not the parent Element1. I was able to reproduce the issue that you're experiencing. I'll take a closer look and send you a PM with the fix as soon as I solve it.
 
I'm sorry I can't communicate well because I'm not good at English.
Thank you for checking again.
I would appreciate your kind consideration.
 
First, I made this script.スクリーンショット 2021-12-23 0.33.26.png

And set value as show in the video.
If I set array size more than the size decided first, The screen is not displayed right.

Could you check it?
 
This looks like it is related to your other post but I'll verify that it works before I send you the fix.
 
Top