Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Inherit IEditorOnly #43

Merged
merged 3 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Suzuryg.FaceEmo.Components.MA;
using Suzuryg.FaceEmo.Components.AV3;
using System;
using UnityEngine;
using VRC.SDKBase.Editor.BuildPipeline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using AnimatorAsCode.V0.Extensions.VRChat;
using Suzuryg.FaceEmo.Domain;
using Suzuryg.FaceEmo.UseCase;
using Suzuryg.FaceEmo.Components.AV3;
using Suzuryg.FaceEmo.Components.Settings;
using Suzuryg.FaceEmo.Components.MA;
using Suzuryg.FaceEmo.Detail.Drawing;
using Suzuryg.FaceEmo.External.Hai.ComboGestureIntegrator;
using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Suzuryg.FaceEmo.Components.MA
namespace Suzuryg.FaceEmo.Components.AV3
{
[DisallowMultipleComponent]
public class BlinkDisabler : RunBeforeModularAvatar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
using nadena.dev.modular_avatar.core;
#endif

namespace Suzuryg.FaceEmo.Components.MA
namespace Suzuryg.FaceEmo.Components.AV3
{
[DefaultExecutionOrder(-20000)] // run before modular avatar
#if USE_MODULAR_AVATAR
public abstract class RunBeforeModularAvatar : AvatarTagComponent // Inherit AvatarTagComponent to register in VRChat whitelist
#else
public abstract class RunBeforeModularAvatar : MonoBehaviour
#endif
public abstract class RunBeforeModularAvatar : MonoBehaviour , VRC.SDKBase.IEditorOnly // Inherit IEditorOnly to register in VRChat whitelist
{
#if UNITY_EDITOR
private static bool isPlaying => UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using UnityEditor.Animations;
#endif

namespace Suzuryg.FaceEmo.Components.MA
namespace Suzuryg.FaceEmo.Components.AV3
{
[DisallowMultipleComponent]
public class TrackingControlDisabler : RunBeforeModularAvatar
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "jp.suzuryg.face-emo.components.av3.Runtime",
"references": [
"GUID:ad29c40ce7d8264468d6c7634e6a3a40"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"VRCSDKBase.dll",
"VRCSDK3A.dll"
],
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

This file was deleted.