Skip to content

Commit

Permalink
Enabled particle layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Snow1226 committed Mar 27, 2020
1 parent 0c22247 commit a5f6a7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CameraPlus/CameraPlusBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public enum CursorType
protected const int OnlyInThirdPerson = 3;
protected const int OnlyInFirstPerson = 6; //Moved to an empty layer because layer 4 overlapped the floor
protected const int AlwaysVisible = 10; // For BeatSaberCunstomAvatars above v5.0.0

protected const int ParticleLayer = 16;
public bool ThirdPerson {
get { return _thirdPerson; }
set {
Expand Down Expand Up @@ -201,15 +201,15 @@ protected IEnumerator DelayedInit()
AddMovementScript();

SetCullingMask();

_cam.cullingMask |= (1 << ParticleLayer);
CameraMovement.CreateExampleScript();

Plugin.Instance.ActiveSceneChanged += SceneManager_activeSceneChanged;

// FirstPersonOffset = Config.FirstPersonPositionOffset;
// FirstPersonRotationOffset = Config.FirstPersonRotationOffset;
SceneManager_activeSceneChanged(new Scene(), new Scene());
Logger.Log($"Camera \"{Path.GetFileName(Config.FilePath)}\" successfully initialized!");
Logger.Log($"Camera \"{Path.GetFileName(Config.FilePath)}\" successfully initialized! {Convert.ToString(_cam.cullingMask,16)}");
}

protected virtual void OnDestroy()
Expand Down
4 changes: 2 additions & 2 deletions CameraPlus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0")]
[assembly: AssemblyFileVersion("4.0.0")]
[assembly: AssemblyVersion("4.0.1")]
[assembly: AssemblyFileVersion("4.0.1")]
2 changes: 1 addition & 1 deletion CameraPlus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"gameVersion": "1.8.0",
"id": "CameraPlus",
"name": "CameraPlus",
"version": "4.0.0",
"version": "4.0.1",
"features": [],
"dependsOn": {
}
Expand Down

0 comments on commit a5f6a7a

Please sign in to comment.