Table of Contents

Class UnityObjectService

Namespace
Luny.Unity.Services
/
Assembly
Luny.Unity.dll
public sealed class UnityObjectService : LunyObjectServiceBase, ILunyObjectService, ILunyEngineService
Expand Details ...
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

Type Name Description
ILunyObject
original
ILunyObject
parent
LunyVector3?
position
LunyQuaternion?
rotation
LunyVector3?
scale

Returns

ILunyObject

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

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

Parameters

Type Name Description
String
name
ILunyObject
parent
LunyVector3?
position
LunyQuaternion?
rotation
LunyVector3?
scale

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

Type Name Description
ILunyPrefab
prefab
ILunyObject
parent
LunyVector3?
position
LunyQuaternion?
rotation
LunyVector3?
scale

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

Type Name Description
String
name
LunyPrimitiveType
type
ILunyObject
parent
LunyVector3?
position
LunyQuaternion?
rotation
LunyVector3?
scale

Returns

ILunyObject