AtomicGameEngine icon indicating copy to clipboard operation
AtomicGameEngine copied to clipboard

Documentation Rain Catch - Important things to document

Open JoshEngebretson opened this issue 10 years ago • 2 comments

Component inspector fields are valid as of the start function, they are not valid in the constructor as the object has not been created (so the fields couldn't have been set)

An object literal initializer passed to createJSComponent is also valid as of the start function

JoshEngebretson avatar Aug 14 '15 00:08 JoshEngebretson

Class components that derive from JSComponent, export their class function to module.exports (via the mechanisms provided by TypeScript, etc).

"Flat" JavaScript components export their function to the exports.component property

JoshEngebretson avatar Aug 14 '15 21:08 JoshEngebretson

When editing ui layout scripts, ensure that there is no trailing space on the lines and the indents are using true tabs and not spaces. Additionally, scripts should be edited outside the Atomic editor for now as the editor expands tabs to spaces.

shaddockh avatar Aug 31 '15 02:08 shaddockh