Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Inspector #232

Closed
mankichi89 opened this issue Jan 14, 2018 · 3 comments
Closed

Extend Inspector #232

mankichi89 opened this issue Jan 14, 2018 · 3 comments
Assignees

Comments

@mankichi89
Copy link

URL : https://github.com/cocos-creator/creator-docs/blob/master/en/extension/extends-inspector.md

It's seem does not work, i do exactly as guide but nothing happen. All attributes always do not appear in property panel whatever i do in inspector.js file
2018-01-14_153935

@genox-wang
Copy link

i have the sam problem, how to fix it

@aztack
Copy link

aztack commented May 15, 2018

The official tutorial missed a main.js and package.json:

main.js

'use strict';

module.exports = {
  load() {
    // execute when package loaded
  },
  unload() {
    // execute when package unloaded
  },
  // register your ipc messages here
  messages: {}
};

package.json

{
  "name": "COMPONENT",
  "version": "0.0.1",
  "description": "description",
  "author": "author",
  "main": "main.js"
}

put those file besides your COMPONENT-inspector.js and set editor.inspector to package:https://component-name/COMPONENT-inspector.js.

I wrote a generator for this.

Please feel free to submit a issue 😄

@jareguo jareguo assigned ColinCollins and unassigned VisualSJ May 15, 2018
@jareguo
Copy link
Contributor

jareguo commented May 15, 2018

@ColinCollins Please verify this issue and improve the extends-inspector document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants