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