Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: play_edu on November 07, 2012, 05:33:53 AM
-
Hi,
Animator Timeline Cut scene editor is not work with play maker.it's great tool for making cinematic video.
Hear is link:
http://forum.unity3d.com/threads/135982-Animator-The-Ultimate-Timeline-Cutscene-Editor-for-Unity
-
Hi,
what would you like seeing accessible from playmaker? and what exactly do not work with playmaker? what function in particular?
bye,
Jean
-
Hi,
like this fsm action or hear is link http://forum.unity3d.com/threads/123270-Aperture-Cutscene-Editor-RELEASED/page2 (http://forum.unity3d.com/threads/123270-Aperture-Cutscene-Editor-RELEASED/page2)
using System;
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Animation)]
[Tooltip("Plays an Aperture Cutscene on a Game Object.")]
public class PlayApertureCutscene : FsmStateAction
{
[RequiredField]
[CheckForComponent(typeof(Cutscene))]
[Tooltip("Game Object which has a cutscene.")]
public FsmOwnerDefault gameObject;
[Tooltip("Event to send when the cutscene has finished playing. NOTE: Not sent with Loop mode!")]
public FsmEvent finishEvent;
[Tooltip("Event to send when the cutscene loops. If you want to send this event to another FSM use Set Event Target. NOTE: This event is only sent with Loop mode.")]
public FsmEvent loopEvent;
[Tooltip("Stop playing the cutscene when this state is exited.")]
public bool stopOnExit;
[Tooltip("Loop the cutscene.")]
public bool loopCutscene;
[Tooltip("Play the cutscene in reverse. Only works if the cutscene has already been played forwards by some amount.")]
public bool reverseCutscene;
public override void Reset()
{
gameObject = null;
finishEvent = null;
loopEvent = null;
stopOnExit = false;
loopCutscene = false;
reverseCutscene = false;
}
public override void OnEnter()
{
DoPlayCutscene();
}
void DoPlayCutscene()
{
var go = Fsm.GetOwnerDefaultTarget(gameObject);
if (go == null)
{
Finish();
return;
}
Cutscene thecutscene = go.GetComponent<Cutscene>();
if (thecutscene == null)
{
LogWarning("Missing cutscene component!");
Finish();
return;
}
if (loopCutscene)
{
thecutscene.loop = true;
}
else
{
thecutscene.loop = false;
}
if (reverseCutscene)
{
thecutscene.Rewind();
}
else
{
thecutscene.Play();
}
}
public override void OnUpdate()
{
var go = Fsm.GetOwnerDefaultTarget(gameObject);
if (go == null)
{
return;
}
Cutscene thecutscene = go.GetComponent<Cutscene>();
if (thecutscene == null)
{
LogWarning("Missing cutscene component!");
Finish();
return;
}
if (!thecutscene.playing && !reverseCutscene)
{
Fsm.Event(finishEvent);
Finish();
}
if (reverseCutscene && (thecutscene.totalPlays == 0))
{
Fsm.Event(finishEvent);
Finish();
}
if (loopCutscene && (thecutscene.totalPlays > 1))
{
Fsm.Event(loopEvent);
}
}
public override void OnExit()
{
if (stopOnExit)
{
StopCutscene();
}
}
void StopCutscene()
{
var go = Fsm.GetOwnerDefaultTarget(gameObject);
if (go != null)
{
Cutscene thecutscene = go.GetComponent<Cutscene>();
if (thecutscene !=null)
{
thecutscene.Stop();
}
}
}
}
}
-
Hi,
Ok, and what doesn't work there? Are you elbows on the unity forum?
bye,
Jean
-
hi,
play,pause and stop Animator via playmaker fsm.
thanks in advance.
dev
-
Hi,
Thanks for replay,
cut scene editor or animator are different plugins . But Animator is Advanced. I cant accesses any component.
like camera switching, Animation,Evan not Work get property, set property etc.
Bye,
Play_edu
-
any update? ??? ???
-
Hi,
Coming up this week :)
bye,
Jean
-
Hi,
Thank you
Dev
-
HI,
any update?
play_edu :'(
-
any update ??? ???
-
Hi,
Sorry guys... got carried away with a lot of other things. Must allocated some time to do this!
bye,
Jean
-
ok :)