title: SKNode alpha not copied on [node copy]
body: <p>In my sprite kit project I am trying to duplicate a node and its children however it seems upon using [SKNode copy] all alpha properties set previously are lost, this is inclusive of all child nodes.</p>
  
  <p>Is there an elegant way to duplicate the alpha properties along with nodes?</p>
  
  <p>edit:
  this is my work around that works for my project and hopefully will help others, however I wouldn't call it a complete answer so i'll leave the question open.</p>
  
  <p>I have created an array called "alphaNames" with the names of the nodes I have change alpha values and an array called "alphaValues" with the corresponding values, then implemented the following code prior to adding to using the copied node.</p>
  
  <pre><code>for (NSString *nodeName in alphaNames) {
       NSString *searchString = @"//";
       SKNode *alphaNode = [copiedNode childNodeWithName:[searchString stringByAppendingString:nodeName]];
       alphaNode.alpha = [[alphaValues objectAtIndex:[alphaNames indexOfObject:nodeName]] floatValue];
  }
  </code></pre>
  
  <p>This searches the entire tree under the copied node for nodes with names in the alphaNames array then applies the appropriate alpha value to it.</p>