Scene Loading Utility

Library
kicks updated 2y ago 0 MB engine 17
Scene Loading Utility

About Scene Loading Utility

A custom scene loading library that allows for manipulation of the scene file before loading

Api

public class CustomScene
{
    public CustomScene( SceneFile sceneFile );

    //Creates an object in the custom scene
    public void CreateObject( GameObject gameObject );

    //Get a json object

    //Find all objects by a type of a component
    public IEnumerable<JsonObject> GetAllObjectsByType( Type type );

    //Gets an object within the scene from a guid
    public IEnumerable<JsonObject> GetAllObjectsByGuid( string guid );

    //Gets an object within the scene from a name
    public IEnumerable<JsonNode> GetAllObjectsByName( string name )

    //Manipulate the json object

    //Adds a component to a json object by a type
    public void AddComponentByType( JsonObject obj, Type componentType )

    //Adds a component from a json object to a JsonObject GameObject
    public void AddComponent( JsonObject obj, JsonObject newComponent )

    //Removes a component by a type from a JsonObject
    public void RemoveComponentByType( JsonObject obj, Type type )

    //Remove an object from the scene
    public void RemoveObject( JsonNode obj )

    //Loads the custom scene
    public void LoadScene();
}

Example

public void LoadScene()
{
    var customScene = new CustomScene( sceneFile );
    if ( customScene.GetAllObjectsByType( typeof( SkinnedModelRenderer ) ).Count() == 0 )
    {
        customScene.CreateObject( new GameObject() );
    }

    customScene.LoadScene();
}
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: nolankicks.sceneloadingutility
Created: 2024-07-29 03:04 UTC
Updated: 2024-08-10 19:55 UTC
Type: library
Public: Yes
Version: 65380
files: 31
Size: 0.2 MB
Engine Version: 17
Asset Version ID: 65380
Version Created: 2024-08-10 19:55 UTC
Hash: 5868954306714151249
Manifest: Open manifest
new_releases Latest Update Aug 10, 2024
Changes on 2024-08-10
65380 Aug 10, 2024
Changes on 2024-08-10
61759 Jul 29, 2024
Changes on 2024-07-29
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.