Skip to content

Add materials prop to ARPlaneSelector for plane customization#419

Open
mrankkiiiii wants to merge 1 commit intoReactVision:mainfrom
mrankkiiiii:feature/custom_material_plane
Open

Add materials prop to ARPlaneSelector for plane customization#419
mrankkiiiii wants to merge 1 commit intoReactVision:mainfrom
mrankkiiiii:feature/custom_material_plane

Conversation

@mrankkiiiii
Copy link

Summary

This PR adds a new materials prop to ViroARPlaneSelector, allowing developers to customize the material applied to detected planes.

Motivation

Previously, the plane material was fixed and could not be customized. This change improves flexibility and enables better visual customization for AR experiences.

Changes

  • Added materials prop to `ViroARPlaneSelector
  • Passed the materials to the underlying plane component
  • Maintains backward compatibility with existing usage

Usage Example

<ViroARPlaneSelector materials="customPlaneMaterial">
  {children}
</ViroARPlaneSelector>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant