Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: Marsh on March 09, 2014, 09:40:44 PM
-
Works on all platforms.
using UnityEngine;
using System;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("Mighty Professional")]
[Tooltip("Opens a Web Page")]
public class OpenWebPage : FsmStateAction
{
[Tooltip("The url you would like to open.")]
public FsmString url;
public override void OnEnter() {
Application.OpenURL(url.Value);
Finish ();
}
}
}
-
Hi,
Thanks for sharing!
It would be good to clean up the code tho, typically the url tooltip is wrong and the debug log is not necessary.
bye,
Jean
-
Thanks! @Marsh is very nice...just share the code. :D
-
np!
Fixed the code up a bit
-
Hi,
Excellent :)
Bye,
Jean