質問編集履歴
2
エラーが1つになったので変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,9 +6,6 @@
|
|
6
6
|
|
7
7
|
やりたいことは、ドロップダウンメニューで選んだものに応じてキャンバスと樹木のゲームオブジェクトを変更するというものです。
|
8
8
|
|
9
|
-
ここに質問の内容を詳しく書いてください。
|
10
|
-
(例)PHP(CakePHP)で●●なシステムを作っています。
|
11
|
-
■■な機能を実装中に以下のエラーメッセージが発生しました。
|
12
9
|
|
13
10
|
### 発生している問題・エラーメッセージ
|
14
11
|
|
1
エラーが1つになったので変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
unityでゲームシーン再生ボタンを押すと「NullReferenceException: Object reference not set to an instance of an object
|
3
3
|
SelectItem.Awake () (at Assets/Script/SelectItem.cs:21)」と「ArgumentNullException: Value cannot be null.
|
4
4
|
Parameter name: dest」
|
5
|
-
のエラーメッセージがでて、画面が真っ黒になり、一時停止ボタンが勝手に押されている状態になります。
|
5
|
+
のエラーメッセージがでて、画面が真っ黒になり、一時停止ボタンが勝手に押されている状態になります。
|
6
6
|
|
7
7
|
やりたいことは、ドロップダウンメニューで選んだものに応じてキャンバスと樹木のゲームオブジェクトを変更するというものです。
|
8
8
|
|
@@ -18,12 +18,7 @@
|
|
18
18
|
|
19
19
|
void Awakeの部分でエラーが発生しています。
|
20
20
|
```
|
21
|
-
```
|
22
|
-
こちらのエラーはOVRHapticsというスクリプトのエラーでもともとのものから何も変更はしていません。
|
23
21
|
|
24
|
-
ArgumentNullException: Value cannot be null.
|
25
|
-
Parameter name: dest
|
26
|
-
```
|
27
22
|
|
28
23
|
### 該当のソースコード
|
29
24
|
|
@@ -99,29 +94,7 @@
|
|
99
94
|
}
|
100
95
|
}
|
101
96
|
```
|
102
|
-
### 該当のソースコード
|
103
97
|
|
104
|
-
```ここに言語名を入力
|
105
|
-
if (m_paddingEnabled)
|
106
|
-
{
|
107
|
-
int desiredPadding = desiredSamplesCount - (hapticsState.SamplesQueued + acquiredSamplesCount);
|
108
|
-
if (desiredPadding < (OVRHaptics.Config.MinimumBufferSamplesCount - acquiredSamplesCount))
|
109
|
-
desiredPadding = (OVRHaptics.Config.MinimumBufferSamplesCount - acquiredSamplesCount);
|
110
|
-
if (desiredPadding > hapticsState.SamplesAvailable)
|
111
|
-
desiredPadding = hapticsState.SamplesAvailable;
|
112
|
-
|
113
|
-
if (desiredPadding > 0)
|
114
|
-
{
|
115
|
-
int numBytes = desiredPadding * OVRHaptics.Config.SampleSizeInBytes;
|
116
|
-
int dstOffset = acquiredSamplesCount * OVRHaptics.Config.SampleSizeInBytes;
|
117
|
-
int srcOffset = 0;
|
118
|
-
Marshal.Copy(m_paddingClip.Samples, srcOffset, m_nativeBuffer.GetPointer(dstOffset), numBytes); // この部分にエラーが出ます
|
119
|
-
|
120
|
-
acquiredSamplesCount += desiredPadding;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
```
|
124
|
-
|
125
98
|
### 補足情報(FW/ツールのバージョンなど)
|
126
99
|
|
127
100
|
unity2021.1.2f1
|