Search found 356 matches

by Elringus
21 Jun 2021 00:17
Forum: C# Programming
Topic: Automatically Run Nani Script during Integration
Replies: 1
Views: 7

Re: Automatically Run Nani Script during Integration

Hi, Check out integration example project (https://naninovel.com/guide/integration-options), it plays a script with IScriptPlayer engine service.

by Elringus
17 Jun 2021 19:54
Forum: Issues and Bugs
Topic: RevealableTMProText doesn't support Fallback Font Assets
Replies: 1
Views: 15

Re: RevealableTMProText doesn't support Fallback Font Assets

This was fixed in v1.16 (available in #download on Discord) and latest TMPro update (install the latest version in package manager, make sure to use Unity 2019.4.24 or later).

by Elringus
15 Jun 2021 15:55
Forum: Announcements
Topic: Actor Records
Replies: 0
Views: 18

Actor Records

Actor record assets added in v1.16 allow managing actor metadata without using editor menus and provide support for multi-editing and organizing the records with folders.

by Elringus
12 Jun 2021 10:53
Forum: Русский
Topic: Addressable & NaniNovel инструкция
Replies: 3
Views: 42

Re: Addressable & NaniNovel инструкция

Dynamic resource policy кстати не обязателен. Если вы его выберите, ресурсы будут подгружаться (как с удалённого сервера так и в оперативную память, включая порой CPU-интенсивные операции) по ходу игры вместо того, чтобы подготовить всё необходимое при загрузке скрипта, из-за чего могут быть подвиса...
by Elringus
09 Jun 2021 00:12
Forum: Русский
Topic: WebGL
Replies: 2
Views: 60

Re: WebGL

Не храните ничего в папках с именем "Resources", за исключением случаев, когда это прямо указано в документации (например, кнопки для чойс хендлеров должны там лежать).

by Elringus
06 Jun 2021 15:01
Forum: UI
Topic: Help: Fixed Resolution (similar to Renpy)
Replies: 10
Views: 178

Re: Help: Fixed Resolution (similar to Renpy)

The only way is to use a custom camera or override camera manager service. I've just checked and matching worked for me with a custom camera. Try the latest Naninovel v1.16 (available in Discord) and make sure to use a compatible Unity version. Also, compare the default camera settings (by entering ...
by Elringus
06 Jun 2021 13:14
Forum: UI
Topic: Help: Fixed Resolution (similar to Renpy)
Replies: 10
Views: 178

Re: Help: Fixed Resolution (similar to Renpy)

Matching should work with custom camera as well, just make sure Orthographic is enabled on the camera.

by Elringus
06 Jun 2021 11:17
Forum: C# Programming
Topic: Is it possible to add new Characters at runtime via Addressables?
Replies: 12
Views: 552

Re: Is it possible to add new Characters at runtime via Addressables?

That is only the case if you want to use custom addressable groups or don't want to use resource editor menus. Otherwise, Naninovel will create the groups and apply the addresses and labels automatically, so you just need to install the addressable package and Naninovel will handle the rest.

by Elringus
05 Jun 2021 23:16
Forum: UI
Topic: Help: Fixed Resolution (similar to Renpy)
Replies: 10
Views: 178

Re: Help: Fixed Resolution (similar to Renpy)

All the UIs (title menu, settings, etc) have their own root canvas component for which you can configure the scaling behavior.

by Elringus
05 Jun 2021 21:54
Forum: UI
Topic: Help: Fixed Resolution (similar to Renpy)
Replies: 10
Views: 178

Re: Help: Fixed Resolution (similar to Renpy)

You can set supported aspect ratios, window modes and default resolution in the player settings: https://docs.unity3d.com/Manual/class-P ... Resolution

by Elringus
03 Jun 2021 09:53
Forum: Other
Topic: How do I adjust the centerline of a Character when I flip them from left to right?
Replies: 19
Views: 390

Re: How do I adjust the centerline of a Character when I flip them from left to right?

Pivot doesn't affect how the look direction is applied in any way, as it just flips the texture. Try performing flip horizontally in photoshop for an example.

by Elringus
03 Jun 2021 08:06
Forum: Other
Topic: How do I adjust the centerline of a Character when I flip them from left to right?
Replies: 19
Views: 390

Re: How do I adjust the centerline of a Character when I flip them from left to right?

The char pivot controls pivot relative to sprite, not the screen. As I've mentioned before, most implementations render source representation of the actor to a texture. Look command basically flips that render texture and pivot won't affect the process (sorry for the misleading info on that in my in...
by Elringus
02 Jun 2021 17:59
Forum: Other
Topic: How do I adjust the centerline of a Character when I flip them from left to right?
Replies: 19
Views: 390

Re: How do I adjust the centerline of a Character when I flip them from left to right?

My bad, I misunderstood your use case. Diced implementation will render the source sprites to a texture, which has its own pivot that can be set in char config. It's not possible to specify custom pivot per appearance.

Image

by Elringus
02 Jun 2021 11:13
Forum: Other
Topic: How do I adjust the centerline of a Character when I flip them from left to right?
Replies: 19
Views: 390

Re: How do I adjust the centerline of a Character when I flip them from left to right?

Make sure you're using latest sprite dicing version and Keep Original is enabled in atlas settings. You can find example of custom diced sprite pivots controlled by sprites of the original textures in the sprite dicing project.

by Elringus
02 Jun 2021 11:11
Forum: Русский
Topic: UI загрузки перед иргой
Replies: 3
Views: 72

Re: UI загрузки перед иргой

Engine config -> Initialization UI

by Elringus
24 May 2021 19:14
Forum: C# Programming
Topic: Using Wait command in custom command
Replies: 5
Views: 185

Re: Using Wait command in custom command

Also, not sure why waitTime param is string and what "waitCommand.WaitMode = waitTime" suppose to mean.

by Elringus
24 May 2021 19:13
Forum: C# Programming
Topic: Using Wait command in custom command
Replies: 5
Views: 185

Re: Using Wait command in custom command

Just await the time directly, no need to use the wait command. See the wait command implementation for example.

by Elringus
21 May 2021 09:14
Forum: UI
Topic: How to get the initialization progress of the game
Replies: 1
Views: 104

Re: How to get the initialization progress of the game

Use Engine.OnInitializationProgress event to listen for the progress changed events.

by Elringus
20 May 2021 22:14
Forum: C# Programming
Topic: Continued Efforts in Drop-In dialog system
Replies: 1
Views: 86

Re: Continued Efforts in Drop-In dialog system

Maybe you've assigned a custom camera prefab? If not, try creating a new project with latest Naninovel version and check if the look container is in place. If it's not, please register your Naninovel copy and PM me on Discord with a repro: https://naninovel.com/support/#reproduction-project

by Elringus
20 May 2021 22:11
Forum: C# Programming
Topic: Help: Can we prevent character transition skipping?
Replies: 5
Views: 198

Re: Help: Can we prevent character transition skipping?

It should be possible by overriding @char command and ignoring cancellationToken.CancelLazy conditions. Here is the guide on overriding built-in commands: https://naninovel.com/guide/custom-comm ... in-command

by Elringus
20 May 2021 22:07
Forum: Other
Topic: How do I adjust the centerline of a Character when I flip them from left to right?
Replies: 19
Views: 390

Re: How do I adjust the centerline of a Character when I flip them from left to right?

Use layered implementation (you can freely position layers inside the prefab there) or add slack transparent space to the texture when using sprite implementation. Starting with v1.16 diced sprite implementation also allows specifying custom pivots.

by Elringus
20 May 2021 11:32
Forum: C# Programming
Topic: Is it possible to add new Characters at runtime via Addressables?
Replies: 12
Views: 552

Re: Is it possible to add new Characters at runtime via Addressables?

Both loading resources from external sources and adding actors at runtime are possible; see my answers above: viewtopic.php?p=728#p728 and viewtopic.php?p=731#p731