Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17068

[Question] Control Prefab with plugins

$
0
0

@unace wrote:

Hello Cocos team,
I have two questions related this documentation (https://docs.cocos2d-x.org/creator/manual/en/getting-started/faq.html#how-to-control-prefab-with-plugins).

  1. How can I know enter-prefab-edit-mode is done? I tried to use callback function, but the callback doesn’t seem to be called.
    Editor.Ipc.sendToPanel(‘scene’, ‘scene:enter-prefab-edit-mode’, ‘70d3a81e-af79-4f28-93b6-59ba6f2bef80’, () => { Editor.error(‘done’) });

  2. Is there an IPC message for exit-prefab-edit-mode or something similar?

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>