Home > other >  Cocos creator precast instantiation is not shown
Cocos creator precast instantiation is not shown

Time:09-30

Will be a square and a square Sprite elves editbox to prefab respectively, through the script to display on the screen four square, random two of them are Sprite, two is editbox, script as shown in figure, please point out where I was wrong, why simulator was dark what all have no, thank you very much!

CodePudding user response:

The two have set the size of the precast body

CodePudding user response:

reference 1st floor qq_26895535 response:
is there any set up in this two precast body size
I was in the cocos creator attribute set size checker, W, H 100 each

CodePudding user response:

If ((m!==I [0]) & amp; (m!==I [1]))

CodePudding user response:

This compilation yes you

CodePudding user response:

reference 4 floor qq_26895535 response:
did you compile the right
no error, not this reason, the take out, the simplest instantiation prefab directly, or not

CodePudding user response:

I see, thank you for reminding, I made a mistake, the coordinates of was out of bounds, so what all don't

CodePudding user response:

The
reference 4 floor qq_26895535 reply:
did you compile the right
thank you for reminding me, is my mistake, the coordinates of was out of bounds, so nothing simulator

CodePudding user response:

I tried once said there is no problem, what did you simulator to start the console output

CodePudding user response:

refer to 7th floor, implicit response:
Quote: refer to 4th floor qq_26895535 response:
did you compile the right
thank you for reminding me, is my mistake, the coordinates of was out of bounds, so nothing simulator
ok

CodePudding user response:

refer to the eighth floor qq_26895535 response:
I tried once said there is no problem, what did you simulator to start the console output
yi? You tried, no problem? I must get the coordinates into a smaller number can, such as close to (0, 0), otherwise the simulator is a piece of black, what all have no, is that the problem of coordinate system, validate bosses

CodePudding user response:

I am a direct instance add
If ((m!==I [0]) & amp; (m!==I [1])) here I compile error when I was so useless your coordinate system

CodePudding user response:

Thank you for reminding me, I made a mistake, the coordinates of was out of bounds

CodePudding user response:

reference 1st floor qq_26895535 response:
is there any set up in this two precast body size
yes, set size
  • Related