Unfocus more UI Elements
Posted: Fri Feb 12, 2021 11:34 am
So I have a frame for the character portraits (as you can see in the attachment), and I also want to apply the unfocus to those frames, how can I achieve that?
Support and discussion forum for Pixel Crushers products
https://www.pixelcrushers.com:443/phpbb/
https://www.pixelcrushers.com:443/phpbb/viewtopic.php?t=4142
Code: Select all
using UnityEngine;
using System.Collections;
using PixelCrushers.DialogueSystem;
namespace PixelCrushers.DialogueSystem.SequencerCommands
{
public class SequencerCommandAudreyMove : SequencerCommand
{ // Rename to SequencerCommand<YourCommand>
public void Awake()
{
// Add your initialization code here. You can use the GetParameter***() and GetSubject()
// functions to get information from the command's parameters. You can also use the
// Sequencer property to access the SequencerCamera, CameraAngle, Speaker, Listener,
// SubtitleEndTime, and other properties on the sequencer. If IsAudioMuted() is true,
// the player has muted audio.
GameObject directressObj = GameObject.Find("Audrey");
DirectressMovement dirMove = directressObj.GetComponent<DirectressMovement>();
dirMove.Move();
//DiaTrigger trigger = FindObjectOfType<DiaTrigger>();
//trigger.directressStage = 1;
print("MOVING EVENT PLAYED");
// If your sequencer command only does something immediately and then finishes,
// you can call Stop() here and remove the Update() method:
//
Stop();
//
// If you want to use a coroutine, use a Start() method in place of or in addition to
// this method.
}
}
}