문제

I'm using Cocos3d to show a 3D Model. When I click on a node, I change the color of it.

Now I want to reset the color at the second click to the original texture (not only simple color, but patterns etc.). How can I do this? (My problem is resetting the color and not to detect the second click!)

I change the color in the first click:

ccColor3B ccDARKMAGENTA = {139,0,139};
[aNode setColor:ccColor3B.ccDARKMAGENTA];

Thank you!

도움이 되었습니까?

해결책

White is the no-color color:

[aNode setColor:ccColor3B.ccWHITE];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top