Open PankajJatav opened 9 years ago
Can you isolate the bug/ track it down to a specific part of your application?
Typically Uncaught Error: This node does not have access to a transform component
occurs in one of the following scenarios:
setPosition
, setRotation
etc.)Scenes can't have a transform component. They are a "special" type of Node, e.g. they are their own parents and are the "root" of your scene graph.
GitHub supports Flavored Markdown, you might want to fix your formatting.
While using of property of new created node.
function Dot(step) {
/*New node create*/
Node.call(this);
/*End new node create*/
/* Setting up the node */
this
.setMountPoint(0.5, 0.5, 0.5)
.setAlign(0.5, 0.5, 0.5)
.setSizeMode('absolute', 'absolute', 'absolute')
.setAbsoluteSize(DOT_SIZE, DOT_SIZE, DOT_SIZE);
/* End setting up the node */
// Add the DOMElement (DOMElements are components).
this.el = new DOMElement(this, {
properties: {
background: createColorStep(step),
borderRadius: '100%'
}
});
// Add the Position component.
// The position component allows us to transition between different states
// instead of instantly setting the final translation.
this.position = new Position(this);
}
Will look into this today.
Same issue occured when I replace the index.js of the seed project with the homepage code of 'mixed mode'
Is the project still under maintain, seems no update over six months ...
I have clone the seed project the replace the default code by
then i am getting error in console. Uncaught Error: This node does not have access to a transform component