mirror of
https://git.aaro.dev/VRCBoard/vrcboard-udon.git
synced 2026-03-17 04:49:45 +00:00
Add old vrcboardimage script as vrcboardimagebasic
This commit is contained in:
@@ -191,12 +191,18 @@ namespace VRCBoard.Components
|
||||
OnDisable();
|
||||
EditorUtility.SetDirty(script);
|
||||
}
|
||||
|
||||
if (renderer.sharedMaterials.Length == 0)
|
||||
{
|
||||
EditorGUILayout.HelpBox("Material has no material slots.", MessageType.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
Material material = renderer.sharedMaterials[newMaterialIndex];
|
||||
|
||||
if (material == null)
|
||||
{
|
||||
EditorGUILayout.HelpBox("No material assigned to material slot ("+newMaterialIndex+")", MessageType.Warning);
|
||||
EditorGUILayout.HelpBox("No material assigned to material slot ("+newMaterialIndex+")", MessageType.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user