OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
CollisionLogger.cs
Go to the documentation of this file.
1
using
PixoVR.Core
;
2
using
System;
3
using
System.Collections;
4
using
System.Collections.Generic;
5
using
UnityEngine;
6
using
UnityEngine.UI;
7
8
public
class
CollisionLogger
: MonoBehaviour
9
{
10
[SerializeField]
11
List<GameObject>
itemCollision
=
new
List<GameObject>();
12
private
void
Awake
()
13
{
14
EventBetter
.Listen(
this
, (
CollisionMessage
msg) =>
LogCollision
(msg.
reporter
, msg.
collision
));
15
}
16
17
private
void
LogCollision
(Collider reporter, Collision collision)
18
{
19
Debug.Log(reporter.name +
" with "
+ collision.gameObject.name);
20
itemCollision
.Add(collision.gameObject);
21
}
22
23
}
CollisionLogger
Definition
CollisionLogger.cs:9
CollisionLogger.Awake
void Awake()
Definition
CollisionLogger.cs:15
CollisionLogger.itemCollision
List< GameObject > itemCollision
[SerializeField]
Definition
CollisionLogger.cs:14
CollisionLogger.LogCollision
void LogCollision(Collider reporter, Collision collision)
Definition
CollisionLogger.cs:20
CollisionMessage
Definition
CollisionReporter.cs:22
CollisionMessage.reporter
Collider reporter
Definition
CollisionReporter.cs:23
CollisionMessage.collision
Collision collision
Definition
CollisionReporter.cs:24
PixoVR.Core.EventBetter
Intentionally made partial, in case you want to extend it easily.
Definition
EventBetter.cs:20
PixoVR.Core
Definition
EventBetter.cs:14
com.pixovr.coreunitysdk
Samples
EventBetter
Collisions
CollisionLogger.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0