質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Unity

Unityは、Unity Technologiesが開発・販売している、IDEを内蔵するゲームエンジンです。主にC#を用いたプログラミングでコンテンツの開発が可能です。

Q&A

解決済

1回答

1919閲覧

unityのゲーム公開が上手くいきません

pet

総合スコア4

Unity

Unityは、Unity Technologiesが開発・販売している、IDEを内蔵するゲームエンジンです。主にC#を用いたプログラミングでコンテンツの開発が可能です。

0グッド

0クリップ

投稿2020/06/07 16:08

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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

fiveHundred

2020/06/08 01:08

> Unityで作ったゲームはWebGL型をビルドすることは正常にできています。 何をもって、正常にできたと判断したのでしょうか? > Unityを最新バージョンにしてからWebGL型でビルドした物を公開しようとしています。 「最新バージョン」ではなく、具体的なバージョンを記載してください。 もし本当に正しくやって、上手くいかないのであれば、unityroomの仕様(新しいバージョンの未対応など)やバグの可能性があるので、unityroomの運営に問い合わせるのが一番確実だと思いますが、どうでしょうか。
pet

2020/06/08 01:29

すみません”正常”ではありませんでした。”一応”ビルドができた状態です。実行不可のエラーが出ていないというだけで、忠告は出てしまっています。それとUnityのバージョンは2019.3.15f1です。
fiveHundred

2020/06/08 01:33

> 忠告は出てしまっています。 「忠告」とは何のことですか? warningのことであれば、その内容をコピペで記載してください。
pet

2020/06/08 02:28

warningが34件もでてしまっています。
fiveHundred

2020/06/08 02:35

34件とだけ書かれても、こちらからは内容が全く分からないので、答えようがありません。 (私含めて、回答者はあくまでも「状況が何も分かっていない赤の他人」にすぎないので、具体的に状況を示すように心がけてください)
pet

2020/06/08 03:01

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件全部です
guest

回答1

0

自己解決

すみません。解決しました。Unity roomの使い方を間違ってました。

投稿2020/06/08 03:25

pet

総合スコア4

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問