SanAndreasUnity/Assets/Scripts/Behaviours/PedestrianModelViewerUI.cs
2020-05-31 19:07:22 +02:00

20 lines
No EOL
505 B
C#

using SanAndreasUnity.Behaviours;
using SanAndreasUnity.Importing.Animation;
using UnityEngine;
public class PedestrianModelViewerUI : MonoBehaviour
{
public PedModel pedestrian = null;
private void OnGUI()
{
if (null == pedestrian)
return;
GUILayout.Label("Current model ID: " + pedestrian.PedestrianId);
GUILayout.Label("Current model name: " + ((pedestrian.Definition != null) ? pedestrian.Definition.ModelName : "(null!)"));
}
}