cocos2d: is the child of a child of a batch node handled by the batch node?

StackOverflow https://stackoverflow.com/questions/23583745

  •  19-07-2023
  •  | 
  •  

Вопрос

Badly worded question maybe... If I add a sprite as a child of a batch node, and then add another sprite as a child of the first sprite, will that sprite receive the same benefit of the batch node? Or do you have to add it directly to the batch node?

Это было полезно?

Решение

In version 2.1, the answer is yes. Make certain that the grand-child of the batch node has the same texture as that which was used for the batch node.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top