Skip to content

An example on how to override Scene Assistant with custom data.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

idaocracy/SceneAssistantCustomDataExample

Repository files navigation

SceneAssistantCustomDataExample

An example on how to override Scene Assistant with custom data.

image

This example overrides CameraManager with a FieldOfView property that lets you freely adjust the Field of View and Orthographic Size properties of the main Naninovel camera. SceneAssistantManager is then overridden with a custom CameraData that exposes this value. See CustomSceneAssistantManager.cs and CustomCameraData.cs for more information.

Setup

Place the SceneAssistantCustomDataExample anywhere in the project (that is not managed by another plugin, including the Naninovel and NaninovelData folders).

Sample Script

The following script demonstrates the fov parameter in @camera:

@char Missingno pos:50,45
The camera is orthographic by default. Specifying a fov value will set the orthographic size of the camera. 
@camera fov:3 time:1
Orthographic size is 3.
After switching to perspective mode, the fov will now increase the field of view.
@camera fov:100 time:3 ortho:false
Field of View is 100.
@stop

About

An example on how to override Scene Assistant with custom data.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages