Join our Discord Channel
using UnityEngine;namespace HutongGames.PlayMaker.Actions{ [ActionCategory(ActionCategory.RenderSettings)] [Tooltip("Set Custom Reflection.")] public class SetCustomReflection : FsmStateAction { // This won't work as the input should be CubeMap public FsmTexture customReflection; [Tooltip("Repeat every frame.")] public bool everyFrame; public override void Reset() { customReflection = null; } public override void OnEnter() { RenderSettings.customReflection = customReflection.Value; if (!everyFrame) { Finish(); } } public override void OnUpdate() { RenderSettings.customReflection = customReflection.Value; } }}