How to get all actions name on Xcode action editor in sks file "SpriteKit action"
<p>I've a SpriteKit action file with some actions inside.</p>
<p><a href="https://i.stack.imgur.com/yVI0V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVI0V.png" alt="enter image description here" /></a></p>
<p>To use one action, I use:</p>
<pre><code>let action = SKAction(named: &quot;Shake&quot;)
</code></pre>
<p><strong>Instead</strong> is possible to use directly the name inside <strong>MyActions.sks</strong> file?
<strong>Something like:</strong></p>
<pre><code>let actions = SKScene(fileNamed: &quot;MyActions.sks&quot;)`  
let shakeAction = actions.listOfAction.Shake //this is my guess
</code></pre>
<p>If I print the scene file:</p>
<pre><code>let actions = SKScene(fileNamed: &quot;MyActions.sks&quot;)
print(actions)
</code></pre>
<p><strong>the output is:</strong></p>
<pre><code>Optional({
    &quot;_info&quot; =     {
        &quot;_previewScenePath&quot; = &quot;PippiPompiere/GameScene.sks&quot;;
    };
    actions =     {
        PlayerIdle1 = &quot;&lt;SKGroup: 0x79e60ec0&gt;&quot;;
        PlayerMoveToHouse0 = &quot;&lt;SKGroup: 0x7b1ea010&gt;&quot;;
        PlayerMoveToHouse1 = &quot;&lt;SKGroup: 0x7b052cd0&gt;&quot;;
        PlayerMoveToHouse2 = &quot;&lt;SKGroup: 0x7b1ebbd0&gt;&quot;;
        Rotate360 = &quot;&lt;SKGroup: 0x79e61710&gt;&quot;;
        Shake = &quot;&lt;SKGroup: 0x79e60a10&gt;&quot;;
        SunShake = &quot;&lt;SKGroup: 0x7b1e8620&gt;&quot;;
        WaterJet = &quot;&lt;SKGroup: 0x7b1e8ce0&gt;&quot;;
    };
})
(lldb) 
</code></pre>
<p>is possible to have actions like an array?</p>
<p>thanks</p>