Skip to content

Commit

Permalink
add fromInstance and source to props (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
nturley authored Nov 24, 2020
1 parent 877ab8d commit 2e578de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/CreatedInstance.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Mesh } from "@babylonjs/core"
import { LifecycleListener } from "./LifecycleListener"
import { HasPropsHandlers } from "./PropsHandler"

Expand All @@ -19,6 +20,7 @@ export interface InstanceMetadataParameter {
isCamera?: boolean
isEffectLayer?: boolean;
isBehavior?: boolean;

}

/**
Expand Down Expand Up @@ -67,6 +69,14 @@ export type CustomProps = {
* for VRExperienceHelper
*/
enableInteractions?: boolean
/**
* allows components to use instances of objects created non-declaratively
*/
fromInstance?: any
/**
* for instancedMesh
*/
source?: Mesh
}

export interface CreatedInstanceMetadata extends InstanceMetadataParameter {
Expand Down

0 comments on commit 2e578de

Please sign in to comment.