SanAndreasUnity/Assets/Scripts/Behaviours/PedestrianModelViewerUI.cs

20 lines
505 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
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!)"));
}
}