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

docs issue at: 文本资源 #3055

Open
crater-xin opened this issue Oct 25, 2024 · 1 comment
Open

docs issue at: 文本资源 #3055

crater-xin opened this issue Oct 25, 2024 · 1 comment

Comments

@crater-xin
Copy link

filePath: zh/asset/text.md
content:

loadPCD(url: string) {  
    resources.load(url, (err, asset: TextAsset) => {  
        if (err) {
            console.error('Failed to load PCD file');
            console.error(err);
            return;  
        }
        console.log(asset);
        console.log(asset.text);
        console.log(asset._file);



        // const text: string = asset.text;  
        // this.parsePCD(text);  
    });  
}  

加载pcd文本文件,加载到的资源中,text是undefined,而_file中有值,但是编辑器报错,——file受保护

@MrKylinGithub
Copy link
Contributor

pcd文本文件是啥?可以考虑换成txt或者二进制之类的吗?

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

2 participants