Table of Contents

Class UnityObjectService

Namespace
Luny.Unity.Services
Assembly
Luny.Unity.dll
public sealed class UnityObjectService : LunyObjectServiceBase, ILunyObjectService, ILunyEngineService
Inheritance
object
UnityObjectService
Implements

Constructors

UnityObjectService()

public UnityObjectService()

Methods

Clone(ILunyObject, ILunyObject, LunyVector3?, LunyQuaternion?, LunyVector3?)

public override ILunyObject Clone(ILunyObject original, ILunyObject parent, LunyVector3? position, LunyQuaternion? rotation, LunyVector3? scale)

Parameters

original ILunyObject
parent ILunyObject
position LunyVector3?
rotation LunyQuaternion?
scale LunyVector3?

Returns

ILunyObject

CreateEmpty(string, ILunyObject, LunyVector3?, LunyQuaternion?, LunyVector3?)

public override ILunyObject CreateEmpty(string name, ILunyObject parent, LunyVector3? position, LunyQuaternion? rotation, LunyVector3? scale)

Parameters

name string
parent ILunyObject
position LunyVector3?
rotation LunyQuaternion?
scale LunyVector3?

Returns

ILunyObject

CreateFromPrefab(ILunyPrefab, ILunyObject, LunyVector3?, LunyQuaternion?, LunyVector3?)

Creates a new object from a prefab bridge.

public override ILunyObject CreateFromPrefab(ILunyPrefab prefab, ILunyObject parent, LunyVector3? position, LunyQuaternion? rotation, LunyVector3? scale)

Parameters

prefab ILunyPrefab
parent ILunyObject
position LunyVector3?
rotation LunyQuaternion?
scale LunyVector3?

Returns

ILunyObject

CreatePrimitive(string, LunyPrimitiveType, ILunyObject, LunyVector3?, LunyQuaternion?, LunyVector3?)

public override ILunyObject CreatePrimitive(string name, LunyPrimitiveType type, ILunyObject parent, LunyVector3? position, LunyQuaternion? rotation, LunyVector3? scale)

Parameters

name string
type LunyPrimitiveType
parent ILunyObject
position LunyVector3?
rotation LunyQuaternion?
scale LunyVector3?

Returns

ILunyObject