Closed ngokevin closed 8 years ago
Would like to be able to create something like:
<Light type="directional"/>
while still being able to mix in arbitrary components:
<Light type="directional" geometry="primitive: sphere" material={sphereColor}/>
Can do this by having a React component that detects a main schema and expanding the properties of the schema onto the main component, and then applying the rest of the components as attributes.
<a-entity light="{lightSchemaProperties}" {...otherComponents}>
Not going to recommend creating React components to alias one entity.
Would like to be able to create something like:
while still being able to mix in arbitrary components:
Can do this by having a React component that detects a main schema and expanding the properties of the schema onto the main component, and then applying the rest of the components as attributes.