Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88857

Uncaught TypeError: Cannot read property 'position' of undefined

$
0
0

@441479013 写道:

cc.Class({
    extends: cc.Component,

    properties: {


        bj: {
            default: null,
            type: cc.Node
        }



    },

    // LIFE-CYCLE CALLBACKS:

     onLoad () {
    


       cc.log(this.bj.node.position.x);


    
    },

一直提示 Uncaught TypeError: Cannot read property 'position' of undefined

为什么呢 头疼一晚上了。

帖子: 2

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88857

Trending Articles



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