Unable to type in input with Unity WebGL background div in React JS
问题 import React from 'react'; import ReactDOM from 'react-dom'; import {Unity} from 'react-unity-webgl'; var timerCount = 0; export default class App extends React.Component { constructor(props) { super(props); this.state = { nPageNum: 0}; } componentDidMount() { this.startTimer(this); } render() { if (timerCount > 5) { return( <div style={{ width: '100%', height: '100%' }}> <div style={{ position: 'absolute', width: '100%', height: '100%', zIndex: 0 }}> <Unity src="Libs/object_unity/Build/WebGL