質問編集履歴
1
ソースコード追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,29 @@
|
|
11
11
|
|
12
12
|
子クラスで作成したフィールドはHideInInspectorのAttributeを付与することで、Inspector画面上で非表示にすることができることは確認できました。
|
13
13
|
|
14
|
+
String型で試したところフィールドが非表示になることが確認できましたが、SteamVR_Action_Boolean型だと本事象が発生するようです。
|
15
|
+
|
16
|
+
ソースコードは以下の通り。
|
17
|
+
```C#
|
18
|
+
子クラス
|
19
|
+
namespace Valve.VR.InteractionSystem
|
20
|
+
{
|
21
|
+
public class CustomTereport : Teleport
|
22
|
+
{
|
23
|
+
[HideInInspector] new public SteamVR_Action_Boolean teleportAction;
|
24
|
+
…
|
25
|
+
```
|
26
|
+
|
27
|
+
```C#
|
28
|
+
親クラス
|
29
|
+
namespace Valve.VR.InteractionSystem
|
30
|
+
{
|
31
|
+
//-------------------------------------------------------------------------
|
32
|
+
public class Teleport : MonoBehaviour
|
33
|
+
{
|
34
|
+
public SteamVR_Action_Boolean teleportAction = SteamVR_Input.GetAction<SteamVR_Action_Boolean>("Teleport");
|
35
|
+
…
|
36
|
+
```
|
14
37
|
### 補足情報(FW/ツールのバージョンなど)
|
15
38
|
|
16
39
|
Unity2019.4.17f
|