- Creator Version Required
- Supported Platform
- Sale Price
- $ 0.99 (Individual)
SSRDnDComponent is short for:
Drag and Drop
which is a
common operation in web browser.
And this component brings the feature into
Cocos Creator so that you can implmenet the
Drag-and-Drop style feature easily.
This component is only made for
Webwhich means it dose not support the
If you are plnning on making some browser-base editor with
Cocos Creator then this component might be your choice.
Simply add the
DnDComponent into any
cc.Node object will make the
cc.Node able to receive (DnD) files.
- Free to set the file exteions can be dropped
- Free to set the number of files can be dropped
- Fully callback functions supported
- Callbacks for file drag-in/drag-out event
- Callback for one file being loaded
- Callbacks for all files being loaded
DnDUtil will help you to convert the files loaded from the
DnDComponent into some useful
Cocos Creator Render Objects such as:
The demonstration video is here
How to use
- Copy the
SSRDnDComponent/assets/scripts/ssrfolder in the downloaded package into your project
- Then you will find the
For more details about how to use the component check the demo attached in the downloaded package.
If you have any question about this component, feel free to:
- Send me (@supersuraccon) a
- Leave a comment right here in the comment section
- Join my Channel on Discord for further discussion.