0

我无法让外观控件与aframe-react一起使用。WASD 控件工作正常,资产显示正常。

import React from 'react';
import 'aframe';
import {Entity, Scene, Animation} from 'aframe-react';

class AugmentedForest extends React.Component {
  render() {
    return (
      <Scene>
        <a-assets>
          <img id="forest-360" src="./images/forest_360.JPG"/>
        </a-assets>
        <Entity>
          <Entity camera="" look-controls="" wasd-controls=""/>
        </Entity>
        <a-sky src="#forest-360"/>
      </Scene>
    );
  }
}

export default AugmentedForest;
4

0 回答 0