Table of Contents

Interface ILunySceneService

Namespace
Luny.Engine.Services
/
Assembly
Luny.dll

Engine-agnostic scene information service.

public interface ILunySceneService : ILunyEngineService
Expand Details ...

Remarks

IMPORTANT: Implementations must inherit from both the ILunyService interface and its corresponding LunyServiceBase class!

Properties

CurrentScene

ILunyScene CurrentScene { get; }

Property Value

ILunyScene

Methods

FindObjectByName(String)

Finds a LunyObject by name in the current scene.

ILunyObject FindObjectByName(String name)

Parameters

Type Name Description
String
name

Returns

ILunyObject

GetObjects(IReadOnlyCollection<String>)

Gets objects with matching names in the current scene. Creates LunyObject instances.

IReadOnlyList<ILunyObject> GetObjects(IReadOnlyCollection<String> objectNames)

Parameters

Type Name Description
IReadOnlyCollection<String>
objectNames

Returns

IReadOnlyList<ILunyObject>

ReloadScene()

void ReloadScene()