Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

add instance when initial count=0

neptas
Level 6
Level 6
Hello,



Can someone tellme how to dynamically add an instance of a section, when that section as at design time a initial count of zero?



just doing: objectsection.instanceManager.addInstance (1);

doesn´t work.



Thank you
1 Reply
pguerett
Level 10
Level 10
If the object does not exist yet then the addInstance method will not work (as you have found out). There is a syntax that allows for this buy using:



_objectsection.addInstance(1)



The underscore (_) indicates that you want to communicate with the instanceManager.