Class GameplayExecutableLibrary
Executable function library for Gameplay
[CeresGroup("Gameplay")]
public class GameplayExecutableLibrary : ExecutableFunctionLibrary
- Inheritance
-
GameplayExecutableLibrary
- Inherited Members
Constructors
GameplayExecutableLibrary()
public GameplayExecutableLibrary()
Methods
CollectExecutableFunctions()
Collect all static executable functions in this library
protected override void CollectExecutableFunctions()
Flow_CaptureRawScreenshot(Camera, Vector2, int, RenderTextureFormat)
Capture raw screenshot from renderer to a new Texture2D.
[ExecutableFunction]
[CeresLabel("Capture Raw Screenshot")]
[CeresGroup("Gameplay/Capture")]
public static Texture2D Flow_CaptureRawScreenshot(Camera camera, Vector2 size, int depthBuffer = 24, RenderTextureFormat renderTextureFormat = 0)
Parameters
Returns
Flow_CaptureRawScreenshotAsync(Camera, Vector2, int, RenderTextureFormat, int, Action<Texture2D>)
Capture raw screenshot from renderer to a new Texture2D in async.
[ExecutableFunction]
[CeresLabel("Capture Raw Screenshot")]
[CeresGroup("Gameplay/Capture")]
public static void Flow_CaptureRawScreenshotAsync(Camera camera, Vector2 size, int depthBuffer = 24, RenderTextureFormat renderTextureFormat = 0, int delayFrames = 1, Action<Texture2D> onComplete = null)
Parameters
cameraCamerasizeVector2depthBufferintrenderTextureFormatRenderTextureFormatdelayFramesintonCompleteAction<Texture2D>
Flow_CaptureScreenShotFromScreen()
Capture screenshot to a new Texture2D. Need be called at the end of frame.
[ExecutableFunction]
[CeresLabel("Capture Screenshot")]
[CeresGroup("Gameplay/Capture")]
public static Texture2D Flow_CaptureScreenShotFromScreen()
Returns
Flow_CaptureScreenshotAsync(Action<Texture2D>)
Capture screenshot to a new Texture2D in async. Need be called at the end of frame.
[ExecutableFunction]
[CeresLabel("Capture Screenshot Async")]
[CeresGroup("Gameplay/Capture")]
public static void Flow_CaptureScreenshotAsync(Action<Texture2D> onComplete)
Parameters
Flow_FindLevel(string)
[ExecutableFunction]
[CeresLabel("Find Level from Name")]
[CeresGroup("Gameplay/Level")]
public static LevelReference Flow_FindLevel(string levelName)
Parameters
levelNamestring
Returns
Flow_FindLevelFromTag(string)
[ExecutableFunction]
[CeresLabel("Find Level from Tag")]
[CeresGroup("Gameplay/Level")]
public static LevelReference Flow_FindLevelFromTag(string tag)
Parameters
tagstring
Returns
Flow_GetActor(ActorHandle)
[ExecutableFunction]
public static Actor Flow_GetActor(ActorHandle handle)
Parameters
handleActorHandle
Returns
Flow_GetOrCreateSubsystem(SerializedType<SubsystemBase>)
[ExecutableFunction]
public static SubsystemBase Flow_GetOrCreateSubsystem(SerializedType<SubsystemBase> type)
Parameters
typeSerializedType<SubsystemBase>
Returns
Flow_GetSubsystem(SerializedType<SubsystemBase>)
[ExecutableFunction]
public static SubsystemBase Flow_GetSubsystem(SerializedType<SubsystemBase> type)
Parameters
typeSerializedType<SubsystemBase>
Returns
Flow_LoadLevel(LevelReference)
[ExecutableFunction]
[CeresLabel("Load Level")]
[CeresGroup("Gameplay/Level")]
public static void Flow_LoadLevel(LevelReference levelReference)
Parameters
levelReferenceLevelReference
Flow_LoadLevelFromName(string)
[ExecutableFunction]
[CeresLabel("Load Level from Name")]
[CeresGroup("Gameplay/Level")]
public static void Flow_LoadLevelFromName(string levelName)
Parameters
levelNamestring
Flow_Play2DAudioClip(AudioClip, float)
[ExecutableFunction]
[CeresLabel("Play 2D AudioClip")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_Play2DAudioClip(AudioClip audioClip, float volume = 1)
Parameters
Flow_Play2DAudioClipFromAddress(string, float)
[ExecutableFunction]
[CeresLabel("Play 2D AudioClip from Address")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_Play2DAudioClipFromAddress(string audioClipAddress, float volume = 1)
Parameters
Flow_Play3DAudioClip(AudioClip, Vector3, float, float, float)
[ExecutableFunction]
[CeresLabel("Play 3D AudioClip")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_Play3DAudioClip(AudioClip audioClip, Vector3 position, float volume = 1, float spatialBlend = 1, float minDistance = 10)
Parameters
Flow_Play3DAudioClipFromAddress(string, Vector3, float, float, float)
[ExecutableFunction]
[CeresLabel("Play 3D AudioClip from Address")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_Play3DAudioClipFromAddress(string audioClipAddress, Vector3 position, float volume = 1, float spatialBlend = 1, float minDistance = 10)
Parameters
Flow_PlayParticleSystem(GameObject, Vector3, Quaternion, Transform, bool)
[ExecutableFunction]
[CeresLabel("Play ParticleSystem")]
[CeresGroup("Gameplay/FX")]
public static void Flow_PlayParticleSystem(GameObject prefab, Vector3 position, Quaternion rotation, Transform parent = null, bool useLocalPosition = false)
Parameters
prefabGameObjectpositionVector3rotationQuaternionparentTransformuseLocalPositionbool
Flow_PlayParticleSystemFromAddress(string, Vector3, Quaternion, Transform, bool)
[ExecutableFunction]
[CeresLabel("Play ParticleSystem from Address")]
[CeresGroup("Gameplay/FX")]
public static void Flow_PlayParticleSystemFromAddress(string prefabAddress, Vector3 position, Quaternion rotation, Transform parent = null, bool useLocalPosition = false)
Parameters
prefabAddressstringpositionVector3rotationQuaternionparentTransformuseLocalPositionbool
Flow_Schedule3DAudioClip(AudioClip, Vector3, float, float, float, float)
[ExecutableFunction]
[CeresLabel("Schedule 3D AudioClip")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_Schedule3DAudioClip(AudioClip audioClip, Vector3 position, float scheduleTime, float volume = 1, float spatialBlend = 1, float minDistance = 10)
Parameters
audioClipAudioClippositionVector3scheduleTimefloatvolumefloatspatialBlendfloatminDistancefloat
Flow_Schedule3DAudioClipFromAddress(string, Vector3, float, float, float, float)
[ExecutableFunction]
[CeresLabel("Schedule 3D AudioClip from Address")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_Schedule3DAudioClipFromAddress(string audioClipAddress, Vector3 position, float scheduleTime, float volume = 1, float spatialBlend = 1, float minDistance = 10)
Parameters
audioClipAddressstringpositionVector3scheduleTimefloatvolumefloatspatialBlendfloatminDistancefloat
Flow_StopAudioClip(string)
[ExecutableFunction]
[CeresLabel("Stop AudioClip from Address")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_StopAudioClip(string audioClipAddress)
Parameters
audioClipAddressstring
Flow_StopAudioClip(AudioClip)
[ExecutableFunction]
[CeresLabel("Stop AudioClip")]
[CeresGroup("Gameplay/Audios")]
public static void Flow_StopAudioClip(AudioClip audioClip)
Parameters
audioClipAudioClip