Unityでゲームを作ったものをUnity roomへ公開したいのですが、Unity roomのゲーム画面へ行ってもゲームを実行してくれません。エラー文として"An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was: Uncaught SyntaxError: Unexpected number"と出てきます。Unityで作ったゲームはWebGL型をビルドすることは正常にできています。JavaScriptはよく分からないので、何もできません。どうしたら良いでしょうか?ちなみにUnityのバージョンは2017で作った物が上手くいかなかったので、Unityを最新バージョンにしてからWebGL型でビルドした物を公開しようとしています。https://unityroom.com/games/ayato-new-game
> Unityで作ったゲームはWebGL型をビルドすることは正常にできています。
何をもって、正常にできたと判断したのでしょうか?
> Unityを最新バージョンにしてからWebGL型でビルドした物を公開しようとしています。
「最新バージョン」ではなく、具体的なバージョンを記載してください。
もし本当に正しくやって、上手くいかないのであれば、unityroomの仕様(新しいバージョンの未対応など)やバグの可能性があるので、unityroomの運営に問い合わせるのが一番確実だと思いますが、どうでしょうか。
すみません”正常”ではありませんでした。”一応”ビルドができた状態です。実行不可のエラーが出ていないというだけで、忠告は出てしまっています。それとUnityのバージョンは2019.3.15f1です。
> 忠告は出てしまっています。
「忠告」とは何のことですか?
warningのことであれば、その内容をコピペで記載してください。
warningが34件もでてしまっています。
34件とだけ書かれても、こちらからは内容が全く分からないので、答えようがありません。
(私含めて、回答者はあくまでも「状況が何も分かっていない赤の他人」にすぎないので、具体的に状況を示すように心がけてください)
Assets\CameraController.cs(25,23): warning CS0618: 'Quaternion.ToEulerAngles()' is obsolete: 'Use Quaternion.eulerAngles instead. This function was deprecated because it uses radians instead of degrees.'
Assets\CameraController.cs(27,35): warning CS0618: 'Quaternion.EulerAngles(float, float, float)' is obsolete: 'Use Quaternion.Euler instead. This function was deprecated because it uses radians instead of degrees.'
Assets\Detonator Explosion Framework\System\Detonator.cs(175,49): warning CS0618: 'SystemInfo.supportsImageEffects' is obsolete: 'supportsImageEffects always returns true, no need to call it'
Assets\Detonator Explosion Framework\System\DetonatorHeatwave.cs(65,13): warning CS0618: 'SystemInfo.supportsImageEffects' is obsolete: 'supportsImageEffects always returns true, no need to call it'
Assets\Detonator Explosion Framework\System\Detonator.cs(427,13): warning CS0618: 'SystemInfo.supportsImageEffects' is obsolete: 'supportsImageEffects always returns true, no need to call it'
Assets\MuzzleFlash.cs(26,27): warning CS0618: 'Quaternion.ToEulerAngles()' is obsolete: 'Use Quaternion.eulerAngles instead. This function was deprecated because it uses radians instead of degrees.'
Assets\Detonator Explosion Framework\System\DetonatorBurstEmitter.cs(34,27): warning CS0414: The field 'DetonatorBurstEmitter._psRenderMode' is assigned but its value is never used
Assets\Detonator Explosion Framework\System\DetonatorBurstEmitter.cs(138,15): warning CS0414: The field 'DetonatorBurstEmitter.epsilon' is assigned but its value is never used
Assets\Standard Assets\Utility\ActivateTrigger.cs(57,33): warning CS0618: 'Object.DestroyObject(Object)' is obsolete: 'use Object.Destroy instead.'
Assets\Standard Assets\Utility\TimedObjectDestructor.cs(24,13): warning CS0618: 'Object.DestroyObject(Object)' is obsolete: 'use Object.Destroy instead.'
Assets\Standard Assets\CrossPlatformInput\Scripts\MobileControlRig.cs(40,36): warning CS0618: 'TouchInputModule' is obsolete: 'TouchInputModule is no longer required as Touch input is now handled in StandaloneInputModule.'
Assets\Standard Assets\Vehicles\Aircraft\Scripts\AeroplaneAudio.cs(22,44): warning CS0649: Field 'AeroplaneAudio.m_EngineSound' is never assigned to, and will always have its default value null
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(33,44): warning CS0649: Field 'CarController.m_SpeedType' is never assigned to, and will always have its default value
Assets\Standard Assets\Vehicles\Car\Scripts\CarAIControl.cs(38,39): warning CS0649: Field 'CarAIControl.m_StopWhenTargetReached' is never assigned to, and will always have its default value false
Assets\Standard Assets\Vehicles\Aircraft\Scripts\AeroplaneControlSurfaceAnimator.cs(9,51): warning CS0649: Field 'AeroplaneControlSurfaceAnimator.m_ControlSurfaces' is never assigned to, and will always have its default value null
Assets\Standard Assets\Utility\PlatformSpecificContent.cs(25,34): warning CS0649: Field 'PlatformSpecificContent.m_BuildTargetGroup' is never assigned to, and will always have its default value
Assets\Standard Assets\Vehicles\Car\Scripts\SkidTrail.cs(9,40): warning CS0649: Field 'SkidTrail.m_PersistTime' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(29,40): warning CS0649: Field 'CarController.m_FullTorqueOverAllWheels' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Aircraft\Scripts\AeroplaneAudio.cs(26,44): warning CS0649: Field 'AeroplaneAudio.m_WindSound' is never assigned to, and will always have its default value null
Assets\Standard Assets\Utility\SmoothFollow.cs(21,17): warning CS0649: Field 'SmoothFollow.heightDamping' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Utility\SmoothFollow.cs(10,21): warning CS0649: Field 'SmoothFollow.target' is never assigned to, and will always have its default value null
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(25,42): warning CS0649: Field 'CarController.m_CentreOfMassOffset' is never assigned to, and will always have its default value
Assets\Standard Assets\Vehicles\Aircraft\Scripts\AeroplanePropellerAnimator.cs(10,46): warning CS0649: Field 'AeroplanePropellerAnimator.m_PropellorBlurTextures' is never assigned to, and will always have its default value null
Assets\Standard Assets\Vehicles\Aircraft\Scripts\AeroplanePropellerAnimator.cs(9,44): warning CS0649: Field 'AeroplanePropellerAnimator.m_PropellorBlur' is never assigned to, and will always have its default value null
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(27,54): warning CS0649: Field 'CarController.m_SteerHelper' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(28,54): warning CS0649: Field 'CarController.m_TractionControl' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Utility\WaypointProgressTracker.cs(14,50): warning CS0649: Field 'WaypointProgressTracker.circuit' is never assigned to, and will always have its default value null
Assets\Standard Assets\Utility\SmoothFollow.cs(19,17): warning CS0649: Field 'SmoothFollow.rotationDamping' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(30,40): warning CS0649: Field 'CarController.m_ReverseTorque' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(26,40): warning CS0649: Field 'CarController.m_MaximumSteerAngle' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(37,40): warning CS0649: Field 'CarController.m_SlipLimit' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Vehicles\Car\Scripts\CarController.cs(38,40): warning CS0649: Field 'CarController.m_BrakeTorque' is never assigned to, and will always have its default value 0
Assets\Standard Assets\Utility\PlatformSpecificContent.cs(31,22): warning CS0649: Field 'PlatformSpecificContent.m_ChildrenOfThisObject' is never assigned to, and will always have its default value false
Assets\Standard Assets\Vehicles\Aircraft\Scripts\AeroplanePropellerAnimator.cs(8,44): warning CS0649: Field 'AeroplanePropellerAnimator.m_PropellorModel' is never assigned to, and will always have its default value null
が一応34件全部です
回答1件
あなたの回答
tips
プレビュー