Particle System

Importing a particle asset

Put the Cocos2d-s supported particle .plist directly under the project resource directory.

imported

Adding a particle system to the scene

Method 1: Drag and drop particle assets from Assets panel directly into the Node Tree panel.

drag-to-hierarchy

Method 2: Drag and drop particle assets from Assets directly into the Scene.

drag-to-scene

Method 3: Add a ParticleSystem component to an existing node, and assign the particle assets from the Assets directly to the File property of the component.

drag-to-inspector

Note: The import of the sourcePosition property in the .plist file is not supported.

Stored in the project

In order to improve the efficiency of resource management, it is recommended that you import plist and png (if you have a map) file in a separate directory, do not mix with other resources.

Fixing render error

The png map file used by the particle or the built-in picture file in base64 format may have incorrect pre-multiplication information, causing the rendered particles to display the transparent area incorrectly. If this happens, manually modify the blendFuncSource property in the particle plist file to the following value:

<key>blendFuncSource</key>
<integer>770</integer>

results matching ""

    No results matching ""