Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit d6de7c3

Browse files
committed
ground plane visibility
1 parent 1b8d50c commit d6de7c3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

β€Žpackages/client-core/i18n/en/editor.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@
295295
"name": "Ground Plane",
296296
"description": "A flat ground plane that extends into the distance.",
297297
"lbl-color": "Color",
298-
"lbl-receiveShadow": "Receive Shadow",
299-
"lbl-generateNavmesh": "Generate Navmesh"
298+
"lbl-visible": "Visible",
299+
"info-visible": "Toggle the visibility of the ground plane. Setting to false will still allow shadows to be received, rather than setting the entity visibility."
300300
},
301301
"loopAnimation": {
302302
"title": "Loop Animation",

β€Žpackages/editor/src/components/properties/GroundPlaneNodeEditor.tsxβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { GroundPlaneComponent } from '@etherealengine/engine/src/scene/component
3131

3232
import SquareIcon from '@mui/icons-material/Square'
3333

34+
import BooleanInput from '../inputs/BooleanInput'
3435
import ColorInput from '../inputs/ColorInput'
3536
import InputGroup from '../inputs/InputGroup'
3637
import NodeEditor from './NodeEditor'
@@ -55,6 +56,16 @@ export const GroundPlaneNodeEditor: EditorComponentType = (props) => {
5556
onRelease={commitProperty(GroundPlaneComponent, 'color')}
5657
/>
5758
</InputGroup>
59+
<InputGroup
60+
name="Visible"
61+
label={t('editor:properties.groundPlane.lbl-visible')}
62+
info={t('editor:properties.groundPlane.info-visible')}
63+
>
64+
<BooleanInput
65+
value={groundPlaneComponent.visible.value}
66+
onChange={commitProperty(GroundPlaneComponent, 'visible')}
67+
/>
68+
</InputGroup>
5869
<ShadowProperties entity={props.entity} />
5970
</NodeEditor>
6071
)

0 commit comments

Comments
Β (0)