mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
chore: update for NDMF API changes (#1016)
This commit is contained in:
parent
b732c5268e
commit
6f95800e41
@ -9,6 +9,8 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
{
|
{
|
||||||
internal class ObjectSwitcherPreview : IRenderFilter
|
internal class ObjectSwitcherPreview : IRenderFilter
|
||||||
{
|
{
|
||||||
|
public bool CanEnableRenderers => true;
|
||||||
|
|
||||||
static TogglablePreviewNode EnableNode = TogglablePreviewNode.Create(
|
static TogglablePreviewNode EnableNode = TogglablePreviewNode.Create(
|
||||||
() => "Object Switcher",
|
() => "Object Switcher",
|
||||||
qualifiedName: "nadena.dev.modular-avatar/ObjectSwitcherPreview",
|
qualifiedName: "nadena.dev.modular-avatar/ObjectSwitcherPreview",
|
||||||
@ -138,7 +140,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
|
|
||||||
public void OnFrame(Renderer original, Renderer proxy)
|
public void OnFrame(Renderer original, Renderer proxy)
|
||||||
{
|
{
|
||||||
proxy.gameObject.SetActive(_shouldEnable);
|
proxy.enabled = _shouldEnable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user