Added player character and step in/out of dialogue in scene 101

This commit is contained in:
2026-08-15 15:22:47 +02:00
parent a42f25d5fa
commit 38ba2b0eff
2019 changed files with 181227 additions and 265 deletions
@@ -0,0 +1,57 @@
using UnityEngine.ProBuilder;
using UnityEngine;
namespace UnityEditor.ProBuilder.Actions
{
sealed class GenerateUV2 : MenuAction
{
public override ToolbarGroup group
{
get { return ToolbarGroup.Object; }
}
public override string iconPath => "Toolbar/Object_GenerateUV2";
public override Texture2D icon => IconUtility.GetIcon(iconPath);
public override TooltipContent tooltip
{
get { return s_Tooltip; }
}
protected internal override bool hasFileMenuEntry
{
get { return false; }
}
static readonly TooltipContent s_Tooltip = new TooltipContent
(
"Lightmap UVs",
@"Generate Lightmap UVs for any meshes in the open scenes that are missing them."
);
public override bool enabled
{
get { return true; }
}
protected override MenuActionState optionsMenuState
{
get { return MenuActionState.VisibleAndEnabled; }
}
protected override ActionResult PerformActionImplementation()
{
var res = Lightmapping.RebuildMissingLightmapUVs(EditorUtility.FindObjectsByType<ProBuilderMesh>(), true);
if (res < 1)
return new ActionResult(ActionResult.Status.Success, "No Missing Lightmap UVs Found");
return new ActionResult(ActionResult.Status.Success, "Generate Lightmap UVs\n" +
(res > 1 ? string.Format("for {0} objects", res) : "for 1 object"));
}
protected override void DoAlternateAction()
{
EditorWindow.GetWindow<LightmapUVEditor>(true, "Lightmap UV Editor", true).position = LightmapUVEditor.desiredPosition;
}
}
}