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

Commit

Permalink
Ground plane visibility option exposed in studio (#9096)
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField authored Oct 24, 2023
1 parent c638c3f commit a7f388d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-core/i18n/en/editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@
"name": "Ground Plane",
"description": "A flat ground plane that extends into the distance.",
"lbl-color": "Color",
"lbl-receiveShadow": "Receive Shadow",
"lbl-generateNavmesh": "Generate Navmesh"
"lbl-visible": "Visible",
"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."
},
"loopAnimation": {
"title": "Loop Animation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { GroundPlaneComponent } from '@etherealengine/engine/src/scene/component

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

import BooleanInput from '../inputs/BooleanInput'
import ColorInput from '../inputs/ColorInput'
import InputGroup from '../inputs/InputGroup'
import NodeEditor from './NodeEditor'
Expand All @@ -55,6 +56,16 @@ export const GroundPlaneNodeEditor: EditorComponentType = (props) => {
onRelease={commitProperty(GroundPlaneComponent, 'color')}
/>
</InputGroup>
<InputGroup
name="Visible"
label={t('editor:properties.groundPlane.lbl-visible')}
info={t('editor:properties.groundPlane.info-visible')}
>
<BooleanInput
value={groundPlaneComponent.visible.value}
onChange={commitProperty(GroundPlaneComponent, 'visible')}
/>
</InputGroup>
<ShadowProperties entity={props.entity} />
</NodeEditor>
)
Expand Down

0 comments on commit a7f388d

Please sign in to comment.