상호 작용 가능한 구성 요소 및 스크립트 이해
장면의 아바타와 개체 간의 상호 작용을 제공하는 Interactables를 더 잘 이해하기 위해서는 Grab, hold and throw with Interactables 문서를 검토한 다음 Mesh Interactable Setup 또는 Mesh Interactable Body 구성 요소를 포함하여 상호 작용 가능한 메시 파빌리온 샘플의 개체를 살펴보는 것이 좋습니다. 특정 개체에 연결된 시각적 스크립트를 검사하면 추가 인사이트를 얻을 수 있습니다. 스크립트에는 메시용으로 특별히 만들어진 표준 Unity 노드와 노드가 혼합되어 있습니다. 메시 노드에 대한 자세한 내용은 Visual Scripting 노드 참조를 참조 하세요. 파빌리온 샘플에는 GameObjects가 많이 있습니다. 아래 목록과 표를 사용하면 스크립트에서 상호 작용 가능한 개체 및 Mesh 노드를 더 쉽게 찾을 수 있습니다.
파빌리온 활동
다음은 Interactable이 포함된 파빌리온 샘플의 활동 또는 개체입니다.
- 콩 가방 토스
- 구운 마시멜로를 곁들인 화재 구덩이
- 얼음 차단기
- 라디오
- 구 조각
- 태양계
- 글로브
메시 상호 작용 가능 설치 구성 요소가 있는 개체
- beanbag_red
- beanbag_blue
- toybox_beanbag_reset_button_variant
- InteractableSphere
- Planet_Mars
- Planet_Earth
- Planet_Jupiter
- Reset_Button_Marshmallow_Varient
- MarshmallowStick
- 버튼
- toybox_play_button_01_varient
- Planet_Mars
- Planet_Earth
- Planet_Jupiter
- Planet_astronaut_hip
- Button(ButtonHolder의 자식 개체)
- toybox_play_button_01_varient
메시 상호 작용 가능한 본문 구성 요소가 있는 개체
- beanbag_red
- beanbag_blue
- toybox_beanbag_reset_button_variant
- Reset_Button_Marshmallow_Varient
- Button(ButtonHolder의 자식 개체)
- toybox_play_button_01_varient
메시 물리학 구성 요소가 있는 개체
GameObject | 구성 요소 |
---|---|
Gravity | 궤도 중력장 |
ContainmentField | 포함 필드 |
Astronaut_containment | 포함 필드 |
부 력 | 부력 필드 |
빈백스, 마시멜로 홀더, Marshmallow_Pos | 본문 변환 다시 설정 |
Marshmallow_Pos | 본문 변환 다시 설정 |
스크립트 그래프에 사용되는 메시 노드
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
Campfire | Reset_Button_Marshmallow_Varient | ResetButton | ResetButton |
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |
구 조각 | InteractableSphere | SpheresSculptureSphere | SpheresSculptureSphere_Simple |
쇄빙선 | 쇄빙선 | 쇄빙선 | 쇄빙선 |
Music Box | Radio_Pressable_Prefab | 가압 라디오 | PressableRadio |
Music Box | toybox_play_button_01_varient | PlayButton 스크립트 | PlayButton_Script |
메시 상호 작용 가능한 본문: 장착됨
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |
메시 상호 작용 가능한 본문: 목표
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |
메시 상호 작용 가능한 본문: 선택됨
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
Campfire | Reset_Button_Marshmallow_Varient | ResetButton | ResetButton |
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |
구 조각 | InteractableSphere | SpheresSculptureSphere | SpheresSculptureSphere_Simple |
메시 상호 작용 가능한 본문: 로컬에서 선택됨
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
쇄빙선 | 쇄빙선 | 쇄빙선 | 쇄빙선 |
Music Box | Radio_Pressable_Prefab | 가압 라디오 | PressableRadio |
Music Box | toybox_play_button_01_varient | PlayButton 스크립트 | PlayButton_Script |
메시 상호 작용 가능한 본문: IsHovered
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
구 조각 | InteractableSphere | SpheresSculptureSphere | SpheresSculptureSphere_Simple |
쇄빙선 | 쇄빙선 | 쇄빙선 | 쇄빙선 |
본문 변환 다시 설정: 이제 본문 변환 다시 설정
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
Campfire | Reset_Button_Marshmallow_Varient | ResetButton | ResetButton |
공간 오디오 속성: 만들기
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |
구 조각 | InteractableSphere | SpheresSculptureSphere | SpheresSculptureSphere_Simple |
Microsoft Mesh: 메시 오디오 재생
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |
구 조각 | InteractableSphere | SpheresSculptureSphere | SpheresSculptureSphere_Simple |
Microsoft Mesh: 임의 소리
활동 | GameObjects | 스크립트 컴퓨터 이름 | 그래프 이름 |
---|---|---|---|
콩 가방 토스 | beanbag_red, beanbag_blue | BeanBagPower | BeanBagGraph |