Table of Contents

Interface ILunySceneService

Namespace
Luny.Engine.Services
Assembly
Luny.dll

Engine-agnostic scene information service.

public interface ILunySceneService : ILunyEngineService

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

name string

Returns

ILunyObject

GetObjects(IReadOnlyCollection<string>)

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

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

Parameters

objectNames IReadOnlyCollection<string>

Returns

IReadOnlyList<ILunyObject>

ReloadScene()

void ReloadScene()