SceneObject
개요
SceneObject은(는) Aspose.3D FOSS for TypeScript에 포함된 클래스입니다. 상속 대상: A3DObject.
SceneObject.scene은 객체가 씬에 연결되지 않은 경우 null을, 그렇지 않으면 상위 Scene 참조를 보유합니다.
이 클래스는 TypeScript 프로그램에서 SceneObject 객체용 메서드 6개를 선언합니다. 사용 가능한 메서드: constructor, findProperty, getProperty, removeProperty, setProperty, toString. 공개 멤버는 Aspose.3D FOSS for TypeScript 패키지를 설치한 후 모든 TypeScript 애플리케이션에서 접근할 수 있습니다. 속성: name, properties, scene.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
scene | `Scene | null` | 읽기/쓰기 |
name | string | 읽기/쓰기 | 이름을 가져옵니다. |
properties | PropertyCollection | 읽기 | 속성을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
constructor(name: string) | 이 SceneObject 인스턴스에서 constructor(name)를 호출합니다. |
findProperty(propertyName: string) → `Property | null` |
getProperty(property: string) → any | 이 SceneObject 인스턴스에서 getProperty(property)를 호출합니다. |
setProperty(property: string, value: any) | 속성 값을 설정합니다. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | 이 SceneObject 인스턴스에서 toString을 호출합니다. |